]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 248037: Link from attachment 'created' date to comment where it was created ...
authorlpsolit%gmail.com <>
Sun, 31 Dec 2006 08:45:07 +0000 (08:45 +0000)
committerlpsolit%gmail.com <>
Sun, 31 Dec 2006 08:45:07 +0000 (08:45 +0000)
Bugzilla/Template.pm
template/en/default/attachment/list.html.tmpl

index 608d35fcb96271b90df90631613a37dfc67166ad..b4e0dcb903dc1c162a2139cc38cc805f37ae5365 100644 (file)
@@ -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>|;
     }
index 5da894e0724bbaf42b42bd71be8cf311369a256f..154cb98b183438c5e276b0fe41ce86d2a6f8ab52 100644 (file)
@@ -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 %]