aboutsummaryrefslogtreecommitdiffstats
path: root/templates/base_toplevel.html
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-07-18 09:28:25 +0100
committerPaul Eggleton <paul.eggleton@linux.intel.com>2013-09-05 00:31:23 +0100
commit1643aef67d828ff7ca47f63409f23852f8e75e83 (patch)
tree94383faa89834c8c90042fcc2718733bcb991991 /templates/base_toplevel.html
parent97361ae37ec6bc0491a419d6cd67435511a036be (diff)
downloadopenembedded-core-contrib-1643aef67d828ff7ca47f63409f23852f8e75e83.tar.gz
Navigation improvements
* Drop the front page - this just gets in the way. Redirect to the layers list instead. This has meant adding a touch more text to the about page and adding the FAQ link to the footer. * Use a separate navbar to hold the branch selector and the main top-level pages (Layers, Recipes, Machines) instead of tabs * All pages depending on a branch selection are now under branch/<branchname>/ so we don't need to have the branch selection on every page. * Use breadcrumbs on recipe detail and layer detail pages instead of tabs * Add title to recipe detail page Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'templates/base_toplevel.html')
-rw-r--r--templates/base_toplevel.html59
1 files changed, 59 insertions, 0 deletions
diff --git a/templates/base_toplevel.html b/templates/base_toplevel.html
new file mode 100644
index 0000000000..aad44cb676
--- /dev/null
+++ b/templates/base_toplevel.html
@@ -0,0 +1,59 @@
+{% extends "base.html" %}
+{% load i18n %}
+
+{% load url from future %}
+{% comment %}
+
+ layerindex-web - top level page template
+
+ Copyright (C) 2013 Intel Corporation
+ Licensed under the MIT license, see COPYING.MIT for details
+
+{% endcomment %}
+
+{% block content %}
+
+ <div class="container-fluid">
+ <div class="row-fluid">
+
+ <div class="navbar">
+ <div class="navbar-inner">
+ <ul class="nav">
+ {% block branch_selector %}
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">
+ Branch: <b>{{ url_branch }}</b>
+ <b class="caret"></b>
+ </a>
+ <ul class="dropdown-menu">
+ {% for branch in all_branches %}
+ <li><a href="{% url this_url_name branch.name %}">
+ {% if branch.name = url_branch %}<b>{% endif %}
+ {{ branch.name }}
+ {% if branch.short_description %}
+ ({{ branch.short_description }})
+ {% endif %}
+ {% if branch.name = url_branch %}</b>{% endif %}
+ </a></li>
+ {% endfor %}
+ {% if oe_classic %}
+ <li class="divider"></li>
+ <li><a href="{% url 'classic' %}">OE-Classic</a></li>
+ {% endif %}
+ </ul>
+ </li>
+ {% endblock %}
+ </ul>
+
+ <ul class="nav">
+ {% block navs %}{% endblock %}
+ </ul>
+ </div>
+ </div>
+
+ {% block content_inner %}{% endblock %}
+
+ </div>
+ </div>
+
+{% endblock %} \ No newline at end of file