Commit 21ccfc92 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 248037: Link from attachment 'created' date to comment where it was created…

Bug 248037: Link from attachment 'created' date to comment where it was created - Patch by Fré©ric Buclin <LpSolit@gmail.com> r=timeless a=justdave
parent 373f33fa
......@@ -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>|;
}
......
......@@ -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 %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment