diff options
Diffstat (limited to 'template')
-rw-r--r-- | template/en/default/attachment/list.html.tmpl | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/template/en/default/attachment/list.html.tmpl b/template/en/default/attachment/list.html.tmpl index d64e65953..a1b31dad3 100644 --- a/template/en/default/attachment/list.html.tmpl +++ b/template/en/default/attachment/list.html.tmpl @@ -85,9 +85,15 @@ <td colspan="[% show_attachment_flags ? 4 : 3 %]"> <a href="attachment.cgi?bugid=[% bugid %]&action=enter">Create a New Attachment</a> (proposed patch, testcase, etc.) </td> - <td colspan="1"> - <a href="attachment.cgi?bugid=[% bugid %]&action=viewall">View All</a> - </td> + [% IF attachments.size %] + <td> + <a href="attachment.cgi?bugid=[% bugid %]&action=viewall">View All</a> + </td> + [% ELSE %] + <td class="bz_disabled"> + View All + </td> + [% END %] </tr> </table> <br> |