From 11df274e2bc5b757ab10fa4c55d39de376318ae5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= Date: Fri, 9 Jan 2015 09:49:22 -0600 Subject: [PATCH] rrs: Add about page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- rrs/urls.py | 18 +++++++++++- templates/base.html | 7 ++++- templates/rrs/about.html | 59 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 82 insertions(+), 2 deletions(-) create mode 100644 templates/rrs/about.html diff --git a/rrs/urls.py b/rrs/urls.py index c474c7c..a1389b4 100644 --- a/rrs/urls.py +++ b/rrs/urls.py @@ -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"), ) diff --git a/templates/base.html b/templates/base.html index c872383..63456d1 100644 --- a/templates/base.html +++ b/templates/base.html @@ -59,6 +59,7 @@
  • {% block topfunctions %} + {% if application == 'layerindex' %} @@ -76,6 +77,7 @@ {% endif %} + {% endif %} {% endblock %} @@ -96,11 +98,14 @@ {% block footer %}
    - {% endblock %} diff --git a/templates/rrs/about.html b/templates/rrs/about.html new file mode 100644 index 0000000..0120425 --- /dev/null +++ b/templates/rrs/about.html @@ -0,0 +1,59 @@ +{% extends "base.html" %} +{% load i18n %} + +{% block content %} +{% autoescape on %} +

    About

    + +

    The Recipe Reporting System is the main tool for tracking the recipe versions +available for +Yocto Project. 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 OpenEmbedded Metadata Index, +a website that indexes layers for the +OpenEmbedded build system.

    + +

    Technologies

    +

    The Recipe Reporting System uses the following technologies and components:

    + + +

    Credits

    + +

    The Recipe Reporting System is maintained by the Yocto Project.

    +

    Some of the contributors are:

    + + +

    Special mention is due to Paul Eggleton, who is the author of the +OpenEmbedded Metadata Index, +on which the Recipe Reporting System is based.

    + +

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

    + +{% endautoescape %} +{% endblock %} + +{% block footer %} +{% endblock %}