PageRenderTime 22ms CodeModel.GetById 11ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

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