diff --git a/openspending/auth/forum.py b/openspending/auth/forum.py index f1623c3b..0cd8a227 100644 --- a/openspending/auth/forum.py +++ b/openspending/auth/forum.py @@ -51,7 +51,7 @@ def check_perm(user, perm, forum, post_user_id=None): return True #need to check the permissions - return post_user_id and user.id and not getattr(user, "is_lockdownuser", False) + return post_user_id == user.id and not getattr(user, "is_lockdownuser", False) # return True # #need to figure someting out here # return user.permissions[perm] and user.id == post_user_id diff --git a/openspending/forum/forum/views.py b/openspending/forum/forum/views.py index 41bdf353..5693d741 100644 --- a/openspending/forum/forum/views.py +++ b/openspending/forum/forum/views.py @@ -343,6 +343,7 @@ def manage_forum(forum_id, slug=None): return render_template( "forum/forum/edit_forum.html", forum=forum_instance, topics=topics, available_forums=available_forums, forumsread=forumsread, + flaskbb_config=flaskbb_config ) diff --git a/openspending/forum/management/views.py b/openspending/forum/management/views.py index 4fcb9250..79c7832d 100644 --- a/openspending/forum/management/views.py +++ b/openspending/forum/management/views.py @@ -46,45 +46,45 @@ def overview(): post_count=post_count) -@management.route("/settings", methods=["GET", "POST"]) -@management.route("/settings/", methods=["GET", "POST"]) -@admin_required -def settings(slug=None): - slug = slug if slug else "general" +# @management.route("/settings", methods=["GET", "POST"]) +# @management.route("/settings/", methods=["GET", "POST"]) +# @admin_required +# def settings(slug=None): +# slug = slug if slug else "general" - # get the currently active group - active_group = SettingsGroup.query.filter_by(key=slug).first_or_404() - # get all groups - used to build the navigation - all_groups = SettingsGroup.query.all() +# # get the currently active group +# active_group = SettingsGroup.query.filter_by(key=slug).first_or_404() +# # get all groups - used to build the navigation +# all_groups = SettingsGroup.query.all() - SettingsForm = Setting.get_form(active_group) +# SettingsForm = Setting.get_form(active_group) - old_settings = Setting.get_settings(active_group) - new_settings = {} +# old_settings = Setting.get_settings(active_group) +# new_settings = {} - form = SettingsForm() +# form = SettingsForm() - if form.validate_on_submit(): - for key, values in iteritems(old_settings): - try: - # check if the value has changed - if values['value'] == form[key].data: - continue - else: - new_settings[key] = form[key].data - except KeyError: - pass - Setting.update(settings=new_settings, app=current_app) - flash(_("Settings saved."), "success") - else: - for key, values in iteritems(old_settings): - try: - form[key].data = values['value'] - except (KeyError, ValueError): - pass - - return render_template("forum/management/settings.html", form=form, - all_groups=all_groups, active_group=active_group) +# if form.validate_on_submit(): +# for key, values in iteritems(old_settings): +# try: +# # check if the value has changed +# if values['value'] == form[key].data: +# continue +# else: +# new_settings[key] = form[key].data +# except KeyError: +# pass +# Setting.update(settings=new_settings, app=current_app) +# flash(_("Settings saved."), "success") +# else: +# for key, values in iteritems(old_settings): +# try: +# form[key].data = values['value'] +# except (KeyError, ValueError): +# pass + +# return render_template("forum/management/settings.html", form=form, +# all_groups=all_groups, active_group=active_group) # # Users diff --git a/openspending/forum/utils/helpers.py b/openspending/forum/utils/helpers.py index 61d7582a..97d379e9 100644 --- a/openspending/forum/utils/helpers.py +++ b/openspending/forum/utils/helpers.py @@ -60,7 +60,7 @@ def do_topic_action(topics, user, action, reverse): For example, to unlock a topic, ``reverse`` should be set to ``True``. """ - from openspending.forum.utils.permissions import can_moderate, can_delete_topic + from openspending.auth.forum import can_moderate, can_delete_topic from openspending.model.account import Account as User from openspending.forum.forum.models import Post diff --git a/openspending/templates/forum/forum/edit_forum.html b/openspending/templates/forum/forum/edit_forum.html index cd38e745..e82b8f3c 100644 --- a/openspending/templates/forum/forum/edit_forum.html +++ b/openspending/templates/forum/forum/edit_forum.html @@ -1,12 +1,12 @@ {% set page_title = forum.title %} {% set active_forum_nav=True %} - {% extends theme("forum/layout.html") %} + {% extends "forum/layout.html" %} {% block forumcontent %} - {% from 'macros.html' import render_pagination, topic_pages %} + {% from 'forum/macros.html' import render_pagination, topic_pages %} @@ -29,13 +29,13 @@ - {% trans %}Topic{% endtrans %} + Topic - {% trans %}Posts{% endtrans %} + Posts - {% trans %}Views{% endtrans %} + Views - {% trans %}Last Post{% endtrans %} + Last Post @@ -67,7 +67,7 @@ {{ topic_pages(topic, flaskbb_config["POSTS_PER_PAGE"]) }}
- {% trans %}by{% endtrans %} + by {% if topic.user_id %} {{ topic.user.username }} {% else %} @@ -86,7 +86,7 @@ {{ topic.last_post.date_created|time_since }}
- {% trans %}by{% endtrans %} + by {% if topic.last_post.user_id %} {{ topic.last_post.user.username }} {% else %} @@ -99,7 +99,7 @@ {% else %} - {% trans %}No Topics.{% endtrans %} + No Topics. {% endfor %} @@ -111,7 +111,7 @@ @@ -121,37 +121,37 @@
diff --git a/openspending/templates/forum/forum/index.html b/openspending/templates/forum/forum/index.html index 0dfc4ebb..92d7b3b1 100644 --- a/openspending/templates/forum/forum/index.html +++ b/openspending/templates/forum/forum/index.html @@ -15,7 +15,6 @@ Board Statistics - [Who is online?] diff --git a/openspending/templates/forum/forum/online_users.html b/openspending/templates/forum/forum/online_users.html deleted file mode 100644 index c261c879..00000000 --- a/openspending/templates/forum/forum/online_users.html +++ /dev/null @@ -1,19 +0,0 @@ -{% set page_title = _("Online Users") %} - -{% extends theme("layout.html") %} - -{% block navigation %} -{% endblock %} - -{% block forumcontent %} - -{% trans %}Online Users{% endtrans %} -{% for user in online_users %} - {% if config["REDIS_ENABLED"] %} - {{ user }}{% if not loop.last %}, {% endif %} - {% else %} - {{ user.username }}{% if not loop.last %}, {% endif %} - {% endif %} -{% endfor %} - -{% endblock %} diff --git a/openspending/templates/forum/forum/report_post.html b/openspending/templates/forum/forum/report_post.html index 1d27601c..3ae9b560 100644 --- a/openspending/templates/forum/forum/report_post.html +++ b/openspending/templates/forum/forum/report_post.html @@ -1,14 +1,15 @@ -{% set page_title = _("Report Post") %} +{% set page_title = "Report Post" %} -{% extends theme("layout.html") %} +{% extends "forum/layout.html" %} {% block navigation %} {% endblock %} {% block forumcontent %} -{% from theme("macros.html") import render_field %} +{% from "forum/macros.html" import render_field %}
+ {{ form.hidden_tag() }}

