Roundup Tracker

Attachment 'issue.item.html.diff'

Download

   1 --- roundup-1.4.9/share/roundup/templates/classic/html/issue.item.html	2009-03-26 02:14:19.000000000 -0400
   2 +++ issue.item.html	2010-04-24 11:36:58.844113642 -0400
   3 @@ -2,9 +2,9 @@
   4  <tal:block metal:use-macro="templates/page/macros/icing">
   5  <title metal:fill-slot="head_title">
   6  <tal:block condition="context/id" i18n:translate=""
   7 - >Issue <tal:x tal:content="context/id" i18n:name="id"
   8 - />: <tal:x content="context/title" i18n:name="title"
   9 - /> - <tal:x content="config/TRACKER_NAME" i18n:name="tracker"
  10 + >Issue <span tal:replace="context/id" i18n:name="id"
  11 + />: <span tal:replace="context/title" i18n:name="title"
  12 + /> - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker"
  13  /></tal:block>
  14  <tal:block condition="not:context/id" i18n:translate=""
  15   >New Issue - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker"
  16 @@ -53,28 +53,16 @@
  17  </tr>
  18  
  19  <tr>
  20 - <th i18n:translate="">Superseder</th>
  21 - <td>
  22 -  <span tal:replace="structure python:context.superseder.field(showid=1, size=20)" />
  23 -  <span tal:condition="context/is_edit_ok" tal:replace="structure python:db.issue.classhelp('id,title', property='superseder')" />
  24 -  <span tal:condition="context/superseder">
  25 -   <br><span i18n:translate="">View:</span>
  26 -     <a tal:repeat="sup context/superseder"
  27 -        tal:content="python:sup['id'] + ', '*(not repeat['sup'].end)"
  28 -        tal:attributes="href string:issue${sup/id}"></a>
  29 -  </span>
  30 - </td>
  31 - <th i18n:translate="">Nosy List</th>
  32 - <td>
  33 -  <span tal:replace="structure context/nosy/field" />
  34 -  <span tal:condition="context/is_edit_ok" tal:replace="structure
  35 -python:db.user.classhelp('username,realname,address', property='nosy', width='600')" /><br>
  36 - </td>
  37 + <th i18n:translate="">Due Date</th>
  38 + <td tal:content="structure python:context.due_date.field(format='%Y-%m-%d')" />
  39 + <th i18n:translate="">Revives</th>
  40 + <td tal:content="structure python:context.revives.field(format='%Y-%m-%d')" />
  41  </tr>
  42  
  43 +
  44  <tr>
  45   <th i18n:translate="">Assigned To</th>
  46 - <td tal:content="structure context/assignedto/menu">assignedto menu</td>
  47 + <td tal:content="structure context/assignedto/menu" />
  48   <th i18n:translate="">Keywords</th>
  49   <td>
  50    <span tal:replace="structure context/keyword/field" />
  51 @@ -82,17 +70,50 @@
  52   </td>
  53  </tr>
  54  
  55 +<tr>
  56 + <th i18n:translate="">Requires</th>
  57 + <td>
  58 +  <span tal:replace="structure python:context.superseder.field(showid=1, size=20)" />
  59 +  <span tal:condition="context/is_edit_ok"
  60 +        tal:replace="structure python:db.issue.classhelp('id,title', property='superseder',
  61 +        filter='status=waiting,in progress,needs attention;keyword='+context.keyword.plain())"/>
  62 +
  63 +   <tal:block tal:condition="context/superseder">
  64 +   <br/>
  65 +   <table>
  66 +     <tr tal:repeat="sup context/superseder">
  67 +       <td><a tal:attributes="href string:issue${sup/id}"
  68 +         tal:content="string:${sup/id} - ${sup/title}"/>
  69 +       </td>
  70 +     </tr>
  71 +   </table>
  72 +   </tal:block>
  73 + </td>
  74 +
  75 + <th>Required for</th>
  76 + <td>
  77 +   <table tal:define="sups python:db.issue.filter(filterspec=dict(superseder=context.id))"
  78 +     tal:condition="sups">
  79 +     <tr tal:repeat="sup sups">
  80 +       <td><a tal:attributes="href string:issue${sup/id}"
  81 +         tal:content="string:${sup/id} - ${sup/title}"/>
  82 +       </td>
  83 +     </tr>
  84 +   </table>
  85 + </td>
  86 +</tr>
  87 +
  88  <tr tal:condition="context/is_edit_ok">
  89 - <th i18n:translate="">Change Note</th>
  90 + <th i18n:translate="" class="multi">Change Note</th>
  91   <td colspan=3>
  92    <textarea tal:content="request/form/@note/value | default"
  93 -            name="@note" wrap="hard" rows="5" cols="80"></textarea>
  94 +            name="@note" wrap="hard" rows="15" cols="90"></textarea>
  95   </td>
  96  </tr>
  97  
  98  <tr tal:condition="context/is_edit_ok">
  99   <th i18n:translate="">File</th>
 100 - <td colspan=3><input type="file" name="@file" size="40"></td>
 101 + <td colspan=3><input type="file" name="@file" size="60"></td>
 102  </tr>
 103  
 104  <tr tal:condition="context/is_edit_ok">
 105 @@ -103,8 +124,6 @@
 106   </td>
 107   <td colspan=3>
 108    <span tal:replace="structure context/submit">submit button</span>
 109 -  <a tal:condition="context/id" tal:attributes="href context/copy_url"
 110 -   i18n:translate="">Make a copy</a>
 111   </td>
 112  </tr>
 113  
 114 @@ -122,12 +141,55 @@
 115  </tal:block>
 116  
 117  <p tal:condition="context/id" i18n:translate="">
 118 - Created on <b tal:content="context/creation" i18n:name="creation" />
 119 - by <b tal:content="context/creator" i18n:name="creator" />,
 120 - last changed <b content="context/activity" i18n:name="activity" />
 121 - by <b tal:content="context/actor" i18n:name="actor" />.
 122 + Created on <b><tal:x replace="context/creation" i18n:name="creation" /></b>
 123 + by <b><tal:x replace="context/creator" i18n:name="creator" /></b>,
 124 + last changed <b><tal:x replace="context/activity" i18n:name="activity" /></b>
 125 + by <b><tal:x replace="context/actor" i18n:name="actor" /></b>.
 126  </p>
 127  
 128 +<table class="messages" tal:condition="context/messages">
 129 + <tr><th colspan="4" class="header" i18n:translate="">Messages</th></tr>
 130 + <!-- Use context/messages/reverse for reverse ordering -->
 131 + <tal:block tal:repeat="msg context/messages">
 132 +  <tr>
 133 +   <th><a tal:attributes="href string:msg${msg/id}"
 134 +    i18n:translate="">msg<tal:x replace="msg/id" i18n:name="id" /> (view)</a></th>
 135 +   <th i18n:translate="">Author: <tal:x replace="msg/author"
 136 +       i18n:name="author" /></th>
 137 +   <th i18n:translate="">Date: <tal:x replace="msg/date"
 138 +       i18n:name="date" /></th>
 139 +   <th>
 140 +     <form style="padding:0" method="POST" tal:condition="context/is_edit_ok"
 141 +           tal:attributes="action string:issue${context/id}">
 142 +       <input type="hidden" name="@remove@messages" tal:attributes="value msg/id">
 143 +     <input type="hidden" name="@action" value="edit">
 144 +     <input type="submit" value="remove" i18n:attributes="value">
 145 +    </form>
 146 +   </th>
 147 +  </tr>
 148 +  <tr>
 149 +   <td colspan="4" class="content">
 150 +     <pre tal:content="structure msg/content/hyperlinked">content</pre>
 151 +
 152 +     <tal:block tal:condition="msg/files">
 153 +       <h5>Attachments</h5>
 154 +       <ul>
 155 +         <tal:block tal:repeat="file msg/files">
 156 +           <li>
 157 +             <a tal:attributes="href file/download_url"
 158 +                tal:content="file/name">dld link</a>
 159 +           </li>
 160 +         </tal:block>
 161 +       </ul>
 162 +     </tal:block>
 163 +   </td>
 164 +  </tr>
 165 + </tal:block>
 166 +</table>
 167 +
 168 +<!-- Uncomment the following to list all files without
 169 +     their messages -->
 170 +<!--
 171  <table class="files" tal:condition="context/files">
 172   <tr><th colspan="5" class="header" i18n:translate="">Files</th></tr>
 173   <tr>
 174 @@ -151,7 +213,7 @@
 175            tal:attributes="href string:file${file/id}">edit</a>
 176    </td>
 177    <td>
 178 -   <form style="padding:0" method="POST" tal:condition="context/is_edit_ok"
 179 +   <form style="padding:0" tal:condition="context/is_edit_ok"
 180           tal:attributes="action string:issue${context/id}">
 181      <input type="hidden" name="@remove@files" tal:attributes="value file/id">
 182      <input type="hidden" name="@action" value="edit">
 183 @@ -160,33 +222,8 @@
 184    </td>
 185   </tr>
 186  </table>
 187 +-->
 188  
 189 -<table class="messages" tal:condition="context/messages">
 190 - <tr><th colspan="4" class="header" i18n:translate="">Messages</th></tr>
 191 - <tal:block tal:repeat="msg context/messages/reverse">
 192 -  <tr>
 193 -   <th><a tal:attributes="href string:msg${msg/id}"
 194 -    i18n:translate="">msg<tal:x replace="msg/id" i18n:name="id" /> (view)</a></th>
 195 -   <th i18n:translate="">Author: <tal:x replace="msg/author"
 196 -       i18n:name="author" /></th>
 197 -   <th i18n:translate="">Date: <tal:x replace="msg/date"
 198 -       i18n:name="date" /></th>
 199 -   <th>
 200 -    <form style="padding:0" method="POST" tal:condition="context/is_edit_ok"
 201 -          tal:attributes="action string:issue${context/id}">
 202 -     <input type="hidden" name="@remove@messages" tal:attributes="value msg/id">
 203 -     <input type="hidden" name="@action" value="edit">
 204 -     <input type="submit" value="remove" i18n:attributes="value">
 205 -    </form>
 206 -   </th>
 207 -  </tr>
 208 -  <tr>
 209 -   <td colspan="4" class="content">
 210 -    <pre tal:content="structure msg/content/hyperlinked">content</pre>
 211 -   </td>
 212 -  </tr>
 213 - </tal:block>
 214 -</table>
 215  
 216  <tal:block tal:condition="context/id" tal:replace="structure context/history" />
 217  
 218 @@ -195,3 +232,4 @@
 219  </td>
 220  
 221  </tal:block>
 222 +<!-- SHA: cef943195fefd743431d22c020eef27edd6255e1 -->
 223 

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2010-04-24 15:39:29, 8.0 KB) [[attachment:issue.item.html.diff]]
  • [get | view] (2010-04-24 15:34:13, 3.8 KB) [[attachment:msgfile.py]]
  • [get | view] (2010-04-24 15:34:23, 115.3 KB) [[attachment:msgfile_after.png]]
  • [get | view] (2010-04-24 15:34:35, 132.7 KB) [[attachment:msgfile_before.png]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.