changeset 3105:706b9f84ade3 beta

fixed labels in reviewers list
author Marcin Kuzminski <marcin@python-works.com>
date Fri, 14 Dec 2012 03:24:30 +0100
parents c77d5c6358eb
children e26c11b68850
files rhodecode/templates/pullrequests/pullrequest_show.html
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/templates/pullrequests/pullrequest_show.html	Fri Dec 14 03:19:15 2012 +0100
+++ b/rhodecode/templates/pullrequests/pullrequest_show.html	Fri Dec 14 03:24:30 2012 +0100
@@ -109,9 +109,9 @@
                       <img src="${h.url(str('/images/icons/flag_status_%s.png' % (status[0][1].status if status else 'not_reviewed')))}"/>
                     </div>
                   <div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(member.email,14)}"/> </div>
-                  <div style="float:left">${member.full_name} (${_('owner')})</div>
+                  <div style="float:left">${member.full_name} (${_('owner') if c.pull_request.user_id == member.user_id else _('reviewer')})</div>
                   <input type="hidden" value="${member.user_id}" name="review_members" />
-                  %if not c.pull_request.is_closed() and (h.HasPermissionAny('hg.admin', 'repository.admin')() or c.pull_request.author.user_id == c.rhodecode_user.user_id):
+                  %if not c.pull_request.is_closed() and (h.HasPermissionAny('hg.admin', 'repository.admin')() or c.pull_request.user_id == c.rhodecode_user.user_id):
                   <span class="delete_icon action_button" onclick="removeReviewer(${member.user_id})"></span>
                   %endif
                 </div>