{% trans %}Report Post{% endtrans %}

diff --git a/openspending/templates/forum/forum/search_form.html b/openspending/templates/forum/forum/search_form.html index 4d93daea..336fb4ab 100644 --- a/openspending/templates/forum/forum/search_form.html +++ b/openspending/templates/forum/forum/search_form.html @@ -1,16 +1,16 @@ -{% set page_title = _("Search") %} +{% set page_title = "Search" %} -{% extends theme("layout.html") %} -{% from theme("macros.html") import horizontal_field %} +{% extends "forum/layout.html" %} +{% from "forum/macros.html" import horizontal_field %} {% block forumcontent %}
-

{% trans %}Search{% endtrans %}

+

Search


{{ form.hidden_tag() }} {{ horizontal_field(form.search_types)}} diff --git a/openspending/templates/forum/forum/search_result.html b/openspending/templates/forum/forum/search_result.html index 39eeb32d..47f05141 100644 --- a/openspending/templates/forum/forum/search_result.html +++ b/openspending/templates/forum/forum/search_result.html @@ -1,16 +1,16 @@ -{% set page_title = _("Search") %} +{% set page_title = "Search" %} -{% extends theme("layout.html") %} +{% extends "forum/layout.html" %} {% block forumcontent %} - {% from theme('macros.html') import render_pagination, group_field, topic_pages %} + {% from 'forum/macros.html' import render_pagination, group_field, topic_pages %} {% if result['post'] %} -

