Add page_title link

This commit is contained in:
Daniel Greenfeld 2013-07-07 15:50:55 +02:00
parent 0052cd3a9a
commit e2f6bb859e
2 changed files with 5 additions and 4 deletions

View file

@ -70,6 +70,7 @@
<div class="{% block class_page_title %}span10{% endblock class_page_title %}">
<h3>{% block page_title %}{% trans "Site administration" %}{% endblock page_title %}</h3>
</div>
<div class="span2">{% block page_title_link %}{% endblock page_title_link %}</div>
</div>
{% block content %}{% endblock content %}
</div>

View file

@ -8,6 +8,10 @@
{# Translators : examples : Add post, Change object #}
{% block page_title %}{% blocktrans with action=action model_name=model_name %}{{ action_name }} {{ model_name }}{% endblocktrans %}{% endblock page_title %}
{% block page_title_link %}
<a href="#" class="btn btn-info">History</a>
{% endblock page_title_link %}
{% block breadcrumbs %}
<li>
<a href="{% url "admin2:dashboard" %}">{% trans "Home" %}</a>
@ -36,10 +40,6 @@
{% block content %}
<div class="history_btn">
<a href="#" class="btn btn-info">History</a>
</div>
<div class="row-fluid">
<div class="span12">
<form method="post">