2015-01-17 21:42:13 +01:00
{% load staticfiles i18n account %}
2014-05-18 00:07:32 +02:00
<!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" >
2015-01-17 21:42:13 +01:00
< link href = "{% static 'css/font-awesome.min.css' %}" rel = "stylesheet" >
2015-01-18 16:07:06 +01:00
< link href = "{% static 'fonts/font-mfizz.css' %}" rel = "stylesheet" >
2014-05-18 00:07:32 +02:00
< 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]>
2015-01-18 00:28:47 +01:00
< script src = "//html5shim.googlecode.com/svn/trunk/html5.js" > < / script >
2014-05-18 00:07:32 +02:00
<![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" >
2015-01-17 15:42:47 +01:00
< div class = "container-fluid" >
2014-05-18 00:07:32 +02:00
< 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 >
2015-02-01 15:00:44 +01:00
< a class = "navbar-brand" href = "{% if user.is_authenticated %}{% url 'customer_dashboard' slug=user.username %}{% else %}{% url 'dashboard' %}{% endif %}" title = "{% trans " Dashboard " % } " > gnuviechadmin< / a >
2014-05-18 00:07:32 +02:00
< / div >
< div class = "collapse navbar-collapse" >
< ul class = "nav navbar-nav" >
2015-01-24 23:37:20 +01:00
{% if user.is_staff %}
2015-02-01 15:00:44 +01:00
< li class = "dropdown{% if active_item == 'hostingpackage' %} active{% endif %}" >
2015-02-01 19:39:09 +01:00
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" role = "button" aria-expanded = "false" > < i class = "fa fa-server" > < / i > {% trans "Hosting" %} < span class = "caret" > < / span > < / a >
2015-02-01 15:00:44 +01:00
< ul class = "dropdown-menu" role = "menu" >
2015-02-01 19:39:09 +01:00
< li > < a href = "{% url 'hosting_packages' user=user.username %}" > < i class = "fa fa-cube" > < / i > {% trans "Your hosting packages" %}< / a > < / li >
< li > < a href = "{% url 'all_hosting_packages' %}" > < i class = "fa fa-cubes" > < / i > {% trans "All hosting packages" %}< / a > < / li >
2015-02-01 15:00:44 +01:00
< / ul >
< / li >
2015-02-01 15:14:26 +01:00
{% elif user.is_authenticated %}
2015-02-01 19:39:09 +01:00
< li { % if active_item = = ' hostingpackage ' % } class = "active" { % endif % } > < a href = "{% url 'hosting_packages' user=user.username %}" > < i class = "fa fa-server" > < / i > {% trans "Hosting" %}< / a > < / li >
2015-01-24 23:37:20 +01:00
{% endif %}
2015-02-01 13:16:45 +01:00
< li class = "dropdown" >
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" role = "button" aria-expanded = "false" > < i class = "glyphicon glyphicon-link" > < / i > {% trans "Links" %} < span class = "caret" > < / span > < / a >
< ul class = "dropdown-menu" role = "menu" >
< li > < a href = "{{ webmail_url }}" title = "{% trans " Web based mail system " % } " > < i class = "fa fa-envelope" > < / i > {% trans "Webmail" %}< / a > < / li >
2015-02-01 15:09:10 +01:00
< li > < a href = "{{ phpmyadmin_url }}" title = "{% trans " phpMyAdmin - MySQL database administration tool " % } " > < i class = "icon-mysql" > < / i > {% trans "phpMyAdmin" %}< / a > < / li >
< li > < a href = "{{ phppgadmin_url }}" title = "{% trans " phpPgAdmin - PostgreSQL database administration tool " % } " > < i class = "icon-postgres" > < / i > {% trans "phpPgAdmin" %}< / a > < / li >
2015-02-01 13:16:45 +01:00
< / ul >
< / li >
2015-02-01 19:39:09 +01:00
< li { % if active_item = = ' imprint ' % } class = "active" { % endif % } > < a href = "{% url 'imprint' %}" > < i class = "fa fa-info" > < / i > {% trans "Imprint" %}< / a > < / li >
< li { % if active_item = = ' contact ' % } class = "active" { % endif % } > < a href = "{% url 'contact_form' %}" > < i class = "fa fa-paper-plane" > < / i > {% trans "Contact" %}< / a > < / li >
2014-05-18 00:07:32 +02:00
< / ul >
2015-01-17 15:42:47 +01:00
< ul class = "nav navbar-nav navbar-right" >
{% if user.is_authenticated %}
2015-02-01 14:58:32 +01:00
< li class = "dropdown{% if active_item == 'account' %} active{% endif %}" >
2015-02-01 19:39:09 +01:00
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" role = "button" aria-expanded = "false" > < i class = "fa fa-user" > < / i > {% trans "My Account" %} < span class = "caret" > < / span > < / a >
2015-01-17 21:42:13 +01:00
< ul class = "dropdown-menu" role = "menu" >
2015-02-01 19:39:09 +01:00
{% if user.is_staff %}< li > < a href = "{% url 'admin:index' %}" > < i class = "fa fa-wrench" > < / i > {% trans "Admin site" %}< / a > < / li > {% endif %}
< li > < a href = "{% url 'account_email' %}" > < i class = "fa fa-at" > < / i > {% trans "Change Email" %}< / a > < / li >
< li > < a href = "{% url 'socialaccount_connections' %}" > < i class = "fa fa-users" > < / i > {% trans "Social Accounts" %}< / a > < / li >
< li > < a href = "{% url 'account_logout' %}" > < i class = "fa fa-sign-out" > < / i > {% trans "Logout" %}< / a > < / li >
2015-01-17 21:42:13 +01:00
< / ul >
< / li >
2015-01-17 15:42:47 +01:00
{% else %}
2015-02-01 19:39:09 +01:00
< li > < a href = "{% url 'account_login' %}?next={{ request.path }}" > < i class = "fa fa-sign-in" > < / i > {% trans "Sign In" %}< / a > < / li >
< li > < a href = "{% url 'account_signup' %}" > < i class = "fa fa-user-plus" > < / i > {% trans "Sign Up" %}< / a > < / li >
2015-01-17 15:42:47 +01:00
{% endif %}
< / ul >
2015-01-17 22:05:47 +01:00
{% 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 %}
2014-05-18 00:07:32 +02:00
< / div > <!-- /.nav - collapse -->
< / div >
< / div >
< div class = "container" >
< h1 > {% block page_title %}Example Base Template{% endblock page_title %}< / h1 >
2015-01-17 17:50:59 +01:00
{% if messages %}
2015-01-31 13:12:51 +01:00
{% for message in messages %}
< div class = "alert alert-dismissible {{ message.tags }}" role = "alert" >
< button type = "close" class = "close" data-dismiss = "alert" aria-label = "{% trans " Close " % } " > < span aria-hidden = "true" > × < / span > < / button >
{{ message }}
< / div >
{% endfor %}
2015-01-17 17:50:59 +01:00
{% endif %}
2014-05-18 00:07:32 +02:00
{% 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 -->
2015-01-18 00:28:47 +01:00
< script src = "//code.jquery.com/jquery-latest.js" > < / script >
2014-05-18 00:07:32 +02:00
< 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 >