changeset 1985:95623e250b01

more useful file listing
author Richard Jones <richard@users.sourceforge.net>
date Tue, 20 Jan 2004 03:57:26 +0000
parents 18e77fe2a669
children 910b39f8c5b8
files templates/classic/html/issue.item.html
diffstat 1 files changed, 26 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/templates/classic/html/issue.item.html	Tue Jan 20 00:11:51 2004 +0000
+++ b/templates/classic/html/issue.item.html	Tue Jan 20 03:57:26 2004 +0000
@@ -98,17 +98,40 @@
   changed <b>${context/activity}</b>.">activity info
 </p>
 
+<table class="files" tal:condition="context/files">
+ <tr><th colspan="4" class="header">Files</th></tr>
+ <tr><th>File name</th><th>Uploaded</th><th>Type</th><th>Edit</th></tr>
+ <tr tal:repeat="file context/files">
+  <td>
+   <a tal:attributes="href string:file${file/id}/${file/name}"
+      tal:content="file/name">dld link</a>
+  </td>
+  <td>
+   <span tal:content="file/creator">creator's name</span>,
+   <span tal:content="file/creation">creation date</span>
+  </td>
+  <td tal:content="file/type" />
+  <td><a tal:condition="file/is_edit_ok"
+          tal:attributes="href string:file${file/id}">edit</a>
+  </td>
+ </tr>
+</table>
+
 <table class="messages" tal:condition="context/messages">
  <tr><th colspan="4" class="header">Messages</th></tr>
  <tal:block tal:repeat="msg context/messages/reverse">
   <tr>
    <th><a tal:attributes="href string:msg${msg/id}"
-          tal:content="string:msg${msg/id}"></a></th>
+          tal:content="string:msg${msg/id} (view)"></a></th>
    <th tal:content="string:Author: ${msg/author}">author</th>
    <th tal:content="string:Date: ${msg/date}">date</th>
    <th>
-    <a tal:condition="context/is_edit_ok"
-       tal:attributes="href string:issue${context/id}?@remove@messages=${msg/id}&@action=edit">remove</a>
+    <form style="padding:0" tal:condition="context/is_edit_ok"
+          tal:attributes="action string:issue${context/id}">
+     <input type="hidden" name="@remove@messages" tal:attributes="value msg/id">
+     <input type="hidden" name="@action" value="edit">
+     <input type="submit" value="remove">
+    </form>
    </th>
   </tr>
   <tr>
@@ -119,21 +142,6 @@
  </tal:block>
 </table>
 
-<table class="files" tal:condition="context/files">
- <tr><th colspan="2" class="header">Files</th></tr>
- <tr><th>File name</th><th>Uploaded</th></tr>
- <tr tal:repeat="file context/files">
-  <td>
-   <a tal:attributes="href string:file${file/id}/${file/name}"
-      tal:content="file/name">dld link</a>
-  </td>
-  <td>
-   <span tal:content="file/creator">creator's name</span>,
-   <span tal:content="file/creation">creation date</span>
-  </td>
- </tr>
-</table>
-
 <tal:block tal:condition="context/id" tal:replace="structure context/history" />
 
 </td>

Roundup Issue Tracker: http://roundup-tracker.org/