Mercurial > piecrust2
comparison piecrust/admin/templates/dashboard.html @ 778:5e91bc0e3b4d
internal: Move admin panel code into the piecrust package.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 16 Jul 2016 15:02:24 +0200 |
parents | foodtruck/templates/dashboard.html@a7726e4862c4 |
children | 0e88640a994d |
comparison
equal
deleted
inserted
replaced
777:8d633ca59bc5 | 778:5e91bc0e3b4d |
---|---|
1 {% extends 'layouts/default.html' %} | |
2 | |
3 {% block content %} | |
4 <div class="row"> | |
5 <div class="col-md-4 col-md-offset-8"> | |
6 {% if needs_switch %} | |
7 <form action="{{url_switch}}" method="POST"> | |
8 {% for site in sites %} | |
9 {% if site.name != site_name %} | |
10 <button type="submit" name="site_name" value="{{site.name}}" class="btn"> | |
11 <span class="icon ion-shuffle"></span> | |
12 Switch to {{site.display_name}}</button> | |
13 {% 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> | |
41 {% endfor %} | |
42 </ul> | |
43 {% endif %} | |
44 {% if edited_pages %} | |
45 <p>Edited pages:</p> | |
46 <ul> | |
47 {% for p in edited_pages %} | |
48 <li><a href="{{p.url}}">{{p.title}}</a><br/> | |
49 {%if p.text%}<pre>{{p.text}}</pre>{%endif%}</li> | |
50 {% endfor %} | |
51 </ul> | |
52 {% endif %} | |
53 {% if not new_pages and not edited_pages %} | |
54 <p>No work in progress.</p> | |
55 {% endif %} | |
56 {% if misc_files %} | |
57 <div class="ft-dash-misc"> | |
58 <p>Miscellaneous new/edited files:</p> | |
59 <ul> | |
60 {% for p in misc_files %} | |
61 <li>{{p}}</li> | |
62 {% endfor %} | |
63 </ul> | |
64 </div> | |
65 {% endif %} | |
66 | |
67 </div> | |
68 </div> | |
69 {% endblock %} | |
70 |