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/hook/attachment/edit-action.html.tmpl | 3 ++- .../template/en/default/hook/attachment/list-action.html.tmpl | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'extensions/Splinter/template/en/default/hook/attachment') 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 7648e1d76..6100deeb7 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,7 +19,8 @@ # David Lawrence #%] -[% IF attachment.ispatch %] +[% IF attachment.ispatch + || (attachment.mimetype == "text/x-github-pull-request" && attachment.external_redirect) %] | 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 ee793b192..e22151b50 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,7 +19,8 @@ # David Lawrence #%] -[% IF attachment.ispatch %] +[% IF attachment.ispatch + || (attachment.mimetype == "text/x-github-pull-request" && attachment.can_review) %] | - Review + Splinter Review [% END %] -- cgit v1.2.3-24-g4f1b