]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Patch for bug 315590: add anchors to flag section; patch by timeless <timeless@bemail...
authoruid623 <>
Tue, 6 Jun 2006 22:36:18 +0000 (22:36 +0000)
committeruid623 <>
Tue, 6 Jun 2006 22:36:18 +0000 (22:36 +0000)
template/en/default/attachment/list.html.tmpl

index 0b42c0c3cd59d6a3704d141da456e10aaa45b55e..b395302449ea275f3b40c19f522212d61b2d3907 100644 (file)
@@ -22,7 +22,7 @@
 <br>
 <table cellspacing="0" cellpadding="4" border="1">
   <tr>
-    <th bgcolor="#cccccc" align="left">Attachment</th>
+    <th bgcolor="#cccccc" align="left"><a name="a0" id="a0">Attachment</a></th>
     <th bgcolor="#cccccc" align="left">Type</th>
     <th bgcolor="#cccccc" align="left">Creator</th>
     <th bgcolor="#cccccc" align="left">Created</th>
     <th bgcolor="#cccccc" align="left">Actions</th>
   </tr>
   [% canseeprivate = !Param("insidergroup") || UserInGroup(Param("insidergroup")) %]
+  [% count = 0 %]
   [% FOREACH attachment = attachments %]
     [% IF !attachment.isprivate || canseeprivate %]
+      [% count = count + 1 %]
       <tr [% "class=\"bz_private\"" IF attachment.isprivate %]>
         <td valign="top">
-          <a href="attachment.cgi?id=[% attachment.id %]">[% attachment.description FILTER html FILTER obsolete(attachment.isobsolete) %]</a>
+          <a name="a[% count %]" href="attachment.cgi?id=[% attachment.id %]">[% attachment.description FILTER html FILTER obsolete(attachment.isobsolete) %]</a>
         </td>
 
         <td valign="top">