mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 12:49:01 +02:00

Change the data structure to support multiple branches. At the top level there is a set list of Branch objects, and then a LayerBranch object between each layer and the maintainers, dependencies, recipes and machines, so that the set of each can be different per branch. The branch is a session option, and can be selected via a drop-down that is shown for all pages. Additionally, with this change we avoid the need to run the update script within a build environment set up with oe-init-build-env - since we need a specific version of BitBake per branch we now use our own copy of BitBake which is fetched by the script itself. The update script will need to be called multiple times however - once per branch. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
102 lines
3.9 KiB
HTML
102 lines
3.9 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" %}" />
|
|
<link rel="icon" type="image/vnd.microsoft.icon" href="{% static "img/favicon.ico" %}" />
|
|
<title>{% block title %}OpenEmbedded metadata index{% endblock %}</title>
|
|
</head>
|
|
|
|
<body>
|
|
{% block header %}
|
|
{% autoescape on %}
|
|
<div class="navbar navbar-fixed-top">
|
|
<div class="navbar-inner">
|
|
<div class="container">
|
|
<a class="brand" href="{% url layer_list %}">OpenEmbedded metadata index</a>
|
|
|
|
<ul class="nav">
|
|
{% block branch_selector %}
|
|
<li class="dropdown">
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
|
Branch: <b>{{ current_branch }}</b>
|
|
<b class="caret"></b>
|
|
</a>
|
|
<ul class="dropdown-menu">
|
|
{% for branch in all_branches %}
|
|
{% if branch.name = current_branch %}
|
|
<li><a href="{% url switch_branch branch.name %}"><b>{{ branch.name }}</b></a></li>
|
|
{% else %}
|
|
<li><a href="{% url switch_branch branch.name %}">{{ branch.name }}</a></li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
</li>
|
|
{% endblock %}
|
|
</ul>
|
|
<ul class="nav pull-right">
|
|
{% block submitlink %}<li><a href="{% url submit_layer %}">Submit layer</a></li>{% endblock %}
|
|
{% if user.is_authenticated %}
|
|
{% if perms.layeritem.publish_layer %}
|
|
<li><a href="{% url layer_list_review %}">Review</a></li>
|
|
{% endif %}
|
|
<li class="divider-vertical"></li>
|
|
<li class="dropdown">
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
|
{{ user.username }}
|
|
<b class="caret"></b>
|
|
</a>
|
|
<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>
|
|
</ul>
|
|
</li>
|
|
{% else %}
|
|
<li>
|
|
<a href="{% url auth_login %}">{% trans "log in" %}</a>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
</div> <!-- end of "container" -->
|
|
</div> <!-- "end of "navbar-inner" -->
|
|
</div> <!-- end of "navbar" -->
|
|
{% endautoescape %}
|
|
{% endblock %}
|
|
|
|
<div id="content" class="container top-padded">
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
|
|
<div id="footer">
|
|
{% block footer %}
|
|
<hr />
|
|
<div class="footer">
|
|
<a href="{% url about %}">about this site</a>
|
|
</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>
|