diff options
author | Byron Jones <bjones@mozilla.com> | 2013-10-15 18:40:18 +0200 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2013-10-15 18:40:18 +0200 |
commit | a3841dfd8f9fc019eda1ccf57c91b7305cef1c7e (patch) | |
tree | 9b5124365c8f6ce5c4730db2081d880660ba0f32 /template | |
parent | 46ab4b8a85d62bc7b06c1d84c5e9553f9fade0ae (diff) | |
download | bugzilla-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')
-rw-r--r-- | template/en/default/attachment/edit.html.tmpl | 3 |
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 %] + [%- "&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> |