Add a basic about page

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2013-02-19 18:19:27 +00:00
parent 9c7a328c5d
commit ea213c8007
7 changed files with 33 additions and 1 deletions

3
README
View File

@ -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
-----

2
TODO
View File

@ -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

View File

@ -65,6 +65,10 @@
<div id="footer">
{% block footer %}
<hr />
<div class="footer">
<a href="{% url about %}">about this site</a>
</div>
{% endblock %}
</div>

17
layerindex/about.html Normal file
View File

@ -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 %}

View File

@ -49,3 +49,7 @@ bs-docs-example:after {
padding: 39px 19px 14px;
position: relative;
}
.footer {
text-align: center;
}

View File

@ -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"),
)

View File

@ -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