aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-02-19 18:19:27 +0000
committerPaul Eggleton <paul.eggleton@linux.intel.com>2013-02-20 11:20:11 +0000
commitea213c8007e1653070a635a241310ada2b61a870 (patch)
tree623f8acb20fdee15419690e1d181e9a09bd6fc42
parent9c7a328c5d68c4aaeac67dbcdd2df12d3784c52a (diff)
downloadopenembedded-core-contrib-ea213c8007e1653070a635a241310ada2b61a870.tar.gz
Add a basic about page
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
-rw-r--r--README3
-rw-r--r--TODO2
-rw-r--r--base.html4
-rw-r--r--layerindex/about.html17
-rw-r--r--layerindex/static/css/additional.css4
-rw-r--r--layerindex/urls.py1
-rw-r--r--layerindex/views.py3
7 files changed, 33 insertions, 1 deletions
diff --git a/README b/README
index 8e2907b0fd..6661a96253 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 63919c20aa..246dbd56e8 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 5ace14ff49..87d0605c52 100644
--- a/base.html
+++ b/base.html
@@ -65,6 +65,10 @@
<div id="footer">
{% block footer %}
<hr />
+ <div class="footer">
+ <a href="{% url about %}">about this site</a>
+ </div>
+
{% endblock %}
</div>
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