{% trans %}Posts{% endtrans %}

+

Posts

@@ -29,25 +29,20 @@

{% trans %}Posts{% endtrans %}

{{ post.user.username }} - {%- if post.user|is_online %} - Online - {%- else %} - Offline - {%- endif %}
{{ post.user.primary_group.name }}
{% else %} {% endif %} @@ -66,7 +61,7 @@

{% trans %}Posts{% endtrans %}

{% else %} - + {% endfor %} @@ -74,16 +69,16 @@

{% trans %}Posts{% endtrans %}

{% endif %} {% if result['user'] %} -

{% trans %}Users{% endtrans %}

+

Users

- {% trans %}Posts{% endtrans %}: {{ post.user.post_count }}
- {% trans %}Registered since{% endtrans %}: {{ post.user.date_joined|format_date('%b %d %Y') }}
+ Posts: {{ post.user.post_count }}
+ Registered since: {{ post.user.date_joined|format_date('%b %d %Y') }}
{{ post.username }}
- {% trans %}Guest{% endtrans %} + Guest
{% trans %}No posts found matching your search criteria.{% endtrans %}No posts found matching your search criteria.
- - - - + + + + @@ -93,11 +88,10 @@

{% trans %}Users{% endtrans %}

- {% else %} - + {% endfor %} @@ -105,18 +99,18 @@

{% trans %}Users{% endtrans %}

{% endif %} {% if result['topic'] %} -

{% trans %}Topics{% endtrans %}

+

Topics

#{% trans %}Username{% endtrans %}{% trans %}Posts{% endtrans %}{% trans %}Date registered{% endtrans %}{% trans %}Group{% endtrans %}UsernamePostsDate registeredGroup
{{ user.username }} {{ user.post_count }} {{ user.date_joined|format_date('%b %d %Y') }}{{ user.primary_group.name }}
{% trans %}No users found matching your search criteria.{% endtrans %}No users found matching your search criteria.
- + - + - + - + @@ -139,7 +133,7 @@

{% trans %}Topics{% endtrans %}


- {% trans %}by{% endtrans %} + by {% if topic.user_id %} {{ topic.user.username }} {% else %} @@ -158,7 +152,7 @@

{% trans %}Topics{% endtrans %}

{{ topic.last_post.date_created|time_since }}
- {% trans %}by{% endtrans %} + by {% if topic.last_post.user_id %} {{ topic.last_post.user.username }} {% else %} @@ -169,7 +163,7 @@

{% trans %}Topics{% endtrans %}

{% else %}
- + {% endfor %} @@ -177,15 +171,15 @@

{% trans %}Topics{% endtrans %}

{% endif %} {% if result['forum'] %} -

{% trans %}Forums{% endtrans %}

+

Forums

{% trans %}Topic{% endtrans %}Topic{% trans %}Posts{% endtrans %}Posts{% trans %}Views{% endtrans %}Views{% trans %}Last Post{% endtrans %}Last Post
{% trans %}No topics found matching your search criteria.{% endtrans %}No topics found matching your search criteria.
- - - - + + + + @@ -228,14 +222,6 @@

{% trans %}Forums{% endtrans %}

{% autoescape false %} {{ forum.description|markup }} {% endautoescape %} - {% if forum.show_moderators %} -
- {% trans %}Moderators{% endtrans %}: - {% for moderator in forum.moderators %} - {{ moderator.username }}{% if not loop.last %}, {% endif %} - {% endfor %} -
- {% endif %} @@ -250,7 +236,7 @@

{% trans %}Forums{% endtrans %}


{{ forum.last_post.date_created|time_since }}
- {% trans %}by{% endtrans %} + by {% if forum.last_post.user_id %} {{ forum.last_post.user.username }} {% else %} @@ -258,7 +244,7 @@

{% trans %}Forums{% endtrans %}

{% endif %} {% else %} - {% trans %}No posts.{% endtrans %} + No posts. {% endif %} {% endif %} @@ -266,7 +252,7 @@

{% trans %}Forums{% endtrans %}

