summaryrefslogtreecommitdiffstats
path: root/template/en/default/attachment
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-10-15 18:40:18 +0200
committerByron Jones <bjones@mozilla.com>2013-10-15 18:40:18 +0200
commita3841dfd8f9fc019eda1ccf57c91b7305cef1c7e (patch)
tree9b5124365c8f6ce5c4730db2081d880660ba0f32 /template/en/default/attachment
parent46ab4b8a85d62bc7b06c1d84c5e9553f9fade0ae (diff)
downloadbugzilla-a3841dfd8f9fc019eda1ccf57c91b7305cef1c7e.tar.gz
bugzilla-a3841dfd8f9fc019eda1ccf57c91b7305cef1c7e.tar.xz
Bug 916906: attaching a file which just contains a github url should automatically redirect to it when viewing
Diffstat (limited to 'template/en/default/attachment')
-rw-r--r--template/en/default/attachment/edit.html.tmpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/template/en/default/attachment/edit.html.tmpl b/template/en/default/attachment/edit.html.tmpl
index 530b2d04c..cbc66e95a 100644
--- a/template/en/default/attachment/edit.html.tmpl
+++ b/template/en/default/attachment/edit.html.tmpl
@@ -208,7 +208,8 @@
readonly = 'readonly'
%]
[% ELSE %]
- <iframe id="viewFrame" src="attachment.cgi?id=[% attachment.id %]">
+ <iframe id="viewFrame" src="attachment.cgi?id=[% attachment.id %]
+ [%- "&amp;content_type=text/plain" IF attachment.contenttype == 'text/x-github-pull-request' %]">
<b>You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
<a href="attachment.cgi?id=[% attachment.id %]">View the attachment on a separate page</a>.</b>
</iframe>