[Mpuls-commits] r5927 - base/trunk/mpulsweb/templates/documents

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Tue Apr 17 11:01:52 CEST 2012


Author: bricks
Date: 2012-04-17 11:01:52 +0200 (Tue, 17 Apr 2012)
New Revision: 5927

Modified:
   base/trunk/mpulsweb/templates/documents/case_overview.mako
Log:
Fix indentation and set better css classes for document table


Modified: base/trunk/mpulsweb/templates/documents/case_overview.mako
===================================================================
--- base/trunk/mpulsweb/templates/documents/case_overview.mako	2012-04-16 13:32:01 UTC (rev 5926)
+++ base/trunk/mpulsweb/templates/documents/case_overview.mako	2012-04-17 09:01:52 UTC (rev 5927)
@@ -21,9 +21,9 @@
   % if h.hasRole(['cm']) and session.get('case').getState().getState() == 1:
     <div id="modusfield">
       <div class="actions">
-	<ul>
-	  <li><a href="${h.url(controller='casedocument', action='new')}">${_('Add attachment')}</a></li>
-	</ul>
+    <ul>
+      <li><a href="${h.url(controller='casedocument', action='new')}">${_('Add attachment')}</a></li>
+    </ul>
       </div>
     </div>
   % endif
@@ -38,7 +38,7 @@
     <th class="table_header_h table_date">
       ${_('Inserted at')}
     </th>
-    <th class="number_field table_header_h table_date">
+    <th class="table_header_h table_filesize">
       ${_('Filesize')}
     </th>
     <th class="table_header_h actions">
@@ -60,8 +60,8 @@
             <div class="description">${f.description}</div>
           % endif
       </td>
-      <td class="number field">
-    	${h.NA(h.format_date(f.insert_date))}
+      <td class="date_field">
+        ${h.NA(h.format_date(f.insert_date))}
       </td>
       <td class="number_field">
           ${kb(f.size)} KB
@@ -72,14 +72,13 @@
              ><img src="${h.url('/images/icons/open_active_22.png')}" border="0" alt="${_('Show')}" 
                    title="${_('Show')}" title="${_('Show')}">
           </a>
-	  % if h.hasRole(['cm']):
-	  <a href="${h.url(controller='casedocument', action='rename', id=f.id)}"
-             ><img src="${h.url('/images/icons/edit_22.png')}" border="0" 
+      % if h.hasRole(['cm']):
+          <a href="${h.url(controller='casedocument', action='rename', id=f.id)}">
+              <img src="${h.url('/images/icons/edit_22.png')}" border="0" 
                    alt="${_('Rename')}" title="${_('Rename')}">
           </a>
 
-	  
-	  % endif
+      % endif
           % if h.hasRole(['cm']) and session.get('case').getState().getState() == 1:
             <a href="${h.url(controller='casedocument', action='delete', id=f.id, confirmed=0)}">
               <img src="${h.url('/images/icons/delete_active_22.png')}" border="0" 



More information about the Mpuls-commits mailing list