Skip to content

Instantly share code, notes, and snippets.

@darklow
Created October 8, 2014 14:15
Show Gist options
  • Save darklow/ce3149724aa99d369bcd to your computer and use it in GitHub Desktop.
Save darklow/ce3149724aa99d369bcd to your computer and use it in GitHub Desktop.
Custom view template for Django
<!-- templates/admin/custom_view.html -->
{% extends "admin/base_site.html" %}
{% load i18n %}
{% block breadcrumbs %}
<ul class="breadcrumb">
<li class="active">
<i class="icon-home"></i>
{% trans "Custom view" %}
</li>
</ul>
{% endblock %}
{% block content %}
<table id="result_list" class="table table-striped table-bordered table-hover table-condensed">
<thead>
<tr>
<th>Information on example</th>
</tr>
</thead>
<tbody>
<tr>
<td>This is just an example how menu can link to custom view</td>
</tr>
</tbody>
</table>
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment