|
1 <tal:var define="global notification ''"> |
|
2 <!-- the ID links are fetched via AJAX to the ajax container "ajax-notifications" --> |
|
3 <div class="btn-group btn-group-justified" data-toggle="buttons"> |
|
4 <tal:loop repeat="viewlet view.viewlets"> |
|
5 <tal:if condition="repeat['viewlet'].start()"> |
|
6 <tal:var define="global notification viewlet.render()" /> |
|
7 </tal:if> |
|
8 <label class="btn btn-default" |
|
9 tal:attributes="class 'btn btn-default {0}'.format('active' if repeat['viewlet'].start() else '')"> |
|
10 <input type="radio" name="activity" |
|
11 tal:attributes="value viewlet.name; |
|
12 checked '' if repeat['viewlet'].start() else None; |
|
13 data-ams-url viewlet.url; |
|
14 data-ams-click-handler viewlet.click_handler;" |
|
15 tal:content="viewlet.label" /> |
|
16 </label> |
|
17 </tal:loop> |
|
18 </div> |
|
19 |
|
20 <!-- notification content --> |
|
21 <div class="ajax-notifications custom-scroll"> |
|
22 <tal:if condition="notification" |
|
23 replace="structure notification" /> |
|
24 <tal:if condition="not notification"> |
|
25 <div class="alert alert-transparent"> |
|
26 <h4 tal:content="view.header"></h4> |
|
27 <tal:if replace="structure view.message" /> |
|
28 </div> |
|
29 <i class="fa fa-lock fa-4x fa-border"></i> |
|
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> |