{% extends "base.html" %} {% from "dashboards/includes/macros.html" import print_readout, product_choice_list, print_subscription_menu with context %} {% from "dashboards/includes/macros.html" import localization_sidebar_nav %} {% set title = _('[{product}] Knowledge Base Dashboard')|fe(product=pgettext('DB: products.Product.title', product.title) if product else _('All Products')) %} {% set scripts = ('wiki', 'wiki.dashboard') %} {% set crumbs = [(None, title)] %} {% set classes = 'contributor-dashboard' %} {# TODO: Move required dashboard scripts out of wiki.js into their own #} {% block content %}

{{ title }}

{{ product_choice_list(products, product, url('dashboards.contributors')) }} {% if default_locale_name != request_locale_name %}
{% endif %} {% if not user.is_anonymous %} {{ print_subscription_menu(default_locale_name, request_locale_name, on_default_locale, is_watching_default_locale, is_watching_other_locale, is_watching_default_approved, is_watching_other_approved, settings.WIKI_DEFAULT_LANGUAGE, product=product) }} {% endif %} {% for readout in readouts.values() %} {{ print_readout(readout, locale=default_locale, product=product) }} {% endfor %}
{% endblock %} {% block side_top %} {{ localization_sidebar_nav(settings.WIKI_DEFAULT_LANGUAGE, 'dashboard', True) }} {% endblock %}