summaryrefslogtreecommitdiffstats
path: root/template/en/default/attachment
diff options
context:
space:
mode:
authorDexter Morgan <dmorgan@mageia.org>2013-02-20 16:07:49 +0000
committerColin Guthrie <colin@mageia.org>2014-09-15 20:44:40 +0100
commitba702dcd7ac9b2e6c4d46ad21c7bfacfd6883189 (patch)
treeece0d9c9d8fa1eff83f8527397da6b2c8c755dd6 /template/en/default/attachment
parent48a4cb57974b7f1932c3fe31825c02e4dc4ab30c (diff)
downloadbugzilla-ba702dcd7ac9b2e6c4d46ad21c7bfacfd6883189.tar
bugzilla-ba702dcd7ac9b2e6c4d46ad21c7bfacfd6883189.tar.gz
bugzilla-ba702dcd7ac9b2e6c4d46ad21c7bfacfd6883189.tar.bz2
bugzilla-ba702dcd7ac9b2e6c4d46ad21c7bfacfd6883189.tar.xz
bugzilla-ba702dcd7ac9b2e6c4d46ad21c7bfacfd6883189.zip
Add 4.0 branch
Diffstat (limited to 'template/en/default/attachment')
-rw-r--r--template/en/default/attachment/create.html.tmpl8
-rw-r--r--template/en/default/attachment/createformcontents.html.tmpl18
-rw-r--r--template/en/default/attachment/diff-file.html.tmpl4
-rw-r--r--template/en/default/attachment/diff-header.html.tmpl8
-rw-r--r--template/en/default/attachment/edit.html.tmpl343
-rw-r--r--template/en/default/attachment/list.html.tmpl32
-rw-r--r--template/en/default/attachment/show-multiple.html.tmpl2
7 files changed, 245 insertions, 170 deletions
diff --git a/template/en/default/attachment/create.html.tmpl b/template/en/default/attachment/create.html.tmpl
index f00a0ad..acf9e23 100644
--- a/template/en/default/attachment/create.html.tmpl
+++ b/template/en/default/attachment/create.html.tmpl
@@ -33,8 +33,9 @@
title = title
header = header
subheader = subheader
- style_urls = [ 'skins/standard/create_attachment.css' ]
- javascript_urls = [ "js/attachment.js", "js/util.js" ]
+ style_urls = [ 'skins/standard/attachment.css' ]
+ yui = [ 'autocomplete' ]
+ javascript_urls = [ "js/attachment.js", 'js/field.js', "js/util.js" ]
doc_section = "attachments.html"
%]
@@ -122,6 +123,9 @@
</td>
</tr>
[% END %]
+
+ [% Hook.process('form_before_submit') %]
+
<tr>
<th>&nbsp;</th>
<td><input type="submit" id="create" value="Submit"></td>
diff --git a/template/en/default/attachment/createformcontents.html.tmpl b/template/en/default/attachment/createformcontents.html.tmpl
index 2cef632..d0ca336 100644
--- a/template/en/default/attachment/createformcontents.html.tmpl
+++ b/template/en/default/attachment/createformcontents.html.tmpl
@@ -86,7 +86,7 @@
<label for="list">select from list</label>:
<select name="contenttypeselection" id="contenttypeselection"
onchange="this.form.contenttypemethod[1].checked = true;">
- [% PROCESS "attachment/content-types.html.tmpl" %]
+ [% PROCESS content_types %]
</select><br>
<input type="radio" id="manual"
name="contenttypemethod" value="manual">
@@ -104,3 +104,19 @@
[% END %]
</td>
</tr>
+
+[% BLOCK content_types %]
+ [% mimetypes = [{type => "text/plain", desc => "plain text"},
+ {type => "text/html", desc => "HTML source"},
+ {type => "application/xml", desc => "XML source"},
+ {type => "image/gif", desc => "GIF image"},
+ {type => "image/jpeg", desc => "JPEG image"},
+ {type => "image/png", desc => "PNG image"},
+ {type => "application/octet-stream", desc => "binary file"}]
+ %]
+ [% Hook.process("mimetypes", "attachment/createformcontents.html.tmpl") %]
+
+ [% FOREACH m = mimetypes %]
+ <option value="[% m.type FILTER html %]">[% m.desc FILTER html %] ([% m.type FILTER html %])</option>
+ [% END %]
+[% END %]
diff --git a/template/en/default/attachment/diff-file.html.tmpl b/template/en/default/attachment/diff-file.html.tmpl
index 9392ca1..a742a84 100644
--- a/template/en/default/attachment/diff-file.html.tmpl
+++ b/template/en/default/attachment/diff-file.html.tmpl
@@ -53,7 +53,7 @@ incremental_restore()
[% FOREACH section = sections %]
[% section_num = section_num + 1 %]
<tr><th colspan="4" class="section_head">
- <table cellpadding="0" cellspacing="0">
+ <table id="[% file.filename FILTER html %]_sec[% section_num %]" cellpadding="0" cellspacing="0">
<tr><th width="95%" align="left">
[% IF file.is_add %]
Added
@@ -79,7 +79,7 @@ incremental_restore()
&nbsp;&nbsp;[% section.func_info FILTER html IF section.func_info %]
[% END %]
</th><th>
- <a name="[% file.filename FILTER html %]_sec[% section_num %]" href="#[% file.filename FILTER html %]_sec[% section_num %]">Link&nbsp;Here</a>&nbsp;
+ <a href="#[% file.filename FILTER html %]_sec[% section_num %]">Link&nbsp;Here</a>&nbsp;
</th></tr></table>
</th></tr>
[% current_line_old = section.old_start %]
diff --git a/template/en/default/attachment/diff-header.html.tmpl b/template/en/default/attachment/diff-header.html.tmpl
index 663d9b7..22e101c 100644
--- a/template/en/default/attachment/diff-header.html.tmpl
+++ b/template/en/default/attachment/diff-header.html.tmpl
@@ -53,12 +53,14 @@ Interdiff of #[% oldid %] and #[% newid %] for [% terms.bug %] #[% bugid %]
[% END %]
[% PROCESS global/header.html.tmpl doc_section = "attachments.html#patchviewer"
javascript_urls = "js/attachment.js"
- style_urls = ['skins/standard/create_attachment.css'] %]
+ style_urls = ['skins/standard/attachment.css'] %]
[% ELSE %]
<html>
<head>
- <link href="skins/standard/create_attachment.css" rel="stylesheet" type="text/css">
- <script src="js/attachment.js" type="text/javascript"></script>
+ <link href="[% 'skins/standard/attachment.css' FILTER mtime %]"
+ rel="stylesheet" type="text/css">
+ <script src="[% 'js/attachment.js' FILTER mtime %]"
+ type="text/javascript"></script>
</head>
<body onload="[% onload FILTER html %]">
[% END %]
diff --git a/template/en/default/attachment/edit.html.tmpl b/template/en/default/attachment/edit.html.tmpl
index fa8a53a..c0d3061 100644
--- a/template/en/default/attachment/edit.html.tmpl
+++ b/template/en/default/attachment/edit.html.tmpl
@@ -17,6 +17,7 @@
#
# Contributor(s): Myk Melez <myk@mozilla.org>
# Frédéric Buclin <LpSolit@gmail.com>
+ # Guy Pyrzak <guy.pyrzak@gmail.com>
#%]
[% PROCESS global/variables.none.tmpl %]
@@ -36,8 +37,10 @@
header = header
subheader = subheader
doc_section = "attachments.html"
- javascript_urls = ['js/attachment.js']
- style_urls = ['skins/standard/create_attachment.css']
+ javascript_urls = ['js/attachment.js', 'js/field.js']
+ style_urls = ['skins/standard/attachment.css']
+ yui = [ 'autocomplete' ]
+ bodyclasses = "no_javascript"
%]
[%# No need to display the Diff button and iframe if the attachment is not a patch. %]
@@ -54,12 +57,38 @@
<input type="hidden" name="token" value="[% issue_hash_token([attachment.id, attachment.modification_time]) FILTER html %]">
[% END %]
- <table class="attachment_info" width="100%">
-
- <tr>
- <td id="attachment_attributes">
+ <div id="attachment_info" class="attachment_info [% IF can_edit %] edit[% ELSE %] read[% END%]">
+ <div id="attachment_attributes">
+ <div id="attachment_information_read_only" class="[% "bz_private" IF attachment.isprivate %]">
+ <div class="title">
+ [% "[patch]" IF attachment.ispatch%]
+ <span class="[% "bz_obsolete" IF attachment.isobsolete %]" title="[% "obsolete" IF attachment.isobsolete %]">
+ [% attachment.description FILTER html %]
+ </span>
+ [% IF can_edit %]
+ <span class="bz_edit">(<a href="javascript:toggle_attachment_details_visibility()">edit details</a>)</span>
+ [% END %]
+ </div>
+ [% IF NOT attachment.isurl %]
+ <div class="details">
+ [% attachment.filename FILTER html %] ([% attachment.contenttype FILTER html %]),
+ [% IF attachment.datasize %]
+ [%+ attachment.datasize FILTER unitconvert %]
+ [% ELSE %]
+ <em>deleted</em>
+ [% END %], created by [%+ INCLUDE global/user.html.tmpl who = attachment.attacher %]
+ [% IF attachment.isprivate %];
+ <span class="bz_private">only visible to <strong>[% Param('insidergroup') FILTER html %]</strong> members</span>
+ [% END %]
+ </div>
+ [% END %]
+ </div>
+ <div id="attachment_information_edit">
+ <span class="bz_hide">
+ (<a href="javascript:toggle_attachment_details_visibility();">hide</a>)
+ </span>
<div id="attachment_description">
- <label for="description">Description:</label>
+ <label for="description">Description:</label>&nbsp;
[% INCLUDE global/textarea.html.tmpl
id = 'description'
name = 'description'
@@ -68,38 +97,34 @@
wrap = 'soft'
classes = 'block' _ editable_or_hide
defaultcontent = attachment.description
- %]
- [% IF !can_edit %]
- [%+ attachment.description FILTER wrap_comment(25) FILTER html %]
- [% END %]
+ %]
</div>
[% IF attachment.isurl %]
- <input type="hidden" name="filename"
- value="[% attachment.filename FILTER html %]">
- <input type="hidden" name="contenttypeentry"
- value="[% attachment.contenttype FILTER html %]">
+ <input type="hidden" name="filename"
+ value="[% attachment.filename FILTER html %]">
+ <input type="hidden" name="contenttypeentry"
+ value="[% attachment.contenttype FILTER html %]">
[% ELSE %]
<div id="attachment_filename">
<label for="filename">Filename:</label>
- <input type="text" size="20" class="block[% editable_or_hide %]"
+ <input type="text" size="20" class="text block[% editable_or_hide %]"
id="filename" name="filename"
- value="[% attachment.filename FILTER html %]">
- [% IF !can_edit %]
- [%+ attachment.filename FILTER truncate(25) FILTER html %]
- [% END %]
+ value="[% attachment.filename FILTER html %]">
</div>
<div id="attachment_mimetype">
<label for="contenttypeentry">MIME Type:</label>
- <input type="text" size="20" class="block[% editable_or_hide %]"
+ <input type="text" size="20" class="text block[% editable_or_hide %]"
id="contenttypeentry" name="contenttypeentry"
- value="[% attachment.contenttype FILTER html %]">
- [% IF !can_edit %]
- [%+ attachment.contenttype FILTER truncate(25) FILTER html %]
- [% END %]
+ value="[% attachment.contenttype FILTER html %]">
</div>
-
+
+ <div id="attachment_creator">
+ <span class="label">Creator:</span>
+ [%+ INCLUDE global/user.html.tmpl who = attachment.attacher %]
+ </div>
+
<div id="attachment_size">
<span class="label">Size:</span>
[% IF attachment.datasize %]
@@ -109,154 +134,158 @@
[% END %]
</div>
- <div id="attachment_creator">
- <span class="label">Creator:</span>
- [%+ INCLUDE global/user.html.tmpl who = attachment.attacher %]
- </div>
-
<div id="attachment_ispatch">
<input type="checkbox" id="ispatch" name="ispatch" value="1"
- [%+ IF !can_edit %]class="bz_hidden_option"[% END %]
[%+ 'checked="checked"' IF attachment.ispatch %]>
- [% IF can_edit %]
- <label for="ispatch">patch</label>
- [% ELSE %]
- <span class="label">Is Patch:</span>
- [%+ attachment.ispatch ? "yes" : "no" %]
- [% END %]
+ <label for="ispatch">patch</label>
</div>
[% END %]
+ <div class="readonly">
+ <div class="checkboxes">
+ <div id="attachment_isobsolete">
+ <input type="checkbox" id="isobsolete" name="isobsolete" value="1"
+ [%+ 'checked="checked"' IF attachment.isobsolete %]>
+ <label for="isobsolete">obsolete</label>
+ </div>
- <div id="attachment_isobsolete">
- <input type="checkbox" id="isobsolete" name="isobsolete" value="1"
- [%+ IF !can_edit %]class="bz_hidden_option"[% END %]
- [%+ 'checked="checked"' IF attachment.isobsolete %]>
- [% IF can_edit %]
- <label for="isobsolete">obsolete</label>
- [% ELSE %]
- <span class="label">Is Obsolete:</span>
- [%+ attachment.isobsolete ? "yes" : "no" %]
- [% END %]
- </div>
-
- [% IF user.is_insider %]
- <div id="attachment_isprivate">
- <input type="checkbox" id="isprivate" name="isprivate" value="1"
- [%+ IF !can_edit %]class="bz_hidden_option"[% END %]
- [%+ 'checked="checked"' IF attachment.isprivate %]>
- [% IF can_edit %]
- <label for="isprivate">private (only visible to
- <strong>[% Param('insidergroup') FILTER html %]</strong>)
- </label>
- [% ELSE %]
- <span class="label">Is Private:</span>
- [%+ attachment.isprivate ? "yes" : "no" %]
+ [% IF user.is_insider %]
+ <div id="attachment_isprivate">
+ <input type="checkbox" id="isprivate" name="isprivate" value="1"
+ [%+ 'checked="checked"' IF attachment.isprivate %]>
+ [% IF can_edit %]
+ <label for="isprivate">private (only visible to
+ <strong>[% Param('insidergroup') FILTER html %]</strong>)
+ </label>
+ [% ELSE %]
+ <span class="label">Is Private:</span>
+ [%+ attachment.isprivate ? "yes" : "no" %]
+ [% END %]
+ </div>
[% END %]
</div>
- [% END %]
+ </div>
+ </div>
- [% IF attachment.flag_types.size > 0 %]
- <div id="attachment_flags">
- [% PROCESS "flag/list.html.tmpl" bug_id = attachment.bug_id
- attach_id = attachment.id
- flag_types = attachment.flag_types
- read_only_flags = !can_edit
+ <div id="attachment_view_window">
+ [% IF !attachment.datasize %]
+ <div><b>The content of this attachment has been deleted.</b></div>
+ [% ELSIF attachment.isurl %]
+ <div>
+ <a href="[% attachment.data FILTER html %]">
+ [% IF attachment.datasize < 120 %]
+ [% attachment.data FILTER html %]
+ [% ELSE %]
+ [% attachment.data FILTER truncate(80) FILTER html %]
+ &nbsp;...
+ [% attachment.data.match(".*(.{20})$").0 FILTER html %]
+ [% END %]
+ </a>
+ </div>
+ [% ELSIF !Param("allow_attachment_display") %]
+ <div id="view_disabled">
+ <p><b>
+ The attachment is not viewable in your browser due to security
+ restrictions enabled by your [% terms.Bugzilla %] administrator.
+ </b></p>
+ <p><b>
+ In order to view the attachment, you first have to
+ <a href="attachment.cgi?id=[% attachment.id %]">download it</a>.
+ </b></p>
+ </div>
+ [% ELSIF attachment.is_viewable %]
+ <div >
+ [% INCLUDE global/textarea.html.tmpl
+ id = 'editFrame'
+ name = 'comment'
+ classes = 'bz_default_hidden'
+ minrows = 10
+ cols = 80
+ wrap = 'soft'
+ disabled = 'disabled'
+ defaultcontent = (attachment.contenttype.match('^text\/')) ?
+ attachment.data.replace('(.*\n|.+)', '>$1') : undef
%]
+ <iframe id="viewFrame" src="attachment.cgi?id=[% attachment.id %]">
+ <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>
+ <script type="text/javascript">
+ <!--
+ var patchviewerinstalled = 0;
+ var attachment_id = [% attachment.id %];
+ if (typeof document.getElementById == "function") {
+ [% IF use_patchviewer %]
+ var patchviewerinstalled = 1;
+ document.write('<iframe id="viewDiffFrame" class="bz_default_hidden"><\/iframe>');
+ [% END %]
+ [% IF user.id %]
+ document.write('<button type="button" id="editButton" onclick="editAsComment(patchviewerinstalled);">Edit Attachment As Comment<\/button>');
+ document.write('<button type="button" id="undoEditButton" onclick="undoEditAsComment(patchviewerinstalled);" class="bz_default_hidden">Undo Edit As Comment<\/button>');
+ document.write('<button type="button" id="redoEditButton" onclick="redoEditAsComment(patchviewerinstalled);" class="bz_default_hidden">Redo Edit As Comment<\/button>');
+ var editFrame = document.getElementById('editFrame');
+ if (editFrame) {
+ editFrame.disabled = false;
+ }
+ [% END %]
+ [% IF use_patchviewer %]
+ document.write('<button type="button" id="viewDiffButton" onclick="viewDiff(attachment_id, patchviewerinstalled);">View Attachment As Diff<\/button>');
+ [% END %]
+ document.write('<button type="button" id="viewRawButton" onclick="viewRaw(patchviewerinstalled);" class="bz_default_hidden">View Attachment As Raw<\/button>');
+ }
+ //-->
+ </script>
+ </div>
+ [% ELSE %]
+ <div id="noview">
+ <p><b>
+ Attachment is not viewable in your browser because its MIME type
+ ([% attachment.contenttype FILTER html %]) is not one that your browser is
+ able to display.
+ </b></p>
+ <p><b>
+ <a href="attachment.cgi?id=[% attachment.id %]">Download the attachment</a>.
+ </b></p>
</div>
[% END %]
-
+ </div>
+ <div id="attachment_comments_and_flags">
[% IF user.id %]
- <div id="smallCommentFrame">
+ <div id="smallCommentFrame" >
<label for="comment">Comment (on the [% terms.bug %]):</label>
+ [% classNames = 'block' %]
+ [% classNames = "$classes bz_private" IF attachment.isprivate %]
[% INCLUDE global/textarea.html.tmpl
id = 'comment'
name = 'comment'
- minrows = 5
- cols = 25
+ minrows = 10
+ cols = 80
wrap = 'soft'
- classes = 'block'
+ classes = classNames
%]
</div>
+ [% END %]
+ <div id="attachment_flags">
+ [% IF attachment.flag_types.size > 0 %]
+
+ [% PROCESS "flag/list.html.tmpl" bug_id = attachment.bug_id
+ attach_id = attachment.id
+ flag_types = attachment.flag_types
+ read_only_flags = !can_edit
+ %]
+
+ [% END %]
+ </div>
- <input type="submit" value="Submit" id="update"><br><br>
- [% END %]
- </td>
+ [% Hook.process('form_before_submit') %]
- [% IF !attachment.datasize %]
- <td width="75%"><b>The content of this attachment has been deleted.</b></td>
- [% ELSIF attachment.isurl %]
- <td width="75%">
- <a href="[% attachment.data FILTER html %]">
- [% IF attachment.datasize < 120 %]
- [% attachment.data FILTER html %]
- [% ELSE %]
- [% attachment.data FILTER truncate(80) FILTER html %]
- &nbsp;...
- [% attachment.data.match(".*(.{20})$").0 FILTER html %]
- [% END %]
- </a>
- </td>
- [% ELSIF !Param("allow_attachment_display") %]
- <td id="view_disabled" width="50%">
- <p><b>
- The attachment is not viewable in your browser due to security
- restrictions enabled by [% terms.Bugzilla %].
- </b></p>
- <p><b>
- In order to view the attachment, you first have to
- <a href="attachment.cgi?id=[% attachment.id %]">download it</a>.
- </b></p>
- </td>
- [% ELSIF attachment.is_viewable %]
- <td width="75%">
- [% INCLUDE global/textarea.html.tmpl
- id = 'editFrame'
- name = 'comment'
- style = 'height: 400px; width: 100%; display: none'
- minrows = 10
- cols = 80
- wrap = 'soft'
- defaultcontent = (attachment.contenttype.match('^text\/')) ?
- attachment.data.replace('(.*\n|.+)', '>$1') : undef
- %]
- <iframe id="viewFrame" src="attachment.cgi?id=[% attachment.id %]" style="height: 400px; width: 100%;">
- <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>
- <script type="text/javascript">
- <!--
- var patchviewerinstalled = 0;
- var attachment_id = [% attachment.id %];
- if (typeof document.getElementById == "function") {
-[% IF use_patchviewer %]
- var patchviewerinstalled = 1;
- document.write('<iframe id="viewDiffFrame" style="height: 400px; width: 100%; display: none;"><\/iframe>');
-[% END %]
- document.write('<button type="button" id="editButton" onclick="editAsComment(patchviewerinstalled);">Edit Attachment As Comment<\/button>');
- document.write('<button type="button" id="undoEditButton" onclick="undoEditAsComment(patchviewerinstalled);" style="display: none;">Undo Edit As Comment<\/button>');
- document.write('<button type="button" id="redoEditButton" onclick="redoEditAsComment(patchviewerinstalled);" style="display: none;">Redo Edit As Comment<\/button>');
-[% IF use_patchviewer %]
- document.write('<button type="button" id="viewDiffButton" onclick="viewDiff(attachment_id, patchviewerinstalled);">View Attachment As Diff<\/button>');
-[% END %]
- document.write('<button type="button" id="viewRawButton" onclick="viewRaw(patchviewerinstalled);" style="display: none;">View Attachment As Raw<\/button>');
- }
- //-->
- </script>
- </td>
- [% ELSE %]
- <td id="noview" width="50%">
- <p><b>
- Attachment is not viewable in your browser because its MIME type
- ([% attachment.contenttype FILTER html %]) is not one that your browser is
- able to display.
- </b></p>
- <p><b>
- <a href="attachment.cgi?id=[% attachment.id %]">Download the attachment</a>.
- </b></p>
- </td>
- [% END %]
- </tr>
- </table>
+ [% IF user.id %]
+ <div id="update_container">
+ <input type="submit" value="Submit" id="update">
+ </div>
+ [% END %]
+ </div>
+ </div>
+ </div>
</form>
<div id="attachment_actions">
@@ -270,6 +299,7 @@
&& attachment.datasize > 0 %]
| <a href="attachment.cgi?id=[% attachment.id %]&amp;action=delete">Delete</a>
[% END %]
+ [% Hook.process('action') %]
</div>
<div id="attachment_list">
@@ -283,7 +313,14 @@
[% " |" UNLESS loop.last() %]
[% END %]
</div>
-
+[% IF can_edit %]
+ <script type="text/javascript">
+ <!--
+ YAHOO.util.Dom.removeClass( document.body, "no_javascript" );
+ toggle_attachment_details_visibility( );
+ -->
+ </script>
+[% END %]
[% Hook.process('end') %]
[% PROCESS global/footer.html.tmpl %]
diff --git a/template/en/default/attachment/list.html.tmpl b/template/en/default/attachment/list.html.tmpl
index 6453b4e..89eef18 100644
--- a/template/en/default/attachment/list.html.tmpl
+++ b/template/en/default/attachment/list.html.tmpl
@@ -19,6 +19,8 @@
# Frédéric Buclin <LpSolit@gmail.com>
#%]
+[% RETURN UNLESS attachments.size || Param("maxattachmentsize") %]
+
<script type="text/javascript">
<!--
function toggle_display(link) {
@@ -50,9 +52,9 @@ function toggle_display(link) {
<br>
<table id="attachment_table" cellspacing="0" cellpadding="4">
- <tr>
+ <tr id="a0">
<th colspan="[% show_attachment_flags ? 3 : 2 %]" align="left">
- <a name="a0" id="a0">Attachments</a>
+ Attachments
</th>
</tr>
@@ -65,7 +67,7 @@ function toggle_display(link) {
[% IF attachment.isobsolete %]
[% obsolete_attachments = obsolete_attachments + 1 %]
[% END %]
- <tr class="[% "bz_contenttype_" _ attachment.contenttype
+ <tr id="a[% count %]" class="[% "bz_contenttype_" _ attachment.contenttype
FILTER css_class_quote UNLESS attachment.isurl %]
[% " bz_patch" IF attachment.ispatch %]
[% " bz_url" IF attachment.isurl %]
@@ -74,7 +76,7 @@ function toggle_display(link) {
IF attachment.isobsolete %]">
<td valign="top">
[% IF attachment.datasize %]
- <a name="a[% count %]" href="attachment.cgi?id=[% attachment.id %]"
+ <a href="attachment.cgi?id=[% attachment.id %]"
title="View the content of the attachment">
[% END %]
<b>[% attachment.description FILTER html FILTER obsolete(attachment.isobsolete) %]</b>
@@ -109,10 +111,22 @@ function toggle_display(link) {
<i>no flags</i>
[% ELSE %]
[% FOREACH flag = attachment.flags %]
- [% flag.setter.nick FILTER html %]:
+ [% IF user.id %]
+ <span title="[% flag.setter.identity FILTER html %]">[% flag.setter.nick FILTER html %]</span>:
+ [% ELSIF flag.setter.name %]
+ <span title="[% flag.setter.name FILTER html %]">[% flag.setter.nick FILTER html %]</span>:
+ [% ELSE %]
+ [% flag.setter.nick FILTER html %]:
+ [% END %]
[%+ flag.type.name FILTER html FILTER no_break %][% flag.status %]
[%+ IF flag.status == "?" && flag.requestee %]
- ([% flag.requestee.nick FILTER html %])
+ [% IF user.id %]
+ (<span title="[% flag.requestee.identity FILTER html %]">[% flag.requestee.nick FILTER html %]</span>)
+ [% ELSIF flag.requestee.name %]
+ (<span title="[% flag.requestee.name FILTER html %]">[% flag.requestee.nick FILTER html %]</span>)
+ [% ELSE %]
+ ([% flag.requestee.nick FILTER html %])
+ [% END %]
[% END %]<br>
[% END %]
[% END %]
@@ -143,8 +157,10 @@ function toggle_display(link) {
[% END %]
</span>
[% END %]
- <a href="attachment.cgi?bugid=[% bugid %]&amp;action=enter">Add an attachment</a>
- (proposed patch, testcase, etc.)
+ [% IF Param("maxattachmentsize") %]
+ <a href="attachment.cgi?bugid=[% bugid %]&amp;action=enter">Add an attachment</a>
+ (proposed patch, testcase, etc.)
+ [% END %]
</td>
</tr>
</table>
diff --git a/template/en/default/attachment/show-multiple.html.tmpl b/template/en/default/attachment/show-multiple.html.tmpl
index bcc2977..15e20e8 100644
--- a/template/en/default/attachment/show-multiple.html.tmpl
+++ b/template/en/default/attachment/show-multiple.html.tmpl
@@ -31,7 +31,7 @@
title = title
header = header
subheader = filtered_summary
- style_urls = ['skins/standard/create_attachment.css']
+ style_urls = ['skins/standard/attachment.css']
%]
<br>