Mercurial > kallithea
diff rhodecode/templates/changeset/changeset_file_comment.html @ 1860:1f06cd49cb3e beta
changeset: simplifying comments
author | Aras Pranckevicius <aras@unity3d.com> |
---|---|
date | Sat, 07 Jan 2012 21:44:18 +0200 |
parents | ef0613584ced |
children | f91d3f9b7230 |
line wrap: on
line diff
--- a/rhodecode/templates/changeset/changeset_file_comment.html Sat Jan 07 19:07:00 2012 +0200 +++ b/rhodecode/templates/changeset/changeset_file_comment.html Sat Jan 07 21:44:18 2012 +0200 @@ -11,22 +11,16 @@ <img src="${h.gravatar_url(co.author.email, 20)}" /> ${co.author.username} </span> - <a href="${h.url.current(anchor='comment-%s' % co.comment_id)}"> ${_('commented on')} </a> - ${h.short_id(co.revision)} - %if co.f_path: - ${_(' in file ')} - ${co.f_path}:L ${co.line_no} - %endif <span class="date"> ${h.age(co.modified_at)} </span> + %if h.HasPermissionAny('hg.admin', 'repository.admin')() or co.author.user_id == c.rhodecode_user.user_id: + <span class="buttons"> + <span onClick="deleteComment(${co.comment_id})" class="delete-comment ui-btn">${_('Delete')}</span> + </span> + %endif </div> <div class="text"> - %if h.HasPermissionAny('hg.admin', 'repository.admin')() or co.author.user_id == c.rhodecode_user.user_id: - <div class="buttons"> - <span onClick="deleteComment(${co.comment_id})" class="delete-comment ui-btn">${_('Delete')}</span> - </div> - %endif ${h.rst_w_mentions(co.text)|n} </div> </div>