1 <!-- the ID links are fetched via AJAX to the ajax container "ajax-notifications" --> |
1 <tal:var define="global notification ''"> |
2 <div class="btn-group btn-group-justified" data-toggle="buttons"> |
2 <!-- the ID links are fetched via AJAX to the ajax container "ajax-notifications" --> |
3 <tal:loop repeat="viewlet view.viewlets"> |
3 <div class="btn-group btn-group-justified" data-toggle="buttons"> |
4 <label class="btn btn-default"> |
4 <tal:loop repeat="viewlet view.viewlets"> |
5 <input type="radio" name="activity" |
5 <tal:if condition="repeat['viewlet'].start()"> |
6 tal:attributes="data-ams-url viewlet.url; |
6 <tal:var define="global notification viewlet.render()" /> |
7 data-ams-click-handler viewlet.click_handler;" |
7 </tal:if> |
8 tal:content="viewlet.label">Label |
8 <label class="btn btn-default" |
9 </label> |
9 tal:attributes="class 'btn btn-default {0}'.format('active' if repeat['viewlet'].start() else '')"> |
10 </tal:loop> |
10 <input type="radio" name="activity" |
11 </div> |
11 tal:attributes="value viewlet.name; |
12 <!-- notification content --> |
12 checked '' if repeat['viewlet'].start() else None; |
13 <div class="ajax-notifications custom-scroll"> |
13 data-ams-url viewlet.url; |
14 <div class="alert alert-transparent"> |
14 data-ams-click-handler viewlet.click_handler;" |
15 <h4 tal:content="view.header"></h4> |
15 tal:content="viewlet.label" /> |
16 <tal:var replace="structure view.message" /> |
16 </label> |
|
17 </tal:loop> |
17 </div> |
18 </div> |
18 <i class="fa fa-lock fa-4x fa-border"></i> |
|
19 </div> |
|
20 <!-- end notification content --> |
|
21 |
19 |
22 <!-- footer: refresh area --> |
20 <!-- notification content --> |
23 <span> |
21 <div class="ajax-notifications custom-scroll"> |
24 <span id="activity-update" |
22 <tal:if condition="notification" |
25 tal:content="view.get_last_update()"></span> |
23 replace="structure notification" /> |
26 <button type="button" |
24 <tal:if condition="not notification"> |
27 class="btn btn-xs btn-default pull-right" |
25 <div class="alert alert-transparent"> |
28 tal:attributes="data-loading-text view.loading_text"> |
26 <h4 tal:content="view.header"></h4> |
29 <i class="fa fa-refresh"></i> |
27 <tal:if replace="structure view.message" /> |
30 </button> |
28 </div> |
31 </span> |
29 <i class="fa fa-lock fa-4x fa-border"></i> |
32 <!-- end footer --> |
30 </tal:if> |
|
31 </div> |
|
32 <!-- end notification content --> |
|
33 |
|
34 <!-- footer: refresh area --> |
|
35 <span> |
|
36 <span id="activity-update" |
|
37 tal:attributes="data-ams-base-label view.update_time" |
|
38 tal:content="view.get_last_update()"></span> |
|
39 <button type="button" |
|
40 class="btn btn-xs btn-default pull-right" |
|
41 data-ams-stop-propagation="true" |
|
42 tal:attributes="data-loading-text view.loading_text; |
|
43 data-ams-click-handler view.refresh_handler;"> |
|
44 <i class="fa fa-refresh"></i> |
|
45 </button> |
|
46 </span> |
|
47 <!-- end footer --> |
|
48 </tal:var> |