{% else %}
{% endfor %} diff --git a/openspending/templates/forum/forum/topic.html b/openspending/templates/forum/forum/topic.html index b501648b..cfcd2d28 100644 --- a/openspending/templates/forum/forum/topic.html +++ b/openspending/templates/forum/forum/topic.html @@ -89,9 +89,6 @@ - - - - + + + + - {% endfor %} diff --git a/openspending/templates/forum/management/group_form.html b/openspending/templates/forum/management/group_form.html deleted file mode 100644 index 51594623..00000000 --- a/openspending/templates/forum/management/group_form.html +++ /dev/null @@ -1,52 +0,0 @@ -{% set page_title = title %} -{% set active_management_group_nav=True %} - -{% extends theme("management/management_layout.html") %} -{% block management_content %} -{% from theme("macros.html") import render_field, render_boolean_field, render_submit_field, navlink with context %} - -
- -
- -
-
-
-
-
- {{ title }} -
-
-
- {{ form.hidden_tag() }} - {{ render_field(form.name) }} - {{ render_field(form.description, rows="4", div_class="col-md-12") }} - - {{ render_boolean_field(form.admin) }} - {{ render_boolean_field(form.super_mod) }} - - {{ render_boolean_field(form.mod) }} - {{ render_boolean_field(form.banned) }} - {{ render_boolean_field(form.guest) }} - - {{ render_boolean_field(form.mod_edituser) }} - {{ render_boolean_field(form.mod_banuser) }} - - {{ render_boolean_field(form.editpost) }} - {{ render_boolean_field(form.deletepost) }} - {{ render_boolean_field(form.deletetopic) }} - {{ render_boolean_field(form.posttopic) }} - {{ render_boolean_field(form.postreply) }} -
- {{ render_submit_field(form.submit, div_class="col-lg-offset-0 col-lg-9") }} -
- -
-
-
-
-
-{% endblock %} diff --git a/openspending/templates/forum/management/management_layout.html b/openspending/templates/forum/management/management_layout.html index e4df8f39..f5d3a2cb 100644 --- a/openspending/templates/forum/management/management_layout.html +++ b/openspending/templates/forum/management/management_layout.html @@ -10,7 +10,6 @@ {{ navlink('management.unread_reports', 'Reports', active=active_management_report_nav) }} {% if current_user.admin %} - {{ navlink('management.settings', 'Settings') }} {{ navlink('management.forums', 'Forums', active=active_management_forum_nav) }} {% endif %} diff --git a/openspending/templates/forum/management/plugins.html b/openspending/templates/forum/management/plugins.html deleted file mode 100644 index 5398e617..00000000 --- a/openspending/templates/forum/management/plugins.html +++ /dev/null @@ -1,71 +0,0 @@ -{% set page_title = _("Plugins") %} - -{% extends theme("management/management_layout.html") %} -{% block management_content %} -{% from theme('macros.html') import render_pagination %} - -
-
-
- {% trans %}Manage Plugins{% endtrans %} -
-
-
{% trans %}Forum{% endtrans %}{% trans %}Topics{% endtrans %}{% trans %}Posts{% endtrans %}{% trans %}Last Post{% endtrans %}ForumTopicsPostsLast Post
- {% trans %}No forums found matching your search criteria.{% endtrans %} + No forums found matching your search criteria.
- {% if current_user|is_authenticated and post.user_id and post.user_id != current_user.id %} - PM - {% endif %} {% if user.website %} {% if current_user|is_authenticated %}| {% endif %}Website {% endif %} diff --git a/openspending/templates/forum/management/banned_users.html b/openspending/templates/forum/management/banned_users.html index b30a76b7..6ac87853 100644 --- a/openspending/templates/forum/management/banned_users.html +++ b/openspending/templates/forum/management/banned_users.html @@ -1,17 +1,17 @@ -{% set page_title = _("Banned Users") %} +{% set page_title = "Banned Users" %} {% set active_management_user_nav=True %} -{% extends theme("forum/management/management_layout.html") %} +{% extends "forum/management/management_layout.html" %} {% block management_content %} -{% from theme('macros.html') import render_pagination, render_field, group_field, navlink with context %} +{% from 'forum/macros.html' import render_pagination, render_field, group_field, navlink with context %}
@@ -22,12 +22,12 @@
- {% trans %}Banned Users{% endtrans %} + Banned Users
@@ -52,19 +52,19 @@
#{% trans %}Username{% endtrans %}{% trans %}Posts{% endtrans %}{% trans %}Date registered{% endtrans %}{% trans %}Group{% endtrans %}UsernamePostsDate registeredGroup
@@ -80,14 +80,13 @@
{{ user.username }} {{ user.post_count }} {{ user.date_joined|format_date('%b %d %Y') }}{{ user.primary_group.name }} {% if current_user|can_ban_user and user.permissions['banned'] %} {% endif %} @@ -96,7 +95,7 @@ {% else %}
- {% trans %}No users found matching your search criteria.{% endtrans %} + No users found matching your search criteria.
- - - - - - - - - {% for plugin in plugins %} - - - - - - {% endfor %} - -
{% trans %}Plugin{% endtrans %}{% trans %}Information{% endtrans %}{% trans %}Manage{% endtrans %}
- {% if plugin.website %} - {{ plugin.name }} - {% else %} - {{ plugin.name }} - {% endif %} - - {% trans %}Version{% endtrans %}: {{ plugin.version }}
- {{ plugin.description }}
- {% trans %}by{% endtrans %} {{ plugin.author }} -
- {% if not plugin.enabled %} -
- - -
- {% else %} -
- - -
- {% endif %} - - {% set uninstallable = plugin.uninstallable %} - {% if plugin.installable and not uninstallable %} -
-
- - -
- {% endif %} - {% if uninstallable %} -
- - -
- {% endif %} -
- - - -{% endblock %} diff --git a/openspending/templates/forum/management/reports.html b/openspending/templates/forum/management/reports.html index a2f887fd..2d211939 100644 --- a/openspending/templates/forum/management/reports.html +++ b/openspending/templates/forum/management/reports.html @@ -1,14 +1,14 @@ -{% set page_title = _("Reports") %} +{% set page_title = "Reports" %} {% set active_management_report_nav=True %} -{% extends theme("management/management_layout.html") %} +{% extends "forum/management/management_layout.html" %} {% block management_content %} -{% from theme('macros.html') import render_pagination, navlink with context %} +{% from 'forum/macros.html' import render_pagination, navlink with context %}
@@ -17,7 +17,7 @@
- {% trans %}All Reports{% endtrans %} + All Reports
@@ -25,11 +25,11 @@ # - {% trans %}Poster{% endtrans %} - {% trans %}Topic{% endtrans %} - {% trans %}Reporter{% endtrans %} - {% trans %}Reason{% endtrans %} - {% trans %}Reported{% endtrans %} + Poster + Topic + Reporter + Reason + Reported @@ -44,7 +44,7 @@ {% else %} - {% trans %}No reports.{% endtrans %} + No reports. {% endfor %} diff --git a/openspending/templates/forum/management/settings.html b/openspending/templates/forum/management/settings.html deleted file mode 100644 index 2200dc30..00000000 --- a/openspending/templates/forum/management/settings.html +++ /dev/null @@ -1,50 +0,0 @@ -{% set page_title = active_group.name %} - -{% extends theme("management/management_layout.html") %} -{% block management_content %} -{% from theme('macros.html') import render_boolean_field, render_select_field, render_field, navlink with context %} - -
- -
- -
-
-
-
-
- {{ active_group.name }} -
-
-
- {{ form.hidden_tag() }} - {% for field in form %} - {% if field.type not in ["TextField", "IntegerField"] %} - {% if field.type == "BooleanField" %} - {{ render_boolean_field(field) }} - {% endif %} - - {% if field.type in ["SelectField", "SelectMultipleField"] %} - {{ render_select_field(field) }} - {% endif %} - {% else %} - {{ render_field(field) }} - {% endif %} - {% endfor %} - - -
-
-
-
-
-
-{% endblock %} diff --git a/openspending/templates/forum/management/unread_reports.html b/openspending/templates/forum/management/unread_reports.html index b6cd3bac..3cb1587e 100644 --- a/openspending/templates/forum/management/unread_reports.html +++ b/openspending/templates/forum/management/unread_reports.html @@ -1,14 +1,14 @@ -{% set page_title = _("Unread Reports") %} +{% set page_title = "Unread Reports" %} {% set active_management_report_nav=True %} -{% extends theme("management/management_layout.html") %} +{% extends "forum/management/management_layout.html" %} {% block management_content %} -{% from theme('macros.html') import render_pagination, navlink with context %} +{% from 'forum/macros.html' import render_pagination, navlink with context %}
@@ -17,7 +17,7 @@
- {% trans %}Unread Reports{% endtrans %} + Unread Reports
@@ -26,20 +26,20 @@ # - {% trans %}Poster{% endtrans %} - {% trans %}Topic{% endtrans %} - {% trans %}Reporter{% endtrans %} - {% trans %}Reason{% endtrans %} - {% trans %}Reported{% endtrans %} + Poster + Topic + Reporter + Reason + Reported
@@ -61,14 +61,14 @@
{% else %} - {% trans %}No unread reports.{% endtrans %} + No unread reports. {% endfor %} diff --git a/openspending/templates/forum/management/user_form.html b/openspending/templates/forum/management/user_form.html deleted file mode 100644 index 2ee46be1..00000000 --- a/openspending/templates/forum/management/user_form.html +++ /dev/null @@ -1,48 +0,0 @@ -{% set page_title = title %} -{% set active_management_user_nav=True %} - -{% extends theme("management/management_layout.html") %} -{% block management_content %} -{% from theme("macros.html") import horizontal_field, horizontal_select_field, navlink with context %} - -
- -
- -
-
-
-
-
- {{ title }} -
-
-
- {{ form.hidden_tag() }} - {{ horizontal_field(form.username) }} - {{ horizontal_field(form.email) }} - {{ horizontal_field(form.password) }} - {{ horizontal_select_field(form.birthday, surrounded_div="col-sm-4") }} - {{ horizontal_field(form.gender) }} - {{ horizontal_field(form.location) }} - {{ horizontal_field(form.website) }} - {{ horizontal_field(form.avatar) }} - {{ horizontal_field(form.primary_group) }} - {{ horizontal_field(form.secondary_groups) }} - {{ horizontal_field(form.signature, rows=5, div_class="col-sm-9") }} - {{ horizontal_field(form.notes, rows=12, div_class="col-sm-9") }} - {{ horizontal_field(form.submit) }} -
-
-
-
-
-
-{% endblock %} diff --git a/openspending/templates/forum/management/users.html b/openspending/templates/forum/management/users.html deleted file mode 100644 index f76eee8d..00000000 --- a/openspending/templates/forum/management/users.html +++ /dev/null @@ -1,163 +0,0 @@ -{% set page_title = _("Users") %} -{% set active_management_user_nav=True %} - -{% extends theme("management/management_layout.html") %} -{% block management_content %} -{% from theme('macros.html') import render_pagination, render_field, group_field, navlink with context %} - -
- -
- -
-
-
-
-
- - {% trans %}Users{% endtrans %} - -
-
- -
-
- -
-
-
- {{ search_form.hidden_tag() }} -
- {{ group_field(search_form.search_query, css_class="form-control") }} - - - -
-
-
- - - - - - - - - - - - - - - {% for user in users.items %} - - - - - - - - - - {% else %} - - - - {% endfor %} - -
#{% trans %}Username{% endtrans %}{% trans %}Posts{% endtrans %}{% trans %}Date registered{% endtrans %}{% trans %}Group{% endtrans %} - -
{{ user.id }}{{ user.username }}{{ user.post_count }}{{ user.date_joined|format_date('%b %d %Y') }}{{ user.primary_group.name }} - {% if current_user|can_edit_user and not user|is_admin or current_user|is_admin %} - - - - {% endif %} - - {% if current_user|can_ban_user and not user.permissions['banned'] %} -
- - - -
- {% endif %} - - {% if current_user|can_ban_user and user.permissions['banned'] %} -
- - - -
- {% endif %} - - {% if current_user|is_admin %} -
- - - -
- {% endif %} -
- {% trans %}No users found matching your search criteria.{% endtrans %} -
- - -
-
-
-
-{% endblock %} - -{% block scripts %} - -{% endblock %} diff --git a/openspending/templates/includes/navigation.jade b/openspending/templates/includes/navigation.jade index fa2ab26b..5684ef40 100644 --- a/openspending/templates/includes/navigation.jade +++ b/openspending/templates/includes/navigation.jade @@ -51,6 +51,7 @@ nav.navbar.navbar-default.navbar-fixed-top p strong Admin Only a(href="/admin") Admin Section + a(href="{{ url_for('management.overview') }}") Forum Management a(href="{{ url_for('findadmin.dataloader') }}") Data Loader {% endif %} li.divider