Show More
@@ -416,7 +416,8 b' class RepoCommitsView(RepoAppView):' | |||||
416 | text = self.request.POST.get('text') |
|
416 | text = self.request.POST.get('text') | |
417 | renderer = self.request.POST.get('renderer') or 'rst' |
|
417 | renderer = self.request.POST.get('renderer') or 'rst' | |
418 | if text: |
|
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 | return '' |
|
421 | return '' | |
421 |
|
422 | |||
422 | @LoginRequired() |
|
423 | @LoginRequired() |
@@ -14,7 +14,6 b'' | |||||
14 | <% outdated_at_ver = comment.older_than_version(getattr(c, 'at_version_num', None)) %> |
|
14 | <% outdated_at_ver = comment.older_than_version(getattr(c, 'at_version_num', None)) %> | |
15 | % endif |
|
15 | % endif | |
16 |
|
16 | |||
17 |
|
||||
18 | <div class="comment |
|
17 | <div class="comment | |
19 | ${'comment-inline' if inline else 'comment-general'} |
|
18 | ${'comment-inline' if inline else 'comment-general'} | |
20 | ${'comment-outdated' if outdated_at_ver else 'comment-current'}" |
|
19 | ${'comment-outdated' if outdated_at_ver else 'comment-current'}" | |
@@ -157,7 +156,7 b'' | |||||
157 | </div> |
|
156 | </div> | |
158 | </div> |
|
157 | </div> | |
159 | <div class="text"> |
|
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 | </div> |
|
160 | </div> | |
162 |
|
161 | |||
163 | </div> |
|
162 | </div> |
@@ -166,7 +166,7 b'' | |||||
166 | <label>${_('Description')}:</label> |
|
166 | <label>${_('Description')}:</label> | |
167 | </div> |
|
167 | </div> | |
168 | <div id="pr-desc" class="input"> |
|
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 | </div> |
|
170 | </div> | |
171 | <div id="pr-desc-edit" class="input textarea editor" style="display: none;"> |
|
171 | <div id="pr-desc-edit" class="input textarea editor" style="display: none;"> | |
172 | <input id="pr-renderer-input" type="hidden" name="description_renderer" value="${c.visual.default_renderer}"> |
|
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