105 lines
4.4 KiB
HTML
105 lines
4.4 KiB
HTML
{% load staticfiles i18n account %}
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>{% block title %}gnuviechadmin{% endblock title %}</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="description" content="">
|
|
<meta name="author" content="">
|
|
|
|
<!-- Le styles -->
|
|
<link href="{% static 'css/bootstrap.min.css' %}" rel="stylesheet">
|
|
<link href="{% static 'css/font-awesome.min.css' %}" rel="stylesheet">
|
|
<style>
|
|
body {
|
|
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
|
|
}
|
|
</style>
|
|
|
|
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
|
|
<!--[if lt IE 9]>
|
|
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
|
<![endif]-->
|
|
|
|
<!-- This file store project specific CSS -->
|
|
<link href="{% static 'css/gnuviechadmin.css' %}" rel="stylesheet">
|
|
|
|
<!-- Use this to quickly test CSS changes in a template,
|
|
then move to gnuviechadmin.css -->
|
|
{% block extra_css %}{% endblock extra_css %}
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="navbar navbar-inverse navbar-fixed-top">
|
|
<div class="container-fluid">
|
|
<div class="navbar-header">
|
|
<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>
|
|
<a class="navbar-brand" href="{% url "dashboard" %}">gnuviechadmin</a>
|
|
</div>
|
|
<div class="collapse navbar-collapse">
|
|
<ul class="nav navbar-nav">
|
|
<li class="active"><a href="{% if user.is_authenticated %}{% url 'customer_dashboard' slug=user.username %}{% else %}{% url 'dashboard' %}{% endif %}">Home</a></li>
|
|
<li><a href="#about">About</a></li>
|
|
<li><a href="#contact">Contact</a></li>
|
|
</ul>
|
|
<ul class="nav navbar-nav navbar-right">
|
|
{% if user.is_authenticated %}
|
|
<li class="dropdown">
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">{% trans "My Account" %} <span class="caret"></span></a>
|
|
<ul class="dropdown-menu" role="menu">
|
|
{% if user.is_staff %}<li><a href="{% url 'admin:index' %}">{% trans "Admin site" %}</a></li>{% endif %}
|
|
<li><a href="{% url 'account_email' %}">{% trans "Change Email" %}</a></li>
|
|
<li><a href="{% url 'socialaccount_connections' %}">{% trans "Social Accounts" %}</a></li>
|
|
<li><a href="{% url 'account_logout' %}">{% trans "Logout" %}</a></li>
|
|
</ul>
|
|
</li>
|
|
{% else %}
|
|
<li><a href="{% url 'account_login' %}?next={{ request.path }}">{% trans "Sign In" %}</a></li>
|
|
<li><a href="{% url 'account_signup' %}">{% trans "Sign Up" %}</a></li>
|
|
{% endif %}
|
|
</ul>
|
|
{% if user.is_authenticated %}
|
|
{% user_display user as user_display %}
|
|
{% url 'user_profile' slug=user.username as profile_url %}
|
|
<p class="navbar-text navbar-right">{% blocktrans %}Signed in as <a href="{{ profile_url }}" class="navbar-link" title="My Profile">{{ user_display }}</a>{% endblocktrans %}</p>
|
|
{% endif %}
|
|
</div><!--/.nav-collapse -->
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container">
|
|
|
|
<h1>{% block page_title %}Example Base Template{% endblock page_title %}</h1>
|
|
|
|
{% if messages %}
|
|
<ul class="list-unstyled">
|
|
{% for message in messages %}
|
|
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
|
|
{% block content %}
|
|
<p>Use this document as a way to quick start any new project.</p>
|
|
{% endblock content %}
|
|
|
|
</div> <!-- /container -->
|
|
|
|
<!-- Le javascript
|
|
================================================== -->
|
|
<!-- Placed at the end of the document so the pages load faster -->
|
|
<script src="http://code.jquery.com/jquery-latest.js"></script>
|
|
<script src="{% static 'js/bootstrap.min.js' %}"></script>
|
|
|
|
<!-- place project specific Javascript in this file -->
|
|
<script src="{% static 'js/gnuviechadmin.js' %}"></script>
|
|
|
|
{% block extra_js %}{% endblock extra_js %}
|
|
</body>
|
|
</html>
|