From 711f9da1b523e48f35ef887b40b48e8062491f5c Mon Sep 17 00:00:00 2001 From: Luan Date: Wed, 18 Dec 2013 15:13:16 -0200 Subject: [PATCH] Adding open-data page --- src/colab/urls.py | 2 ++ src/templates/base.html | 19 ++++++++++--------- src/templates/open-data.html | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 70 insertions(+), 9 deletions(-) create mode 100644 src/templates/open-data.html diff --git a/src/colab/urls.py b/src/colab/urls.py index 69829d1..dd894d3 100644 --- a/src/colab/urls.py +++ b/src/colab/urls.py @@ -12,6 +12,8 @@ admin.autodiscover() urlpatterns = patterns('', url(r'^$', 'home.views.index', name='home'), + url(r'open-data/$', TemplateView.as_view(template_name='open-data.html'), + name='opendata'), url(r'^search/', include('search.urls')), url(r'^archives/', include('super_archives.urls')), diff --git a/src/templates/base.html b/src/templates/base.html index e3d7046..063c549 100644 --- a/src/templates/base.html +++ b/src/templates/base.html @@ -164,16 +164,17 @@
 
{% block footer %} -

{% trans "Last email imported at" %} {{ last_imported_message.received_time|date:'DATETIME_FORMAT' }}

-
-
-

- {% trans "The contents of this site is published under license" %} - - {% trans "Creative Commons - attribution, non-commercial" %} - -

+

+ +

+

{% trans "Last email imported at" %} {{ last_imported_message.received_time|date:'DATETIME_FORMAT' }}

+

+ {% trans "The contents of this site is published under license" %} + + {% trans "Creative Commons - attribution, non-commercial" %} + +

{% endblock %} diff --git a/src/templates/open-data.html b/src/templates/open-data.html new file mode 100644 index 0000000..27d413b --- /dev/null +++ b/src/templates/open-data.html @@ -0,0 +1,58 @@ +{% extends "base.html" %} +{% load i18n %} + +{% block main-content %} +
+

{% trans "OpenData - Communities Interlegis" %}

+

{% trans "If you are interested in integrating your system with the Colab environment and requires no other data provided by this API, please contact us via the ticketing system (you must be registered in order to create a ticket)." %}

+ +

{% trans "Retrieving data via API" %}

+

{% trans "Colab API works through an HTTP/REST always returning JSON objects." %}

+

+ {% trans "The base API URL is" %}: + {% with "/api/colab/" as BASE_API_URL %} + http://colab.interlegis.leg.br{{ BASE_API_URL }} +

+ + + +
+{% endblock %} -- libgit2 0.21.2