From dc519b098fac5c18b3807e8a7dfd37334799c951 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 12 Jul 2016 14:44:03 +0000 Subject: Bug 1283649 - When an attachment is a github pull request link, the pull request diff should be displayed in the edit page --- .../template/en/default/pages/splinter.html.tmpl | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'extensions/Splinter/template/en/default/pages/splinter.html.tmpl') diff --git a/extensions/Splinter/template/en/default/pages/splinter.html.tmpl b/extensions/Splinter/template/en/default/pages/splinter.html.tmpl index 16d312759..9ecaded3f 100644 --- a/extensions/Splinter/template/en/default/pages/splinter.html.tmpl +++ b/extensions/Splinter/template/en/default/pages/splinter.html.tmpl @@ -34,7 +34,7 @@ "skins/custom/bug_groups.css" ] javascript_urls = [ "js/yui/element/element-min.js", "js/yui/container/container-min.js", - "js/yui/button/button-min.js", + "js/yui/button/button-min.js", "js/yui/json/json-min.js", "js/yui/datasource/datasource-min.js", "js/yui/datatable/datatable-min.js", @@ -86,11 +86,11 @@ [% END %] [% FOREACH attachment = bug.attachments %] - [% NEXT IF attachment.isprivate && !user.is_insider && attachment.attacher.id != user.id %] - [% NEXT IF !attachment.ispatch %] + [% NEXT IF attachment.isprivate && !user.is_insider && attachment.attacher.id != user.id %] + [% NEXT IF !attachment.ispatch && !(attachment.mimetype == "text/x-github-pull-request" && attachment.external_redirect) %] var attachid = parseInt('[% attachment.id FILTER js %]'); var attachment = new Splinter.Bug.Attachment('', attachid); - [% IF attachment.id == attach_id && attachment.ispatch %] + [% IF attachment.id == attach_id %] [% flag_types = attachment.flag_types %] [% can_edit = attachment.validate_can_edit %] attachment.data = '[% attach_data FILTER js %]'; @@ -102,7 +102,7 @@ attachment.date = Splinter.Bug.parseDate('[% attachment.attached FILTER time("%Y-%m-%d %T %z") FILTER js %]'); attachment.whoName = Splinter.Utils.strip('[% attachment.attacher.name FILTER js %]'); attachment.whoEmail = Splinter.Utils.strip('[% attachment.attacher.email FILTER js %]'); - attachment.isPatch = [% attachment.ispatch ? 1 : 0 %]; + attachment.isPatch = [% attachment.ispatch || (attachment.mimetype == "text/x-github-pull-request" && attachment.external_redirect) ? 1 : 0 %]; attachment.isObsolete = [% attachment.isobsolete ? 1 : 0 %]; attachment.isPrivate = [% attachment.isprivate ? 1 : 0 %]; attachment.isCRLF = [% attach_is_crlf ? 1 : 0 %]; @@ -125,7 +125,7 @@ [reviews] [% END %] - [help] @@ -186,9 +186,9 @@
  • From the Overview page, you can add a more generic overview comment that will appear at the beginning of your review.
  • To comment on a specific lines in the patch, first select the filename from the file navigation links.
  • Then double click the line you want to review and a comment box will appear below the line.
  • -
  • When the review is complete and you publish it, the overview comment and all line specific comments with their context, +
  • When the review is complete and you publish it, the overview comment and all line specific comments with their context, will be combined together into a single review comment on the [% terms.bug %] report.
  • -
  • For more detailed instructions, read the Splinter +
  • For more detailed instructions, read the Splinter help page.
  • @@ -276,12 +276,12 @@
    - Powered by Splinter + Powered by Splinter
    -- cgit v1.2.3-24-g4f1b