Answer the question
In order to leave comments, you need to log in
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
Solution in python manage.py copy_from_theme --path account/base.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question