diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-03-06 18:31:49 +0000 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-03-06 20:13:49 +0000 |
commit | 4faeab65950250a178769e4a01c5c90a56106d10 (patch) | |
tree | 318576a94638bb006649836400d8412fb9c4352e /templates | |
parent | a643aeba33d784ab7494a086dde05a8b254a43f8 (diff) | |
download | openembedded-core-contrib-4faeab65950250a178769e4a01c5c90a56106d10.tar.gz |
Add introductory front page
Give the user a friendly introduction instead of plunging them straight
into the layers list. (Of course if people want to link directly to the
layers list they still can.)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/404.html | 4 | ||||
-rw-r--r-- | templates/base.html | 2 | ||||
-rw-r--r-- | templates/layerindex/frontpage.html | 59 | ||||
-rw-r--r-- | templates/layerindex/layers.html (renamed from templates/layerindex/index.html) | 0 |
4 files changed, 63 insertions, 2 deletions
diff --git a/templates/404.html b/templates/404.html index 90ee64cea7..843d5bc42e 100644 --- a/templates/404.html +++ b/templates/404.html @@ -18,9 +18,11 @@ {% block content %} {% autoescape on %} +<h1>Page not found</h1> + <p>The page you requested was not found.</p> -<p><a href="{% url layer_list %}">Return to the index</a></p> +<p><a href="{% url frontpage %}">Return to the front page</a></p> {% endautoescape %} {% endblock %} diff --git a/templates/base.html b/templates/base.html index 846a5c84fc..8954b43615 100644 --- a/templates/base.html +++ b/templates/base.html @@ -28,7 +28,7 @@ <div class="navbar navbar-fixed-top"> <div class="navbar-inner"> <div class="container"> - <a class="brand" href="{% url layer_list %}">OpenEmbedded metadata index</a> + <a class="brand" href="{% url frontpage %}">OpenEmbedded metadata index</a> <ul class="nav"> {% block branch_selector %} diff --git a/templates/layerindex/frontpage.html b/templates/layerindex/frontpage.html new file mode 100644 index 0000000000..2911abcbc3 --- /dev/null +++ b/templates/layerindex/frontpage.html @@ -0,0 +1,59 @@ +{% extends "base.html" %} +{% load i18n %} +{% load static %} + +{% comment %} + + layerindex-web - front page template + + Copyright (C) 2013 Intel Corporation + Licensed under the MIT license, see COPYING.MIT for details + +{% endcomment %} + + +<!-- +{% block title_append %}{% endblock %} +--> + +{% block content %} +{% autoescape on %} + +<div class="hero-unit hero-evenlyspaced"> + <h1>Welcome!</h1> + <p>Welcome to the OpenEmbedded metadata index. Here you can find metadata (layers, recipes and machines) + provided by members of the OpenEmbedded / Yocto Project community for use on top of OpenEmbedded-Core + and compatible systems.</p> +</div> +<div class="row"> + <div class="span8"> + <div class="well well-frontpage"> + <h2>Finding what you need</h2> + <p>You can browse or search by layer, by recipe or by machine.</p> + <div class="frontpage-button-group"> + <a href="{% url layer_list %}" class="btn btn-large btn-primary">Layers</a> + <a href="{% url recipe_search %}" class="btn btn-large btn-primary">Recipes</a> + <a href="{% url machine_search %}" class="btn btn-large btn-primary">Machines</a> + </div> + <p><small>Note that you are currently viewing + {% if current_branch = 'master' %} + the <span class="branch">master</span> branch - the latest development version of the code. + {% else %} + the <span class="branch">{{ current_branch }}</span> branch. + {% endif %} + You can change between master and release branches at any time using the branch selector on the bar at the top of the page.</small></p> + </div> + </div> + <div class="span4"> + <div class="well well-frontpage"> + <h2>Questions?</h2> + <p>Got some questions about layers or this website? See the <a href="http://www.openembedded.org/Layers_FAQ">FAQ</a>.</p> + </div> + </div> +</div> + +{% endautoescape %} + +{% endblock %} + + diff --git a/templates/layerindex/index.html b/templates/layerindex/layers.html index a593a6d4fa..a593a6d4fa 100644 --- a/templates/layerindex/index.html +++ b/templates/layerindex/layers.html |