From: Kohei Yoshino Date: Mon, 18 Mar 2019 21:05:53 +0000 (-0400) Subject: Bug 1286448 - Remove Splinter Review for GitHub PRs X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=53ce29cf37bbc656facbb9edb0c7636baf53e653;p=thirdparty%2Fbugzilla.git Bug 1286448 - Remove Splinter Review for GitHub PRs --- diff --git a/extensions/Splinter/template/en/default/hook/attachment/edit-action.html.tmpl b/extensions/Splinter/template/en/default/hook/attachment/edit-action.html.tmpl index 6100deeb7..7648e1d76 100644 --- a/extensions/Splinter/template/en/default/hook/attachment/edit-action.html.tmpl +++ b/extensions/Splinter/template/en/default/hook/attachment/edit-action.html.tmpl @@ -19,8 +19,7 @@ # David Lawrence #%] -[% IF attachment.ispatch - || (attachment.mimetype == "text/x-github-pull-request" && attachment.external_redirect) %] +[% IF attachment.ispatch %] | Review [% END %] diff --git a/extensions/Splinter/template/en/default/hook/attachment/list-action.html.tmpl b/extensions/Splinter/template/en/default/hook/attachment/list-action.html.tmpl index e22151b50..9f196ed8a 100644 --- a/extensions/Splinter/template/en/default/hook/attachment/list-action.html.tmpl +++ b/extensions/Splinter/template/en/default/hook/attachment/list-action.html.tmpl @@ -19,8 +19,7 @@ # David Lawrence #%] -[% IF attachment.ispatch - || (attachment.mimetype == "text/x-github-pull-request" && attachment.can_review) %] +[% IF attachment.ispatch %] | Splinter Review [% END %] diff --git a/extensions/Splinter/template/en/default/pages/splinter.html.tmpl b/extensions/Splinter/template/en/default/pages/splinter.html.tmpl index 61c81dfa8..76fe3bd79 100644 --- a/extensions/Splinter/template/en/default/pages/splinter.html.tmpl +++ b/extensions/Splinter/template/en/default/pages/splinter.html.tmpl @@ -79,7 +79,7 @@ [% FOREACH attachment = bug.attachments %] [% 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) %] + [% NEXT UNLESS attachment.ispatch %] var attachid = parseInt('[% attachment.id FILTER js %]'); var attachment = new Splinter.Bug.Attachment('', attachid); [% IF attachment.id == attach_id %] @@ -94,7 +94,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 || (attachment.mimetype == "text/x-github-pull-request" && attachment.external_redirect) ? 1 : 0 %]; + attachment.isPatch = [% attachment.ispatch ? 1 : 0 %]; attachment.isObsolete = [% attachment.isobsolete ? 1 : 0 %]; attachment.isPrivate = [% attachment.isprivate ? 1 : 0 %]; attachment.isCRLF = [% attach_is_crlf ? 1 : 0 %];