summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--css/edit_bug.css1
-rw-r--r--template/en/default/attachment/list.html.tmpl12
2 files changed, 10 insertions, 3 deletions
diff --git a/css/edit_bug.css b/css/edit_bug.css
index a836f7e4c..64fa4cd71 100644
--- a/css/edit_bug.css
+++ b/css/edit_bug.css
@@ -1,4 +1,5 @@
.bz_private { color: darkred ; background : #f3eeee ; }
+.bz_disabled { color: #a0a0a0 ; }
table#flags th, table#flags td { vertical-align: baseline; text-align: left; }
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 %]&amp;action=enter">Create a New Attachment</a> (proposed patch, testcase, etc.)
</td>
- <td colspan="1">
- <a href="attachment.cgi?bugid=[% bugid %]&amp;action=viewall">View All</a>
- </td>
+ [% IF attachments.size %]
+ <td>
+ <a href="attachment.cgi?bugid=[% bugid %]&amp;action=viewall">View All</a>
+ </td>
+ [% ELSE %]
+ <td class="bz_disabled">
+ View All
+ </td>
+ [% END %]
</tr>
</table>
<br>