diff options
Diffstat (limited to 'templates/base.html')
-rw-r--r-- | templates/base.html | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..63a1e66 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,89 @@ +{% comment %} + + git-refinery-web - base template for output pages + + Copyright (C) 2014 Intel Corporation + Licensed under the MIT license, see COPYING.MIT for details + +{% endcomment %} + + +{% load i18n %} +{% load static %} +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + +<head> + <meta charset="utf-8"> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <link rel="stylesheet" href="{% static "css/bootstrap.css" %}" /> + <link rel="stylesheet" href="{% static "css/bootstrap-theme.css" %}" /> + <link rel="stylesheet" href="{% static "css/additional.css" %}" /> + <link rel="icon" type="image/vnd.microsoft.icon" href="{% static "img/favicon.ico" %}" /> + <title>{{ site_name }}{% block title_append %} - {% endblock %}</title> +</head> + +<body> + {% block header %} + {% autoescape on %} + <nav class="navbar navbar-default navbar-fixed-top"> + <div class="container-fluid"> + <div class="navbar-header"> + <a class="navbar-brand" href="{% url 'frontpage' %}">{{ site_name }}</a> + </div> + + <div class="navbar-collapse collapse"> + {% if user.is_authenticated %} + <div class="btn-group pull-right"> + <button class="btn btn-default navbar-btn dropdown-toggle" data-toggle="dropdown""> + <i class="glyphicon glyphicon-user"></i> + {{ user.username }} + <b class="caret"></b> + </button> + <ul class="dropdown-menu"> + <li><a href="{% url 'logout' %}">{% trans "Log out" %}</a></li> + <li><a href="{% url 'password_change' %}">{% trans "Change password" %}</a></li> + <li><a href="{% url 'admin:index' %}">{% trans "Admin" %}</a></li> + <li><a href="{% url 'profile' %}?return_to={{ request.path }}">{% trans "Edit profile" %}</a></li> + </ul> + </div> + {% else %} + <div class="pull-right"> + <a class="btn btn-default navbar-btn" href="{% url 'login' %}">{% trans "Log in" %}</a> + </div> + {% endif %} + </div> + </div> <!-- end of "container" --> + </nav> <!-- end of "navbar" --> + + {% endautoescape %} + {% endblock %} + + <div id="content" class="container top-padded"> + {% if messages %} + {% for message in messages %} + <div{% if message.tags %} class="alert {{ message.tags }}"{% endif %}><p style="white-space: pre-wrap">{{ message }}</p></div> + {% endfor %} + {% endif %} + {% block content %}{% endblock %} + </div> + + <div id="footer"> + {% block footer %} + <hr /> + <div class="footer"> + </div> + + {% endblock %} + </div> + + <script src="{% static "js/jquery-1.12.3.js" %}"></script> + <script src="{% static "js/bootstrap.js" %}"></script> + <script src="{% static "js/js.cookie.js" %}"></script> +{% block scripts %} +{% endblock %} + +</body> +</html> |