Mercurial > piecrust2
comparison foodtruck/views/menu.py @ 594:8f9cf1bcbe76
admin: Dashboard UI cleaning, re-use utility function for page summaries.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 19 Jan 2016 21:34:26 -0800 |
parents | d4a01a023998 |
children | c6bc0ef03f82 |
comparison
equal
deleted
inserted
replaced
593:2713b54b5d76 | 594:8f9cf1bcbe76 |
---|---|
32 {'url': url_write, 'title': "Write New"} | 32 {'url': url_write, 'title': "Write New"} |
33 ] | 33 ] |
34 } | 34 } |
35 entries.append(ctx) | 35 entries.append(ctx) |
36 | 36 |
37 entries.append({ | 37 # entries.append({ |
38 'url': url_for('settings'), | 38 # 'url': url_for('settings'), |
39 'title': "Settings", | 39 # 'title': "Settings", |
40 'icon': 'gear-b'}) | 40 # 'icon': 'gear-b'}) |
41 | 41 |
42 for e in entries: | 42 for e in entries: |
43 needs_more_break = False | 43 needs_more_break = False |
44 if 'entries' in e: | 44 if 'entries' in e: |
45 for e2 in e['entries']: | 45 for e2 in e['entries']: |