mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-03-22 00:50:31 +00:00
There's currently a lot of copy-pasting of breadcrumbs, this can be revisited once we have a better understanding of how we're going to handle navigation. I've also tried to make template context variables more logical and consistent throughout.
75 lines
3.1 KiB
HTML
75 lines
3.1 KiB
HTML
{% load i18n %}<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
|
|
<title>{% block title %}Site administration{% endblock %} | django-admin2</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<!-- Bootstrap -->
|
|
<link href="{{ STATIC_URL }}themes/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
|
|
<link href="{{ STATIC_URL }}themes/bootstrap/css/bootstrap-custom.css" rel="stylesheet" media="screen">
|
|
</head>
|
|
<body>
|
|
<div class="navbar navbar-inverse navbar-static-top">
|
|
<div class="navbar-inner">
|
|
<div class="container-fluid">
|
|
<a class="brand" href="{% url 'admin2:dashboard' %}">Django-Admin2</a>
|
|
|
|
<ul class="nav pull-right">
|
|
<li><a tabindex="-1" href="{% url 'admin2:api-index' %}">{% trans "API" %}</a></li>
|
|
|
|
{% if docsroot %}
|
|
<li><a href="{{ docsroot }}">{% trans 'Documentation' %}</a></li>
|
|
{% endif %}
|
|
<li class="dropdown">
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
|
{% if user.get_full_name %}
|
|
{{ user.get_full_name }}
|
|
{% else %}
|
|
{% blocktrans with user=user.username %}
|
|
Logged in as {{ user }}
|
|
{% endblocktrans %}
|
|
{% endif %}
|
|
<b class="caret"></b>
|
|
</a>
|
|
<ul class="dropdown-menu">
|
|
{% if user.has_usable_password %}
|
|
<li><a tabindex="-1" href="TODO">{% trans "Change password" %}</a></li>
|
|
{% endif %}
|
|
<li><a tabindex="-1" href="TODO">{% trans "Log out" %}</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<ul class="breadcrumb">
|
|
{% block breadcrumbs %}
|
|
<li class="active">Home</li>
|
|
{% endblock %}
|
|
</ul>
|
|
|
|
{% if messages %}
|
|
<ul class="messages">
|
|
{% for message in messages %}
|
|
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="span10">
|
|
<h3>{% block page_title %}{% trans "Site administration" %}{% endblock %}</h3>
|
|
</div>
|
|
</div>
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
|
|
<script src="http://code.jquery.com/jquery.js"></script>
|
|
<script src="{{ STATIC_URL }}themes/bootstrap/js/bootstrap.min.js"></script>
|
|
{% block extrajs %}{% endblock %}
|
|
|
|
</body>
|
|
</html>
|