mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 20:40:14 +03:00
changing breadcrumb formatting to match bootstrap3
This commit is contained in:
parent
cb369cc760
commit
fe4875108d
|
@ -32,6 +32,10 @@ h2, h3 {
|
||||||
margin-right: 1em;
|
margin-right: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ul.breadcrumb {
|
||||||
|
margin: 80px 0 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
form select, form input, form textarea {
|
form select, form input, form textarea {
|
||||||
width: 90%;
|
width: 90%;
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,12 +56,15 @@
|
||||||
{% block breadcrumbs %}
|
{% block breadcrumbs %}
|
||||||
<ul class="breadcrumb">
|
<ul class="breadcrumb">
|
||||||
{% for breadcrumb_name, breadcrumb_url in breadcrumblist %}
|
{% for breadcrumb_name, breadcrumb_url in breadcrumblist %}
|
||||||
|
{% if forloop.last %}
|
||||||
|
<li class="active">{{ breadcrumb_name }}</li>
|
||||||
|
{% else %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ breadcrumb_url }}" {% if forloop.last %}class="active"{% endif %}>
|
<a href="{{ breadcrumb_url }}">
|
||||||
{{ breadcrumb_name }}
|
{{ breadcrumb_name }}
|
||||||
</a>
|
</a>
|
||||||
{% if not forloop.last %}<span class="divider">›</span>{% endif %}
|
|
||||||
</li>
|
</li>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user