Mercurial > piecrust2
diff foodtruck/templates/dashboard.html @ 770:a7726e4862c4
admin: Fix API changes, don't crash the dashboard on non-binary WIP files.
Treat new/edited files that have no `auto_format` supported extension as
"miscellaneous" files, which are shown separately on the dashboard.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 02 Jul 2016 01:30:51 -0700 |
parents | c2708f20a87b |
children |
line wrap: on
line diff
--- a/foodtruck/templates/dashboard.html Sat Jul 02 01:28:29 2016 -0700 +++ b/foodtruck/templates/dashboard.html Sat Jul 02 01:30:51 2016 -0700 @@ -33,7 +33,7 @@ <div class="col-md-6"> <h2><span class="icon ion-erlenmeyer-flask"></span> Work in Progress</h2> {% if new_pages %} - <p>New pages</p> + <p>New pages:</p> <ul> {% for p in new_pages %} <li><a href="{{p.url}}">{{p.title}}</a><br/> @@ -42,7 +42,7 @@ </ul> {% endif %} {% if edited_pages %} - <p>Edited pages</p> + <p>Edited pages:</p> <ul> {% for p in edited_pages %} <li><a href="{{p.url}}">{{p.title}}</a><br/> @@ -53,6 +53,16 @@ {% if not new_pages and not edited_pages %} <p>No work in progress.</p> {% endif %} + {% if misc_files %} + <div class="ft-dash-misc"> + <p>Miscellaneous new/edited files:</p> + <ul> + {% for p in misc_files %} + <li>{{p}}</li> + {% endfor %} + </ul> + </div> + {% endif %} </div> </div>