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

This commit is contained in:
lpsolit%gmail.com 2006-12-31 00:45:07 +00:00
parent 3637c141d7
commit a3287bb940
2 changed files with 4 additions and 2 deletions

View 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>|;
}

View 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 %]