2014-05-08 16:59:35 +00:00
|
|
|
{% extends "rest_framework/base.html" %}
|
2015-02-24 09:34:26 +00:00
|
|
|
{% load rest_framework utils staticfiles %}
|
2014-05-08 16:59:35 +00:00
|
|
|
|
2015-04-23 14:34:04 +00:00
|
|
|
{% block meta %}
|
2014-05-08 16:59:35 +00:00
|
|
|
{{ block.super }}
|
|
|
|
<link rel="icon" href="{% static "orchestra/images/favicon.png" %}" type="image/png" />
|
|
|
|
{% endblock %}
|
2015-05-04 13:02:00 +00:00
|
|
|
{% block title %}{{ ORCHESTRA_SITE_VERBOSE_NAME }} REST API{% endblock %}
|
|
|
|
{% block branding %}<a class='brand' href="{% url 'api-root' %}">{{ ORCHESTRA_SITE_VERBOSE_NAME }} REST API <span class="version">{% version %}</span></a>{% endblock %}
|
2014-05-08 16:59:35 +00:00
|
|
|
{% block userlinks %}
|
|
|
|
<li><a href="{% admin_url %}">Admin</a></li>
|
|
|
|
{% if user.is_authenticated %}
|
|
|
|
<li class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
|
|
|
{{ user }}
|
|
|
|
<b class="caret"></b>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
2015-02-24 09:34:26 +00:00
|
|
|
<li>{% optional_logout request user %}</li>
|
2014-05-08 16:59:35 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{% else %}
|
|
|
|
<li>{% optional_login request %}</li>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|