mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
130 lines
5.2 KiB
HTML
130 lines
5.2 KiB
HTML
{% comment %}
|
|
|
|
layerindex-web - base template for output pages
|
|
|
|
Copyright (C) 2013 Intel Corporation
|
|
Licensed under the MIT license, see COPYING.MIT for details
|
|
|
|
{% endcomment %}
|
|
|
|
|
|
{% load i18n %}
|
|
{% load staticfiles %}
|
|
<!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>
|
|
<link rel="stylesheet" href="{% static "css/bootstrap.css" %}" />
|
|
<link rel="stylesheet" href="{% static "css/bootstrap-responsive.css" %}" />
|
|
<link rel="stylesheet" href="{% static "css/additional.css" %}" />
|
|
{% if application == 'layerindex' %}
|
|
<link rel="icon" type="image/vnd.microsoft.icon" href="{% static "img/favicon.ico" %}" />
|
|
{% else %}
|
|
<link rel="icon" type="image/vnd.microsoft.icon" href="{% static "img/yct-favicon.ico" %}" />
|
|
{% endif %}
|
|
<title>{{ site_name }}{% block title_append %} - {% endblock %}</title>
|
|
</head>
|
|
|
|
<body>
|
|
{% block header %}
|
|
{% autoescape on %}
|
|
<div class="navbar navbar-fixed-top">
|
|
<div class="navbar-inner">
|
|
<div class="container-fluid">
|
|
<a class="brand" href="{% url frontpage %}">{{ site_name }}</a>
|
|
|
|
{% if user.is_authenticated %}
|
|
<div class="btn-group pull-right">
|
|
{% if perms.layerindex.publish_layer %}
|
|
{% if unpublished_count > 0 %}
|
|
<a class="btn" href="{% url layer_list_review %}?branch=master">
|
|
<span class="badge badge-warning review-notification">{{ unpublished_count }}</span>
|
|
</a>
|
|
{% endif %}
|
|
{% endif %}
|
|
<button class="btn dropdown-toggle" data-toggle="dropdown"">
|
|
<i class="icon-user"></i>
|
|
{{ user.username }}
|
|
<b class="caret"></b>
|
|
</button>
|
|
<ul class="dropdown-menu">
|
|
<li><a href="{% url auth_logout %}">{% trans "Log out" %}</a></li>
|
|
<li><a href="{% url auth_password_change %}">{% trans "Change password" %}</a></li>
|
|
<li><a href="{% url profile %}">{% trans "Edit profile" %}</a></li>
|
|
</ul>
|
|
</div>
|
|
{% else %}
|
|
{% if application == 'layerindex' %}
|
|
<div class="pull-right">
|
|
<a class="btn" href="{% url auth_login %}">{% trans "Log in" %}</a>
|
|
</div>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if application == 'layerindex' %}
|
|
<ul class="nav pull-right">
|
|
<li class="divider-vertical"></li>
|
|
</ul>
|
|
{% endif %}
|
|
{% block topfunctions %}
|
|
<div class="pull-right nav-spacer">
|
|
<a class="btn btn-info" href="{% url submit_layer %}">Submit layer</a>
|
|
</div>
|
|
<ul class="nav pull-right">
|
|
{% if user.is_authenticated %}
|
|
<li class="dropdown">
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
|
Tools
|
|
<b class="caret"></b>
|
|
</a>
|
|
<ul class="dropdown-menu">
|
|
<li><a href="{% url bulk_change %}">Bulk Change</a></li>
|
|
<li><a href="{% url duplicates 'master' %}">Duplicates</a></li>
|
|
</ul>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
{% endblock %}
|
|
</div> <!-- end of "container" -->
|
|
</div> <!-- "end of "navbar-inner" -->
|
|
</div> <!-- end of "navbar" -->
|
|
{% endautoescape %}
|
|
{% endblock %}
|
|
|
|
{% if application == 'layerindex' %}
|
|
<div id="content" class="container top-padded">
|
|
{% else %}
|
|
<div id="content" class="container-fluid top-padded">
|
|
{% endif %}
|
|
{% if messages %}
|
|
{% for message in messages %}
|
|
<div{% if message.tags %} class="alert {{ message.tags }}"{% endif %}>{{ message }}</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
|
|
<div id="footer">
|
|
{% block footer %}
|
|
<hr />
|
|
<div class="footer">
|
|
{% if application == 'layerindex' %}
|
|
<a href="{% url history_list %}">change history</a>
|
|
• <a href="{% url about %}">about this site</a>
|
|
• <a href="http://www.openembedded.org/Layers_FAQ">FAQ</a>
|
|
{% else %}
|
|
<a href="{% url about %}">About the Recipe Reporting System</a>
|
|
• <a href="https://www.yoctoproject.org/about">About the Yocto Project</a>
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %}
|
|
</div>
|
|
|
|
<script src="{% static "js/jquery-1.7.2.js" %}"></script>
|
|
<script src="{% static "js/bootstrap.js" %}"></script>
|
|
{% block scripts %}
|
|
{% endblock %}
|
|
|
|
</body>
|
|
</html>
|