##// END OF EJS Templates
Fixed links for repository, it's optional now to pass a link without a summary...
marcink -
r976:de535f8b beta
parent child Browse files
Show More
@@ -169,6 +169,8 b' def make_map(config):'
169 map.connect('raw_changeset_home', '/{repo_name:.*}/raw-changeset/{revision}',
169 map.connect('raw_changeset_home', '/{repo_name:.*}/raw-changeset/{revision}',
170 controller='changeset', action='raw_changeset', revision='tip',
170 controller='changeset', action='raw_changeset', revision='tip',
171 conditions=dict(function=check_repo))
171 conditions=dict(function=check_repo))
172 map.connect('summary_home', '/{repo_name:.*}',
173 controller='summary', conditions=dict(function=check_repo))
172 map.connect('summary_home', '/{repo_name:.*}/summary',
174 map.connect('summary_home', '/{repo_name:.*}/summary',
173 controller='summary', conditions=dict(function=check_repo))
175 controller='summary', conditions=dict(function=check_repo))
174 map.connect('shortlog_home', '/{repo_name:.*}/shortlog',
176 map.connect('shortlog_home', '/{repo_name:.*}/shortlog',
@@ -201,7 +201,7 b' class Repository(Base, BaseModel):'
201
201
202 repo_followers = relationship('UserFollowing', primaryjoin='UserFollowing.follows_repo_id==Repository.repo_id', cascade='all')
202 repo_followers = relationship('UserFollowing', primaryjoin='UserFollowing.follows_repo_id==Repository.repo_id', cascade='all')
203
203
204 logs = relation('UserLog', cascade='all')
204 logs = relationship('UserLog', cascade='all')
205
205
206 def __repr__(self):
206 def __repr__(self):
207 return "<%s('%s:%s')>" % (self.__class__.__name__,
207 return "<%s('%s:%s')>" % (self.__class__.__name__,
General Comments 0
You need to be logged in to leave comments. Login now