diff options
author | lpsolit%gmail.com <> | 2005-04-28 11:14:25 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-04-28 11:14:25 +0200 |
commit | 95859bf15300cddd1ece82e8224367638f956f20 (patch) | |
tree | 91b595c4452d092da38e7cc876fa6ebdc4337396 /template | |
parent | e1ab613cf4f4324924fe33163b501c1835c5deb4 (diff) | |
download | bugzilla-95859bf15300cddd1ece82e8224367638f956f20.tar.gz bugzilla-95859bf15300cddd1ece82e8224367638f956f20.tar.xz |
Bug 274724: The 'Edit Attachment' link is now available even if a user does not have 'editbugs' privs - Patch by Frédéric Buclin <LpSolit@gmail.com> r=myk a=myk
Diffstat (limited to 'template')
-rw-r--r-- | template/en/default/attachment/list.html.tmpl | 65 |
1 files changed, 30 insertions, 35 deletions
diff --git a/template/en/default/attachment/list.html.tmpl b/template/en/default/attachment/list.html.tmpl index 41115ab9c..5840139a3 100644 --- a/template/en/default/attachment/list.html.tmpl +++ b/template/en/default/attachment/list.html.tmpl @@ -33,29 +33,29 @@ </tr> [% canseeprivate = !Param("insidergroup") || UserInGroup(Param("insidergroup")) %] [% FOREACH attachment = attachments %] - [% IF !attachment.isprivate || canseeprivate %] - <tr [% "class=\"bz_private\"" IF attachment.isprivate %]> - <td valign="top"> - <a href="attachment.cgi?id=[% attachment.attachid %]">[% attachment.description FILTER html FILTER obsolete(attachment.isobsolete) %]</a> - </td> - - <td valign="top"> - [% IF attachment.ispatch %] - <i>patch</i> - [% ELSE %] - [% attachment.contenttype FILTER html %] - [% END %] - </td> - - <td valign="top">[% attachment.date FILTER time %]</td> - <td valign="top">[% attachment.datasize FILTER unitconvert %]</td> + [% IF !attachment.isprivate || canseeprivate %] + <tr [% "class=\"bz_private\"" IF attachment.isprivate %]> + <td valign="top"> + <a href="attachment.cgi?id=[% attachment.attachid %]">[% attachment.description FILTER html FILTER obsolete(attachment.isobsolete) %]</a> + </td> - [% IF show_attachment_flags %] <td valign="top"> - [% IF attachment.flags.size == 0 %] - <i>none</i> + [% IF attachment.ispatch %] + <i>patch</i> [% ELSE %] - [% FOREACH flag = attachment.flags %] + [% attachment.contenttype FILTER html %] + [% END %] + </td> + + <td valign="top">[% attachment.date FILTER time %]</td> + <td valign="top">[% attachment.datasize FILTER unitconvert %]</td> + + [% IF show_attachment_flags %] + <td valign="top"> + [% IF attachment.flags.size == 0 %] + <i>none</i> + [% ELSE %] + [% FOREACH flag = attachment.flags %] [% IF flag.setter %] [% flag.setter.nick FILTER html %]: [% END %] @@ -63,24 +63,19 @@ [%+ IF flag.status == "?" && flag.requestee %] ([% flag.requestee.nick FILTER html %]) [% END %]<br> + [% END %] [% END %] - [% END %] - </td> - [% END %] - - <td valign="top"> - [% IF attachment.canedit %] - <a href="attachment.cgi?id=[% attachment.attachid %]&action=edit">Edit</a> + </td> [% END %] - [% IF attachment.ispatch && patchviewerinstalled %] - [% IF attachment.canedit %] - | + + <td valign="top"> + <a href="attachment.cgi?id=[% attachment.attachid %]&action=edit">Edit</a> + [% IF attachment.ispatch && patchviewerinstalled %] + | <a href="attachment.cgi?id=[% attachment.attachid %]&action=diff">Diff</a> [% END %] - <a href="attachment.cgi?id=[% attachment.attachid %]&action=diff">Diff</a> - [% END %] - </td> - </tr> - [% END %] + </td> + </tr> + [% END %] [% END %] <tr> |