diff options
author | lpsolit%gmail.com <> | 2006-12-31 09:45:07 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-12-31 09:45:07 +0100 |
commit | 21ccfc92309524062daad9ca7ac69d9dfa0e25b2 (patch) | |
tree | f91f526f48daf9c32857136fd6ebd46cafefd783 | |
parent | 373f33fabc6d495d197fcf0a997b716d61f1e16d (diff) | |
download | bugzilla-21ccfc92309524062daad9ca7ac69d9dfa0e25b2.tar.gz bugzilla-21ccfc92309524062daad9ca7ac69d9dfa0e25b2.tar.xz |
Bug 248037: Link from attachment 'created' date to comment where it was created - Patch by Frédéric Buclin <LpSolit@gmail.com> r=timeless a=justdave
-rw-r--r-- | Bugzilla/Template.pm | 2 | ||||
-rw-r--r-- | template/en/default/attachment/list.html.tmpl | 4 |
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}&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 %] |