# HG changeset patch # User Mads Kiilerich # Date 2015-03-06 16:37:19 # Node ID 66d6dc56479bbe8c1fd5077b5705e2d6b9ee73db # Parent c5f49ffbd72b25e20a85ab5c87a576d72216100d pullrequests: add option for adding repo owner as reviewer if none assigned diff --git a/kallithea/templates/pullrequests/pullrequest_show.html b/kallithea/templates/pullrequests/pullrequest_show.html --- a/kallithea/templates/pullrequests/pullrequest_show.html +++ b/kallithea/templates/pullrequests/pullrequest_show.html @@ -242,6 +242,29 @@ ${self.repo_context_bar('showpullrequest %endif + + %if not c.pull_request_reviewers: +
${_('Potential Reviewers')}
+
+
+ ${_('Click to add the repository owner as reviewer:')} +
+ +
+ %endif
@@ -378,6 +401,11 @@ ${self.repo_context_bar('showpullrequest if (window.location.hash != "") { window.location.href = window.location.href; } + + $('.missing_reviewer').click(function(){ + var $this = $(this); + addReviewMember($this.attr('user_id'), $this.attr('fname'), $this.attr('lname'), $this.attr('nname'), $this.attr('gravatar_lnk'), $this.attr('gravatar_size')); + }); });