comparison foodtruck/views/menu.py @ 602:c6bc0ef03f82

admin: Better UI for publishing websites. * Support multiple publish targets. * Dedicated UI for publishing. * Some UI polish.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 27 Jan 2016 18:02:25 -0800
parents 8f9cf1bcbe76
children efc1dc916e7c
comparison
equal deleted inserted replaced
601:effbc78b5528 602:c6bc0ef03f82
12 site = g.sites.get().piecrust_app 12 site = g.sites.get().piecrust_app
13 for s in site.sources: 13 for s in site.sources:
14 if s.is_theme_source: 14 if s.is_theme_source:
15 continue 15 continue
16 16
17 source_icon = s.config.get('foodtruck_icon/document') 17 source_icon = s.config.get('admin_icon', 'document')
18 if s.name == 'pages': 18 if s.name == 'pages':
19 source_icon = 'document-text' 19 source_icon = 'document-text'
20 elif 'blog' in s.name: 20 elif 'blog' in s.name:
21 source_icon = 'filing' 21 source_icon = 'filing'
22 22
31 {'url': url_listall, 'title': "List All"}, 31 {'url': url_listall, 'title': "List All"},
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
37 entries.append({
38 'url': url_for('publish'),
39 'title': "Publish",
40 'icon': 'upload'})
36 41
37 # entries.append({ 42 # entries.append({
38 # 'url': url_for('settings'), 43 # 'url': url_for('settings'),
39 # 'title': "Settings", 44 # 'title': "Settings",
40 # 'icon': 'gear-b'}) 45 # 'icon': 'gear-b'})