Mercurial > kallithea
annotate rhodecode/templates/changeset/changeset_file_comment.html @ 1675:7c487d2678c7 beta
code refactoring
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 12 Nov 2011 17:30:12 +0200 |
parents | 6f0143e5efe5 |
children | 7276b170ce8b |
rev | line source |
---|---|
1670 | 1 ##usage: |
2 ## <%namespace name="comment" file="/changeset/changeset_file_comment.html"/> | |
3 ## ${comment.comment_block(co)} | |
4 ## | |
5 <%def name="comment_block(co)"> | |
6 <div class="comment" id="comment-${co.comment_id}"> | |
7 <div class="meta"> | |
8 <span class="user"> | |
9 <img src="${h.gravatar_url(co.author.email, 20)}" /> | |
10 ${co.author.username} | |
11 </span> | |
12 <a href="${h.url.current(anchor='comment-%s' % co.comment_id)}"> ${_('commented on')} </a> | |
1675
7c487d2678c7
code refactoring
Marcin Kuzminski <marcin@python-works.com>
parents:
1674
diff
changeset
|
13 ${h.short_id(co.revision)} |
1670 | 14 %if co.f_path: |
15 ${_(' in file ')} | |
16 ${co.f_path}:L${co.line_no} | |
17 %endif | |
18 <span class="date"> | |
19 ${h.age(co.modified_at)} | |
20 </span> | |
21 </div> | |
22 <div class="text"> | |
23 %if h.HasPermissionAny('hg.admin', 'repository.admin')() or co.author.user_id == c.rhodecode_user.user_id: | |
24 <div class="buttons"> | |
1674
6f0143e5efe5
#71 code review
Marcin Kuzminski <marcin@python-works.com>
parents:
1670
diff
changeset
|
25 <span onClick="deleteComment(${co.comment_id})" class="delete-comment ui-button-small">${_('Delete')}</span> |
1670 | 26 </div> |
27 %endif | |
28 ${h.rst(co.text)|n} | |
29 </div> | |
30 </div> | |
31 </%def> |