Pinax如何添加按钮到导航栏,site_base.html?

时间:2014-05-11 18:02:47

标签: django pinax

m using django and pinax the first .I started a new pinax project but found there was no navigation bar on the homepage.Then I add django-user-accounts to the project ,but don知道如何在主页上添加“注销”和“设置”按钮。我是否修改了site_base.html,以及如何修改?

这是site_base.html

{% extends "theme_base.html" %}

{% load staticfiles %}
{% load i18n %}

{# remove to bring back topbar #}
{% block topbar_base %}{% endblock %}

{% block style_base %}
    <link href="{% static "pinax/css/theme.css" %}" rel="stylesheet">
    <link href="{% static "css/site.css" %}" rel="stylesheet">
    {% block extra_style %}{% endblock %}
{% endblock %}

{% block extra_head_base %}
{% block extra_head %}{% endblock %}
{% endblock %}

{% block footer %}
    {% include "_footer.html" %}
{% endblock %}

{% block extra_body_base %}
    {% block extra_body %}{% endblock %}
{% endblock %}

{% block script_base %}
    <script src="{% block jquery_src %}{% static "pinax/js/jquery.js" %}{% endblock %}"></script>
    <script src="{% static "js/bootstrap.min.js" %}"></script>
    <script src="{% static "pinax/js/theme.js" %}"></script>
    {% block extra_script %}{% endblock %}
{% endblock %}

1 个答案:

答案 0 :(得分:0)

删除此

{# remove to bring back topbar #}
{% block topbar_base %}{% endblock %}

您的导航栏将返回。现在你也添加一个导航栏。