/modules/mod_admin/templates/admin.tpl

https://code.google.com/p/zotonic/ · Smarty Template · 55 lines · 39 code · 16 blank · 0 comment · 8 complexity · 6fb880dcf2c20f3976e0e8a24a2b7e3b MD5 · raw file

  1. {% extends "admin_base.tpl" %}
  2. {% block title %}{_ Dashboard _}{% endblock %}
  3. {% block content %}
  4. <div id="content" class="zp-85">
  5. <div class="block clearfix">
  6. <h2>{_ Dashboard _}</h2>
  7. <div class="clearfix">
  8. {% all include "_admin_make_page_buttons.tpl" %}
  9. {% button class=""
  10. text=_"Make a new page"
  11. action={dialog_new_rsc title=""} %}
  12. {% button class=""
  13. text=_"Make a new media item"
  14. action={dialog_media_upload title=""}
  15. disabled=(not m.acl.insert.media and not m.acl.insert.image) %}
  16. </div>
  17. <hr class="clear" />
  18. <div class="zp-50">
  19. {# Latest modified texts #}
  20. {% include "admin_widget_dashboard_latest.tpl" cat="text" headline=_"Latest modified texts" %}
  21. {# Latest modified persons #}
  22. {% include "admin_widget_dashboard_latest.tpl" cat="person" headline=_"Latest modified persons" %}
  23. </div>
  24. <div class="zp-50">
  25. {# Latest modified locations #}
  26. {% if m.rsc['location'].id and m.acl.view['location'] %}
  27. {% include "admin_widget_dashboard_latest.tpl" cat="location" headline=_"Latest modified locations" last=1 %}
  28. {% endif %}
  29. {# Latest modified events #}
  30. {% if m.rsc['event'].id and m.acl.view['event'] %}
  31. {% include "admin_widget_dashboard_latest.tpl" cat="event" headline=_"Latest modified events" last=1 %}
  32. {% endif %}
  33. {# Latest modified media items #}
  34. {% include "admin_widget_dashboard_latest.tpl" cat="media" headline=_"Latest modified media items" media=1 last=1 %}
  35. </div>
  36. </div>
  37. <div class="push"></div>
  38. </div>
  39. {% endblock %}