# HG changeset patch # User Ludovic Chabant # Date 1442728870 25200 # Node ID 8123065b3edaaf42c94f6c7d6a4ec339a8d50d4c # Parent 71181f1f824ddfcc27ffcb603f72970b671b259b Make the special dashboard page more consistent with the other special pages. diff -r 71181f1f824d -r 8123065b3eda wikked/views/special.py --- 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)