rrs: Add about page

templates/base.html: Discard bulk change and submit layer when app is
rrs.

templates/rrs/about.html: Add about page that extends of base.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
This commit is contained in:
Aníbal Limón 2015-01-09 09:49:22 -06:00
parent 454c2620b9
commit 11df274e2b
3 changed files with 82 additions and 2 deletions

View File

@ -1,4 +1,20 @@
from django.conf.urls import patterns, include, url
from django.views.generic import TemplateView
from django.views.generic.simple import redirect_to
from django.core.urlresolvers import reverse_lazy
from django.conf.urls import patterns, url
from layerindex.views import EditProfileFormView
urlpatterns = patterns('',
url(r'^$', redirect_to, {'url' : reverse_lazy('about', args=())},
name='frontpage'),
url(r'^profile/$',
EditProfileFormView.as_view(
template_name='layerindex/profile.html'),
name="profile"),
url(r'^about/$',
TemplateView.as_view(
template_name='rrs/about.html'),
name="about"),
)

View File

@ -59,6 +59,7 @@
<li class="divider-vertical"></li>
</ul>
{% block topfunctions %}
{% if application == 'layerindex' %}
<div class="pull-right nav-spacer">
<a class="btn btn-info" href="{% url submit_layer %}">Submit layer</a>
</div>
@ -76,6 +77,7 @@
</li>
{% endif %}
</ul>
{% endif %}
{% endblock %}
</div> <!-- end of "container" -->
</div> <!-- "end of "navbar-inner" -->
@ -96,11 +98,14 @@
{% block footer %}
<hr />
<div class="footer">
{% if application == 'layerindex' %}
<a href="{% url history_list %}">change history</a>
&bull; <a href="{% url about %}">about this site</a>
&bull; <a href="http://www.openembedded.org/Layers_FAQ">FAQ</a>
{% else %}
<a href="{% url about %}">about this site</a>
{% endif %}
</div>
{% endblock %}
</div>

59
templates/rrs/about.html Normal file
View File

@ -0,0 +1,59 @@
{% extends "base.html" %}
{% load i18n %}
{% block content %}
{% autoescape on %}
<h2>About</h2>
<p>The Recipe Reporting System is the main tool for tracking the recipe versions
available for
<a href="https://www.yoctoproject.org">Yocto Project</a>. Its main
purpose is to help developers manage the recipes they maintain and to
offer a dynamic overview of the project. It is build on top the
of <a href="http://layers.openembedded.org">OpenEmbedded Metadata Index</a>,
a website that indexes layers for the <a href="http://openembedded.org">
OpenEmbedded</a> build system.</p>
<h3>Technologies</h3>
<p>The Recipe Reporting System uses the following technologies and components:</p>
<ul>
<li><a href="http://www.python.org/">Python</a></li>
<li><a href="http://www.djangoproject.com/">Django</a> as well as the following Django modules:
<ul>
<li><a href="http://bitbucket.org/ubernostrum/django-registration/">django-registration</a></li>
<li><a href="http://github.com/etianen/django-reversion">django-reversion</a></li>
<li><a href="http://pypi.python.org/pypi/django-reversion-compare/">django-reversion-compare</a></li>
<li><a href="http://github.com/mbi/django-simple-captcha">django-simple-captcha</a></li>
<li><a href="http://github.com/areski/django-nvd3">django-nvd3</a></li>
</ul>
</li>
<li><a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap</a></li>
<li><a href="http://glyphicons.com/">Glyphicons</a> (via Bootstrap)</li>
<li><a href="http://jquery.com/">jQuery</a> (via Bootstrap)</li>
<li><a href="http://nvd3.org/">NVD3</a></li>
<li><a href="http://www.openembedded.org/wiki/BitBake_%28user%29">BitBake</a></li>
</ul>
<h3>Credits</h3>
<p>The Recipe Reporting System is maintained by the <a href="http://www.yoctoproject.org">Yocto Project</a>.</p>
<p>Some of the contributors are:</p>
<ul>
<li>Marius Avram</li>
<li>Saul Wold</li>
<li>Aníbal Limón</li>
<li>Belen Barros Pena</li>
<li>Michael Halstead</li>
</ul>
<p>Special mention is due to Paul Eggleton, who is the author of the
<a href="http://layers.openembedded.org">OpenEmbedded Metadata Index</a>,
on which the Recipe Reporting System is based.</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>. Patches welcome!</p>
{% endautoescape %}
{% endblock %}
{% block footer %}
{% endblock %}