Mercurial > wikked
changeset 352:8123065b3eda
Make the special dashboard page more consistent with the other special pages.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 19 Sep 2015 23:01:10 -0700 |
parents | 71181f1f824d |
children | ae6760f34eb1 |
files | wikked/views/special.py |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/wikked/views/special.py Sat Sep 19 23:00:55 2015 -0700 +++ b/wikked/views/special.py Sat Sep 19 23:01:10 2015 -0700 @@ -1,6 +1,6 @@ from flask import render_template from flask.ext.login import current_user -from wikked.views import add_auth_data +from wikked.views import add_auth_data, add_navigation_data from wikked.web import app, get_wiki from wikked.webimpl.special import ( get_orphans, get_broken_redirects, get_double_redirects, @@ -71,7 +71,9 @@ @app.route('/special') def special_pages_dashboard(): - data = {'sections': []} + data = { + 'is_special_page': True, + 'sections': []} for info in special_sections: sec = {'title': info['title'], 'pages': []} for k, p in special_pages.items(): @@ -81,6 +83,7 @@ data['sections'].append(sec) add_auth_data(data) + add_navigation_data(None, data) return render_template('special-pages.html', **data)