Mercurial > piecrust2
comparison foodtruck/templates/dashboard.html @ 620:c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 06 Feb 2016 21:49:50 -0800 |
parents | c6bc0ef03f82 |
children | a7726e4862c4 |
comparison
equal
deleted
inserted
replaced
619:200c7063affa | 620:c2708f20a87b |
---|---|
1 {% extends 'layouts/default.html' %} | 1 {% extends 'layouts/default.html' %} |
2 | 2 |
3 {% block content %} | 3 {% block content %} |
4 <div class="container"> | 4 <div class="row"> |
5 <div class="row"> | 5 <div class="col-md-4 col-md-offset-8"> |
6 <div class="col-md-4 col-md-offset-8"> | 6 {% if needs_switch %} |
7 {% if needs_switch %} | 7 <form action="{{url_switch}}" method="POST"> |
8 <form action="{{url_switch}}" method="POST"> | 8 {% for site in sites %} |
9 {% for site in sites %} | 9 {% if site.name != site_name %} |
10 {% if site.name != site_name %} | 10 <button type="submit" name="site_name" value="{{site.name}}" class="btn"> |
11 <button type="submit" name="site_name" value="{{site.name}}" class="btn"> | 11 <span class="icon ion-shuffle"></span> |
12 <span class="icon ion-shuffle"></span> | 12 Switch to {{site.display_name}}</button> |
13 Switch to {{site.display_name}}</button> | 13 {% endif %} |
14 {% endif %} | 14 {% endfor %} |
15 </form> | |
16 {% endif %} | |
17 </div> | |
18 </div> | |
19 <div class="row"> | |
20 <div class="col-md-12"> | |
21 <h1>{{site_title}} <a href="{{url_preview}}"><span class="icon ion-arrow-right-c"></span></a></h1> | |
22 </div> | |
23 </div> | |
24 <div class="row"> | |
25 <div class="col-md-6"> | |
26 <h2><span class="icon ion-stats-bars"></span> Site Summary</h2> | |
27 {% for s in sources %} | |
28 <div class="ft-summary-source"> | |
29 <a href="{{s.list_url}}">{{s.page_count}} {{s.name}}</a> | |
30 </div> | |
31 {% endfor %} | |
32 </div> | |
33 <div class="col-md-6"> | |
34 <h2><span class="icon ion-erlenmeyer-flask"></span> Work in Progress</h2> | |
35 {% if new_pages %} | |
36 <p>New pages</p> | |
37 <ul> | |
38 {% for p in new_pages %} | |
39 <li><a href="{{p.url}}">{{p.title}}</a><br/> | |
40 {%if p.text%}<pre>{{p.text}}</pre>{%endif%}</li> | |
15 {% endfor %} | 41 {% endfor %} |
16 </form> | 42 </ul> |
17 {% endif %} | 43 {% endif %} |
18 </div> | 44 {% if edited_pages %} |
19 </div> | 45 <p>Edited pages</p> |
20 <div class="row"> | 46 <ul> |
21 <div class="col-md-12"> | 47 {% for p in edited_pages %} |
22 <h1>{{site_title}} <a href="{{url_preview}}"><span class="icon ion-arrow-right-c"></span></a></h1> | 48 <li><a href="{{p.url}}">{{p.title}}</a><br/> |
23 </div> | 49 {%if p.text%}<pre>{{p.text}}</pre>{%endif%}</li> |
24 </div> | |
25 <div class="row"> | |
26 <div class="col-md-6"> | |
27 <h2><span class="icon ion-stats-bars"></span> Site Summary</h2> | |
28 {% for s in sources %} | |
29 <div class="ft-summary-source"> | |
30 <a href="{{s.list_url}}">{{s.page_count}} {{s.name}}</a> | |
31 </div> | |
32 {% endfor %} | 50 {% endfor %} |
33 </div> | 51 </ul> |
34 <div class="col-md-6"> | 52 {% endif %} |
35 <h2><span class="icon ion-erlenmeyer-flask"></span> Work in Progress</h2> | 53 {% if not new_pages and not edited_pages %} |
36 {% if new_pages %} | 54 <p>No work in progress.</p> |
37 <p>New pages</p> | 55 {% endif %} |
38 <ul> | |
39 {% for p in new_pages %} | |
40 <li><a href="{{p.url}}">{{p.title}}</a><br/> | |
41 {%if p.text%}<pre>{{p.text}}</pre>{%endif%}</li> | |
42 {% endfor %} | |
43 </ul> | |
44 {% endif %} | |
45 {% if edited_pages %} | |
46 <p>Edited pages</p> | |
47 <ul> | |
48 {% for p in edited_pages %} | |
49 <li><a href="{{p.url}}">{{p.title}}</a><br/> | |
50 {%if p.text%}<pre>{{p.text}}</pre>{%endif%}</li> | |
51 {% endfor %} | |
52 </ul> | |
53 {% endif %} | |
54 {% if not new_pages and not edited_pages %} | |
55 <p>No work in progress.</p> | |
56 {% endif %} | |
57 | 56 |
58 </div> | |
59 </div> | 57 </div> |
60 </div> | 58 </div> |
61 {% endblock %} | 59 {% endblock %} |
62 | 60 |