~netlandish/django-wiki

b4b674cea55db5666f314624b6a38b67df29db2d — Benjamin Bach 8 years ago 6aecc8a + da080ed
Merge pull request #546 from benjaoming/account-handling-disabled

Do not display account-related links in menu when WIKI_ACCOUNT_HANDLING=False
1 files changed, 8 insertions(+), 6 deletions(-)

M wiki/templates/wiki/base_site.html
M wiki/templates/wiki/base_site.html => wiki/templates/wiki/base_site.html +8 -6
@@ 59,12 59,6 @@
                  <b class="caret"></b>
                </a>
                <ul class="dropdown-menu">
                  <li>
                    <a href="{% url 'wiki:logout' %}">
                      <i class="fa fa-power-off"></i>
                      {% trans "Log out" %}
                    </a>
                  </li>
                  {% if "ACCOUNT_HANDLING"|wiki_settings %}
                  <li>
                    <a href="{% url 'wiki:profile_update' %}">


@@ 72,6 66,12 @@
                      {% trans "Account Settings" %}
                    </a>
                  </li>
                  <li>
                    <a href="{% url 'wiki:logout' %}">
                      <i class="fa fa-power-off"></i>
                      {% trans "Log out" %}
                    </a>
                  </li>
                  {% endif %}
                  {% if user.is_superuser %}
                  <li>


@@ 92,9 92,11 @@
              <li>
                <a href="{% login_url as wiki_login_url %}{{ wiki_login_url }}">{% trans "Log in" %}</a>
              </li>
              {% if "ACCOUNT_HANDLING"|wiki_settings %}
              <li>
                <a href="{% url 'wiki:signup' %}">{% trans "Sign up" %}</a>
              </li>
              {% endif %}
            </ul>
            {% endif %}
          </div>