[Mpuls-commits] r1478 - wasko/branches/2.0/mpulsweb/templates/home

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Feb 10 17:49:40 CET 2010


Author: torsten
Date: 2010-02-10 17:49:40 +0100 (Wed, 10 Feb 2010)
New Revision: 1478

Added:
   wasko/branches/2.0/mpulsweb/templates/home/globalappointmentlist.mako
Log:
* mpulsweb/templates/home/globalappointmentlist.mako: Copied from
  waskaweb. Use format_date function instead of dd_mm_YYYY


Copied: wasko/branches/2.0/mpulsweb/templates/home/globalappointmentlist.mako (from rev 1470, wasko/branches/2.0/waskaweb/templates/start/globalappointmentlist.mako)
===================================================================
--- wasko/branches/2.0/waskaweb/templates/start/globalappointmentlist.mako	2010-02-10 15:49:41 UTC (rev 1470)
+++ wasko/branches/2.0/mpulsweb/templates/home/globalappointmentlist.mako	2010-02-10 16:49:40 UTC (rev 1478)
@@ -0,0 +1,31 @@
+<%!  import mpulsweb.lib.helper.filters as F %>
+<%def name="showAppointmentActions(appointment)">
+  <a href="${h.url_for(controller='/appointment', action='show', id=appointment.id)}">
+    <img src="/images/icons/view_red.gif" border="0" alt="${_('cm_overview_a_show')}" title="${_('cm_overview_a_show')}"></a>
+</%def>
+
+<table class="appointment">
+  <tr>
+    <th class="date table_header_h">${_('app_overview_tbl_header_date')}</th>
+    <th class="title table_header_h">${_('app_overview_tbl_header_desc')}</th>
+    <th class="action table_header_h">${_('app_overview_tbl_header_actions')}</th>
+  </tr>
+  % for appointment in c.globalappointmentlist.getDatasets():
+  <tr>
+    <td class="date">${h.format_date(appointment.getStartDate())}</td>
+    <td class="title">${appointment.title | F.NA, h}</td>
+    <td class="action">
+     ${self.showAppointmentActions(appointment)}
+    </td>
+  </tr>
+  <tr>
+    <% description = F.shorten(F.H(appointment.description),120) %>
+    <td colspan="3" class="description">${description | F.NA}</td>
+  </tr>
+  % endfor
+  % if len(c.globalappointmentlist.getDatasets()) <= 0:
+  <tr>
+    <td colspan="3">Keine Termine gefunden</td>
+  </tr>
+  % endif
+</table>


Property changes on: wasko/branches/2.0/mpulsweb/templates/home/globalappointmentlist.mako
___________________________________________________________________
Name: svn:mergeinfo
   + 



More information about the Mpuls-commits mailing list