root/branches/release-33/tmpl/cms/dashboard.tmpl @ 1727

Revision 1727, 3.8 kB (checked in by bchoate, 20 months ago)

Changed 'avatars' to 'userpics'. BugId:66998

  • Property svn:keywords set to Id Revision
Line 
1<mt:if name="blog_id">
2    <mt:setvarblock name="html_title"><__trans phrase="Dashboard"></mt:setvarblock>
3    <mt:setvarblock name="page_title"><$mt:var name="blog_name" escape="html"$></mt:setvarblock>
4<mt:else>
5    <mt:setvarblock name="page_title"><__trans phrase="Dashboard"></mt:setvarblock>
6</mt:if>
7<mt:setvarblock name="html_head" append="1">
8    <script type="text/javascript" src="<mt:var name="static_uri">js/tc/client.js"></script>
9</mt:setvarblock>
10
11<mt:setvartemplate name="select_widget_form">
12<mt:var name="widget_options" value="0">
13<mt:setvarblock name="add_widget_form">
14<form method="POST" action="<mt:var name="script_url">" class="listing">
15    <input type="hidden" name="__mode" value="update_widget_prefs" />
16    <input type="hidden" name="magic_token" value="<mt:var name="magic_token">" />
17    <input type="hidden" name="return_args" value="<mt:var name="return_args" escape="html">" />
18    <input type="hidden" name="widget_action" value="add" />
19    <input type="hidden" name="widget_scope" value="<mt:var name="widget_scope">" />
20    <input type="hidden" name="widget_set" value="<mt:var name="set">" />
21    <div class="actions-bar buttons">
22        <div class="actions-bar-inner pkg actions">
23            <select name="widget_id">
24                <option value=""><__trans phrase="Select a Widget..."></option>
25<mt:loop name="all_widget_loop"><mt:if name="widget_set"><mt:if name="widget_set" eq="$set"><mt:var name="widget_options" value="1">
26                <option value="<mt:var name="widget_id">"><mt:var name="widget_label"></option>
27</mt:if><mt:else><mt:var name="widget_options" value="1">
28                <option value="<mt:var name="widget_id">"><mt:var name="widget_label"></option>
29</mt:if></mt:loop>
30            </select>
31            <button
32                type="submit"
33                ><__trans phrase="Add"></button>
34        </div>
35    </div>
36</form>
37</mt:setvarblock>
38<mt:if name="widget_options"><mt:var name="add_widget_form"></mt:if>
39</mt:setvartemplate>
40
41<mt:setvarblock name="related_content">
42<div id="widget-container-sidebar">
43<mt:section id="sidebar" class="widget-container"><mt:var name="sidebar"></mt:section>
44</div>
45<$mt:var name="select_widget_form" set="sidebar"$>
46</mt:setvarblock>
47<mt:setvarblock name="system_msg">
48    <div id="msg-block">
49    <mt:if name="saved">
50        <mtapp:statusmsg
51            id="saved"
52            class="info"
53            can_close="1">
54            <__trans phrase="Your Dashboard has been updated.">
55        </mtapp:statusmsg>
56    </mt:if>
57    <mt:if name="permission">
58        <mtapp:statusmsg
59            id="permissions"
60            class="error">
61            <__trans phrase="You have attempted to use a feature that you do not have permission to access. If you believe you are seeing this message in error contact your system administrator.">
62        </mtapp:statusmsg>
63    </mt:if>
64    <mt:unless name="has_uploads_path">
65        <mt:if name="is_administrator">
66            <mtapp:statusmsg
67                id="permissions"
68                class="error">
69                <__trans phrase="The directory you have configured for uploading userpics is not writable. In order to enable users to upload userpics, please make the following directory writable by your web server: [_1]" params="<mt:var name="support_path">">
70            </mtapp:statusmsg>
71        </mt:if>
72    </mt:unless>
73    <mt:unless name="main">
74    <mtapp:statusmsg
75        id="empty_dashboard"
76        class="info">
77        <__trans phrase="Your dashboard is empty!">
78    </mtapp:statusmsg>
79    </mt:unless>
80    </div>
81</mt:setvarblock>
82<mt:include name="include/header.tmpl">
83
84<div id="widget-container-main">
85<mt:section id="main" class="widget-container"><mt:var name="main"></mt:section>
86</div>
87<$mt:var name="select_widget_form" set="main"$>
88
89<mt:include name="include/footer.tmpl">
Note: See TracBrowser for help on using the browser.