diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-02-19 18:19:27 +0000 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-02-20 11:20:11 +0000 |
commit | ea213c8007e1653070a635a241310ada2b61a870 (patch) | |
tree | 623f8acb20fdee15419690e1d181e9a09bd6fc42 /layerindex | |
parent | 9c7a328c5d68c4aaeac67dbcdd2df12d3784c52a (diff) | |
download | openembedded-core-contrib-ea213c8007e1653070a635a241310ada2b61a870.tar.gz |
Add a basic about page
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'layerindex')
-rw-r--r-- | layerindex/about.html | 17 | ||||
-rw-r--r-- | layerindex/static/css/additional.css | 4 | ||||
-rw-r--r-- | layerindex/urls.py | 1 | ||||
-rw-r--r-- | layerindex/views.py | 3 |
4 files changed, 25 insertions, 0 deletions
diff --git a/layerindex/about.html b/layerindex/about.html new file mode 100644 index 0000000000..3ecee75b7b --- /dev/null +++ b/layerindex/about.html @@ -0,0 +1,17 @@ +{% extends "base.html" %} +{% load i18n %} + +<!-- +{% block title %}OpenEmbedded metadata index - About{% endblock %} +--> + +{% block content %} +<p>This website indexes layers for the <a href="http://www.openembedded.org">OpenEmbedded</a> build system, suitable for use on top of OpenEmbedded-Core and distributions based upon it, providing additional recipes, machine support and/or distro policy configuration.</p> + +<p>If you have a layer for use with OpenEmbedded that you wish to share with others, please <a href="{% url submit_layer %}">submit it</a>!</p> + +<p>The code is Open Source and can be found on <a href="http://git.yoctoproject.org/cgit/cgit.cgi/layerindex-web/">git.yoctoproject.org</a>.</p> +{% endblock %} + +{% block footer %} +{% endblock %} diff --git a/layerindex/static/css/additional.css b/layerindex/static/css/additional.css index 7071418d59..10c870e1b5 100644 --- a/layerindex/static/css/additional.css +++ b/layerindex/static/css/additional.css @@ -48,4 +48,8 @@ bs-docs-example:after { margin: 15px 0; padding: 39px 19px 14px; position: relative; +} + +.footer { + text-align: center; }
\ No newline at end of file diff --git a/layerindex/urls.py b/layerindex/urls.py index e05e23b9e3..c1b06b4c5a 100644 --- a/layerindex/urls.py +++ b/layerindex/urls.py @@ -44,4 +44,5 @@ urlpatterns = patterns('', context_object_name='recipe_list', template_name='layerindex/rawrecipes.txt'), name='recipe_list_raw'), + url(r'^about$', 'layerindex.views.about', name="about"), ) diff --git a/layerindex/views.py b/layerindex/views.py index da0d2b6778..88e38f382d 100644 --- a/layerindex/views.py +++ b/layerindex/views.py @@ -71,6 +71,9 @@ def submit_layer(request): def submit_layer_thanks(request): return render(request, 'layerindex/submitthanks.html') +def about(request): + return render(request, 'layerindex/about.html') + def publish(request, name): if not (request.user.is_authenticated() and request.user.has_perm('layerindex.publish_layer')): raise PermissionDenied |