diff --git a/README b/README index 8e2907b..6661a96 100644 --- a/README +++ b/README @@ -50,6 +50,9 @@ Setup instructions: should only be used for testing - for production you need to use a proper web server. +4. You may wish to customise layerindex/about.html to suit your + installation. + Usage ----- diff --git a/TODO b/TODO index 63919c2..246dbd5 100644 --- a/TODO +++ b/TODO @@ -6,7 +6,6 @@ TODO: - we might consider adding a link to the all layers and all recipes tables from the layer details page -* Need an "About" section descriptibing what the site is for * Need an admin contact in footer * Some columns are a bit crushed * Description is not formatted nicely on detail page @@ -15,6 +14,7 @@ TODO: * Last update date * Usage links in list page? * Layer submission interface design +* Style/extend about page * Recipe info page * Captcha for layer submission interface? * Touch up publishing interface diff --git a/base.html b/base.html index 5ace14f..87d0605 100644 --- a/base.html +++ b/base.html @@ -65,6 +65,10 @@ diff --git a/layerindex/about.html b/layerindex/about.html new file mode 100644 index 0000000..3ecee75 --- /dev/null +++ b/layerindex/about.html @@ -0,0 +1,17 @@ +{% extends "base.html" %} +{% load i18n %} + + + +{% block content %} +

This website indexes layers for the OpenEmbedded 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.

+ +

If you have a layer for use with OpenEmbedded that you wish to share with others, please submit it!

+ +

The code is Open Source and can be found on git.yoctoproject.org.

+{% endblock %} + +{% block footer %} +{% endblock %} diff --git a/layerindex/static/css/additional.css b/layerindex/static/css/additional.css index 7071418..10c870e 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 e05e23b..c1b06b4 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 da0d2b6..88e38f3 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