##// END OF EJS Templates
comments: enable urlify functions on comments in repo/pr scopes....
dan -
r4042:34d7ca19 default
parent child Browse files
Show More
@@ -416,7 +416,8 b' class RepoCommitsView(RepoAppView):'
416 416 text = self.request.POST.get('text')
417 417 renderer = self.request.POST.get('renderer') or 'rst'
418 418 if text:
419 return h.render(text, renderer=renderer, mentions=True)
419 return h.render(text, renderer=renderer, mentions=True,
420 repo_name=self.db_repo_name)
420 421 return ''
421 422
422 423 @LoginRequired()
@@ -14,7 +14,6 b''
14 14 <% outdated_at_ver = comment.older_than_version(getattr(c, 'at_version_num', None)) %>
15 15 % endif
16 16
17
18 17 <div class="comment
19 18 ${'comment-inline' if inline else 'comment-general'}
20 19 ${'comment-outdated' if outdated_at_ver else 'comment-current'}"
@@ -157,7 +156,7 b''
157 156 </div>
158 157 </div>
159 158 <div class="text">
160 ${h.render(comment.text, renderer=comment.renderer, mentions=True)}
159 ${h.render(comment.text, renderer=comment.renderer, mentions=True, repo_name=getattr(c, 'repo_name', None))}
161 160 </div>
162 161
163 162 </div>
@@ -166,7 +166,7 b''
166 166 <label>${_('Description')}:</label>
167 167 </div>
168 168 <div id="pr-desc" class="input">
169 <div class="pr-description">${h.render(c.pull_request.description, renderer=c.renderer)}</div>
169 <div class="pr-description">${h.render(c.pull_request.description, renderer=c.renderer, repo_name=c.repo_name)}</div>
170 170 </div>
171 171 <div id="pr-desc-edit" class="input textarea editor" style="display: none;">
172 172 <input id="pr-renderer-input" type="hidden" name="description_renderer" value="${c.visual.default_renderer}">
General Comments 0
You need to be logged in to leave comments. Login now