D
D
Dmitry Vyatkin2015-12-01 13:16:05
Django
Dmitry Vyatkin, 2015-12-01 13:16:05

How to add another link to the subnav block in Pinax-django-user-account via templates?

I installed Pinax-Project-Account and I want to add my links to settings, but in such a way that I would not edit the code of the account application itself. I'm trying to add via subnav block to site_base.html - don't quit.
Here is a link on the topic pinax
Here I want to add my links:

{% extends "theme_bootstrap/subnav_base.html" %}

{% load i18n %}

{% block body_class %}account{% endblock %}

{% block subnav %}
<div class="panel panel-default">
    <div class="panel-heading"><strong>{% trans "Settings" %}</strong></div>
    <div class="list-group">
        <a class="list-group-item account-settings" href="{% url "account_settings" %}">
            {% trans "Account" %}
        </a>
        <a class="list-group-item account-password" href="{% url "account_password" %}">
            {% trans "Change password" %}
        </a>
        <a class="list-group-item account-delete" href="{% url "account_delete" %}">
            {% trans "Delete account" %}
        </a>
    </div>
</div>
{% endblock %}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Vyatkin, 2015-12-03
@dim137

Solution in python manage.py copy_from_theme --path account/base.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question