Mercurial > piecrust2
annotate piecrust/admin/templates/dashboard.html @ 1069:dff873f11541
admin: Upgrade Bootstrap, switch icons to Open-Iconic, remove Bower.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 13 Feb 2018 23:22:27 -0800 |
parents | 8101692fdc11 |
children |
rev | line source |
---|---|
587
d4a01a023998
admin: Add "FoodTruck" admin panel from the side experiment project.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
1 {% extends 'layouts/default.html' %} |
d4a01a023998
admin: Add "FoodTruck" admin panel from the side experiment project.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
2 |
d4a01a023998
admin: Add "FoodTruck" admin panel from the side experiment project.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
3 {% block content %} |
620
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
4 <div class="row"> |
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
5 <div class="col-md-12"> |
1069
dff873f11541
admin: Upgrade Bootstrap, switch icons to Open-Iconic, remove Bower.
Ludovic Chabant <ludovic@chabant.com>
parents:
960
diff
changeset
|
6 <h1>{{site_title}} <a href="{{url_preview}}"><span class="oi oi-arrow-right"></span></a></h1> |
594
8f9cf1bcbe76
admin: Dashboard UI cleaning, re-use utility function for page summaries.
Ludovic Chabant <ludovic@chabant.com>
parents:
587
diff
changeset
|
7 </div> |
620
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
8 </div> |
960
8101692fdc11
admin: Add a "rebake preview assets" button to the dashboard.
Ludovic Chabant <ludovic@chabant.com>
parents:
931
diff
changeset
|
9 {% with messages = get_flashed_messages() %} |
8101692fdc11
admin: Add a "rebake preview assets" button to the dashboard.
Ludovic Chabant <ludovic@chabant.com>
parents:
931
diff
changeset
|
10 {% if messages %} |
8101692fdc11
admin: Add a "rebake preview assets" button to the dashboard.
Ludovic Chabant <ludovic@chabant.com>
parents:
931
diff
changeset
|
11 <div class="row"> |
8101692fdc11
admin: Add a "rebake preview assets" button to the dashboard.
Ludovic Chabant <ludovic@chabant.com>
parents:
931
diff
changeset
|
12 {% for message in messages %} |
8101692fdc11
admin: Add a "rebake preview assets" button to the dashboard.
Ludovic Chabant <ludovic@chabant.com>
parents:
931
diff
changeset
|
13 <p class="bg-info">{{message}}</p> |
8101692fdc11
admin: Add a "rebake preview assets" button to the dashboard.
Ludovic Chabant <ludovic@chabant.com>
parents:
931
diff
changeset
|
14 {% endfor %} |
8101692fdc11
admin: Add a "rebake preview assets" button to the dashboard.
Ludovic Chabant <ludovic@chabant.com>
parents:
931
diff
changeset
|
15 </div> |
8101692fdc11
admin: Add a "rebake preview assets" button to the dashboard.
Ludovic Chabant <ludovic@chabant.com>
parents:
931
diff
changeset
|
16 {% endif %} |
8101692fdc11
admin: Add a "rebake preview assets" button to the dashboard.
Ludovic Chabant <ludovic@chabant.com>
parents:
931
diff
changeset
|
17 {% endwith %} |
620
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
18 <div class="row"> |
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
19 <div class="col-md-6"> |
1069
dff873f11541
admin: Upgrade Bootstrap, switch icons to Open-Iconic, remove Bower.
Ludovic Chabant <ludovic@chabant.com>
parents:
960
diff
changeset
|
20 <h2><span class="oi oi-bar-chart"></span> Site Summary</h2> |
620
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
21 {% for s in sources %} |
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
22 <div class="ft-summary-source"> |
1069
dff873f11541
admin: Upgrade Bootstrap, switch icons to Open-Iconic, remove Bower.
Ludovic Chabant <ludovic@chabant.com>
parents:
960
diff
changeset
|
23 <p><a href="{{s.list_url}}">{{s.page_count}} {{s.name}}</a></p> |
587
d4a01a023998
admin: Add "FoodTruck" admin panel from the side experiment project.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
24 </div> |
620
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
25 {% endfor %} |
960
8101692fdc11
admin: Add a "rebake preview assets" button to the dashboard.
Ludovic Chabant <ludovic@chabant.com>
parents:
931
diff
changeset
|
26 |
1069
dff873f11541
admin: Upgrade Bootstrap, switch icons to Open-Iconic, remove Bower.
Ludovic Chabant <ludovic@chabant.com>
parents:
960
diff
changeset
|
27 <h2><span class="oi oi-wrench"></span> Site Management</h2> |
960
8101692fdc11
admin: Add a "rebake preview assets" button to the dashboard.
Ludovic Chabant <ludovic@chabant.com>
parents:
931
diff
changeset
|
28 <form action="{{url_bake_assets}}" method="POST"> |
1069
dff873f11541
admin: Upgrade Bootstrap, switch icons to Open-Iconic, remove Bower.
Ludovic Chabant <ludovic@chabant.com>
parents:
960
diff
changeset
|
29 <button type="submit" class="btn"><span class="oi oi-loop"></span> Rebake Preview Assets</button> |
960
8101692fdc11
admin: Add a "rebake preview assets" button to the dashboard.
Ludovic Chabant <ludovic@chabant.com>
parents:
931
diff
changeset
|
30 </form> |
620
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
31 </div> |
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
32 <div class="col-md-6"> |
1069
dff873f11541
admin: Upgrade Bootstrap, switch icons to Open-Iconic, remove Bower.
Ludovic Chabant <ludovic@chabant.com>
parents:
960
diff
changeset
|
33 <h2><span class="oi oi-beaker"></span> Work in Progress</h2> |
620
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
34 {% if new_pages %} |
770
a7726e4862c4
admin: Fix API changes, don't crash the dashboard on non-binary WIP files.
Ludovic Chabant <ludovic@chabant.com>
parents:
620
diff
changeset
|
35 <p>New pages:</p> |
620
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
36 <ul> |
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
37 {% for p in new_pages %} |
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
38 <li><a href="{{p.url}}">{{p.title}}</a><br/> |
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
39 {%if p.text%}<pre>{{p.text}}</pre>{%endif%}</li> |
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
40 {% endfor %} |
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
41 </ul> |
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
42 {% endif %} |
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
43 {% if edited_pages %} |
770
a7726e4862c4
admin: Fix API changes, don't crash the dashboard on non-binary WIP files.
Ludovic Chabant <ludovic@chabant.com>
parents:
620
diff
changeset
|
44 <p>Edited pages:</p> |
620
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
45 <ul> |
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
46 {% for p in edited_pages %} |
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
47 <li><a href="{{p.url}}">{{p.title}}</a><br/> |
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
48 {%if p.text%}<pre>{{p.text}}</pre>{%endif%}</li> |
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
49 {% endfor %} |
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
50 </ul> |
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
51 {% endif %} |
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
52 {% if not new_pages and not edited_pages %} |
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
53 <p>No work in progress.</p> |
c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
Ludovic Chabant <ludovic@chabant.com>
parents:
602
diff
changeset
|
54 {% endif %} |
770
a7726e4862c4
admin: Fix API changes, don't crash the dashboard on non-binary WIP files.
Ludovic Chabant <ludovic@chabant.com>
parents:
620
diff
changeset
|
55 {% if misc_files %} |
a7726e4862c4
admin: Fix API changes, don't crash the dashboard on non-binary WIP files.
Ludovic Chabant <ludovic@chabant.com>
parents:
620
diff
changeset
|
56 <div class="ft-dash-misc"> |
a7726e4862c4
admin: Fix API changes, don't crash the dashboard on non-binary WIP files.
Ludovic Chabant <ludovic@chabant.com>
parents:
620
diff
changeset
|
57 <p>Miscellaneous new/edited files:</p> |
a7726e4862c4
admin: Fix API changes, don't crash the dashboard on non-binary WIP files.
Ludovic Chabant <ludovic@chabant.com>
parents:
620
diff
changeset
|
58 <ul> |
a7726e4862c4
admin: Fix API changes, don't crash the dashboard on non-binary WIP files.
Ludovic Chabant <ludovic@chabant.com>
parents:
620
diff
changeset
|
59 {% for p in misc_files %} |
a7726e4862c4
admin: Fix API changes, don't crash the dashboard on non-binary WIP files.
Ludovic Chabant <ludovic@chabant.com>
parents:
620
diff
changeset
|
60 <li>{{p}}</li> |
a7726e4862c4
admin: Fix API changes, don't crash the dashboard on non-binary WIP files.
Ludovic Chabant <ludovic@chabant.com>
parents:
620
diff
changeset
|
61 {% endfor %} |
a7726e4862c4
admin: Fix API changes, don't crash the dashboard on non-binary WIP files.
Ludovic Chabant <ludovic@chabant.com>
parents:
620
diff
changeset
|
62 </ul> |
a7726e4862c4
admin: Fix API changes, don't crash the dashboard on non-binary WIP files.
Ludovic Chabant <ludovic@chabant.com>
parents:
620
diff
changeset
|
63 </div> |
a7726e4862c4
admin: Fix API changes, don't crash the dashboard on non-binary WIP files.
Ludovic Chabant <ludovic@chabant.com>
parents:
620
diff
changeset
|
64 {% endif %} |
587
d4a01a023998
admin: Add "FoodTruck" admin panel from the side experiment project.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
65 |
d4a01a023998
admin: Add "FoodTruck" admin panel from the side experiment project.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
66 </div> |
d4a01a023998
admin: Add "FoodTruck" admin panel from the side experiment project.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
67 </div> |
d4a01a023998
admin: Add "FoodTruck" admin panel from the side experiment project.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
68 {% endblock %} |
d4a01a023998
admin: Add "FoodTruck" admin panel from the side experiment project.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
69 |