summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/Template.pm2
-rw-r--r--template/en/default/attachment/list.html.tmpl4
2 files changed, 4 insertions, 2 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index 608d35fcb..b4e0dcb90 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -388,7 +388,7 @@ sub get_attachment_link {
my $linkval = "attachment.cgi?id=$attachid";
# Whitespace matters here because these links are in <pre> tags.
return qq|<span class="$className">|
- . qq|<a href="${linkval}" title="$title">$link_text</a>|
+ . qq|<a href="${linkval}" name="attach_${attachid}" title="$title">$link_text</a>|
. qq| <a href="${linkval}&amp;action=edit" title="$title">[details]</a>|
. qq|</span>|;
}
diff --git a/template/en/default/attachment/list.html.tmpl b/template/en/default/attachment/list.html.tmpl
index 5da894e07..154cb98b1 100644
--- a/template/en/default/attachment/list.html.tmpl
+++ b/template/en/default/attachment/list.html.tmpl
@@ -91,7 +91,9 @@
[% attachment.attacher.name || attachment.attacher.login FILTER html %]
</a>
</td>
- <td valign="top">[% attachment.attached FILTER time %]</td>
+ <td valign="top">
+ <a href="#attach_[% attachment.id %]">[% attachment.attached FILTER time %]</a>
+ </td>
<td valign="top">
[% IF attachment.datasize %]
[% attachment.datasize FILTER unitconvert %]