mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-05 05:04:46 +02:00
Add a basic about page
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
9c7a328c5d
commit
ea213c8007
3
README
3
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
|
||||
-----
|
||||
|
|
2
TODO
2
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
|
||||
|
|
|
@ -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
17
layerindex/about.html
Normal 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 %}
|
|
@ -48,4 +48,8 @@ bs-docs-example:after {
|
|||
margin: 15px 0;
|
||||
padding: 39px 19px 14px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.footer {
|
||||
text-align: center;
|
||||
}
|
|
@ -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"),
|
||||
)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user