dr.botzo/dr_botzo/templates/base.html
Brian S. Stephan 5d0e7aeb9f choices: simple choose randomly from choices thing
similar to a hybrid of the random facts (but defined more simply) and
the dice rolling (but not picking from dice), this allows for definition
of "choice sets" (only in the admin for the moment) and then getting a
random pull from that set (only in the web interface for the moment)
2016-12-04 11:43:47 -06:00

93 lines
3.3 KiB
HTML

{% extends 'bootstrap.html' %}
{% load bootstrap3 %}
{% load static %}
{% block bootstrap3_extra_head %}
{% block extra_meta %}{% endblock %}
<link href="{% get_static_prefix %}css/core.css" rel="stylesheet" type='text/css' />
<link href='//fonts.googleapis.com/css?family=Oxygen' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
{% block extra_media %}{% endblock %}
{% endblock %}
{% block bootstrap3_content %}
<div id="header" class="navbar navbar-fixed-top navbar-inverse">
<div class="container">
<div class="navbar-header">
{% block navbarbrand %}
<a class="navbar-brand" href="{% url 'home' %}">{{ site.domain }}</a>
{% endblock %}
<!-- .navbar-toggle is used as the toggle for collapsed navbar content -->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="navbar-collapse collapse" aria-expanded="false" style="height: 1px;">
<div class="navbar-right">
<ul class="nav navbar-nav">
{% 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">
<li>
<a href="{% url 'auth_password_change' %}">
<i class="fa fa-pencil-square-o"></i>
Change password
</a>
</li>
<li>
<a href="{% url 'auth_logout' %}">
<i class="fa fa-power-off"></i>
Log out
</a>
</li>
{% if user.is_authenticated and user.is_staff %}
<li>
<a href="/admin/">
<i class="fa fa-database"></i>
Admin
</a>
</li>
{% endif %}
</ul>
</li>
{% else %}
<ul class="nav navbar-nav">
<li>
<a href="{% url 'auth_login' %}?next={{ request.path }}">Log in</a>
</li>
<li>
<a href="{% url 'registration_register' %}">Sign up</a>
</li>
</ul>
{% endif %}
</ul>
</div>
{% block navbar_menu %}
<ul class="nav navbar-nav">
<li><a href="{% url 'choices_index' %}">Choices</a></li>
<li><a href="{% url 'karma_index' %}">Karma</a></li>
<li><a href="{% url 'markov_index' %}">Markov</a></li>
<li><a href="{% url 'races_index' %}">Races</a></li>
</ul>
{% endblock %}
</div>
</div>
</div>
{% autoescape off %}{% bootstrap_messages %}{% endautoescape %}
<div id="content">
{% block content %}(no content){% endblock %}
</div>
{% block footer %}<div id="footer" class="container">{% block extrafooter %}{% endblock %}</div>{% endblock %}
{% endblock %}