Skip to content

Commit 73ad88e

Browse files
Merge pull request #4993 from jeffcjohnson/master
add content block and breadcrumbs_empty block to base.html for reuse
2 parents fb8cbab + 323f590 commit 73ad88e

File tree

1 file changed

+4
-0
lines changed
  • rest_framework/templates/rest_framework

1 file changed

+4
-0
lines changed

rest_framework/templates/rest_framework/base.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,15 @@
6363
{% else %}
6464
<li><a href="{{ breadcrumb_url }}">{{ breadcrumb_name }}</a></li>
6565
{% endif %}
66+
{% empty %}
67+
{% block breadcrumbs_empty %}&nbsp;{% endblock breadcrumbs_empty %}
6668
{% endfor %}
6769
</ul>
6870
{% endblock %}
6971

7072
<!-- Content -->
7173
<div id="content">
74+
{% block content %}
7275

7376
{% if 'GET' in allowed_methods %}
7477
<form id="get-form" class="pull-right">
@@ -252,6 +255,7 @@ <h1>{{ name }}</h1>
252255
</div>
253256
{% endif %}
254257
{% endif %}
258+
{% endblock content %}
255259
</div><!-- /.content -->
256260
</div><!-- /.container -->
257261
</div><!-- ./wrapper -->

0 commit comments

Comments
 (0)