diff --git a/src/colab/deprecated/templates/404.html b/src/colab/deprecated/templates/404.html deleted file mode 100644 index 2366d31..0000000 --- a/src/colab/deprecated/templates/404.html +++ /dev/null @@ -1,3 +0,0 @@ -{% load i18n %} - -

{% trans "Not found. Keep searching! :)" %}

diff --git a/src/colab/deprecated/templates/500.html b/src/colab/deprecated/templates/500.html deleted file mode 100644 index dbf7fb2..0000000 --- a/src/colab/deprecated/templates/500.html +++ /dev/null @@ -1,3 +0,0 @@ -{% load i18n %} - -

{% trans "Ooopz... something went wrong!" %}

diff --git a/src/colab/deprecated/templates/base.html b/src/colab/deprecated/templates/base.html deleted file mode 100644 index a190990..0000000 --- a/src/colab/deprecated/templates/base.html +++ /dev/null @@ -1,163 +0,0 @@ - -{% load i18n browserid conversejs gravatar %} - - - - - - - - - - - - - - - - - {% conversejs_static %} - - - {% block head_js %}{% endblock %} - {% block head_css %}{% endblock %} - - {% block google_analytics %} - - {% endblock %} - - - - - {% browserid_info %} -
-
- - - - {% block messages %} - {% for message in messages %} -
- - {{ message }} -
- {% endfor %} - - {% endblock %} - - {% block header %}{% endblock %} - -
- {% block main-content %} {% endblock %} -
- -
 
- -
- {% block footer %} -

-
-
-

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

- {% endblock %} -
- - {% conversejs_chatpanel %} - {% conversejs_initialize %} - - {% browserid_js %} - - diff --git a/src/colab/deprecated/templates/home.html b/src/colab/deprecated/templates/home.html deleted file mode 100644 index 4de0363..0000000 --- a/src/colab/deprecated/templates/home.html +++ /dev/null @@ -1,89 +0,0 @@ -{% extends "base.html" %} -{% load i18n %} - -{% block head_js %} - {% include "pizza-chart.html" with chart_div="collabs" chart_height=330 %} -{% endblock %} - -{% block header %} - - - -{% endblock %} - -{% block main-content %} - -
-
-

- {% trans "Latest Collaborations" %} -

- - - - - {% trans "View more collaborations..." %} - -
 
-
- - -
-

{% trans "Collaboration Graph" %}

-
-
-
- -
-
-

- {% trans "Most Relevant Threads" %} -

- - - - - {% trans "View more discussions..." %} - -
 
-
- -
-

- {% trans "Latest Threads" %} -

- - - - - {% trans "View more discussions..." %} - -
 
-
-
- -{% endblock %} diff --git a/src/colab/deprecated/templates/open-data.html b/src/colab/deprecated/templates/open-data.html deleted file mode 100644 index 3f20d6c..0000000 --- a/src/colab/deprecated/templates/open-data.html +++ /dev/null @@ -1,78 +0,0 @@ -{% extends "base.html" %} -{% load i18n %} - -{% block main-content %} -
-

{% trans "OpenData - Communities Interlegis" %}

-

{% blocktrans %}At this point the system Colab provides much of its data - through its search engine.{% endblocktrans %}

-

{% blocktrans %}If you are interested in integrating your system with the environment Colab - 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).{% endblocktrans %}

- -

{% trans "Performing searches via the API" %}

-

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

-

{% trans "The base URL used for the search is:" %} - http://colab.interlegis.leg.br/api/search/

- -

{% trans "Parameters:" %}

- -{% endblock %} diff --git a/src/colab/deprecated/templates/pizza-chart.html b/src/colab/deprecated/templates/pizza-chart.html deleted file mode 100644 index c4c406c..0000000 --- a/src/colab/deprecated/templates/pizza-chart.html +++ /dev/null @@ -1,55 +0,0 @@ -{% load i18n %} - - - - diff --git a/src/colab/deprecated/templates/search.html b/src/colab/deprecated/templates/search.html deleted file mode 100644 index 911a86f..0000000 --- a/src/colab/deprecated/templates/search.html +++ /dev/null @@ -1,73 +0,0 @@ -{% extends "base.html" %} -{% load i18n %} -{% load append_to_get %} -{% block main-content %} -
-
-

{% trans "Search" %}

-
- - {{ docs.numFound }} {% trans "documents found in" %} - {{ docs.QTime|floatformat:3 }} {% trans "seconds" %} - -
-
- -
-
-

{% trans "Filters" %}

- -

{% trans "Types" %}

- - -
- -
-
    - {% for doc in docs %} - {% include "message-preview.html" %} - {% empty %} -
  • - {% trans "No results for your search." %} -
  • - {% endfor %} -
- - {% if docs.numFound %} -
- - {% if docs.has_previous %} - {% trans "Previous" %} - {% endif %} - - - {% trans "Page" %} {{ docs.page_num }} {% trans "of" %} {{ docs.num_of_pages }} - - - {% if docs.has_next %} - {% trans "Next" %} - {% endif %} - -
-
- {% endif %} -
- -{% endblock %} diff --git a/src/templates/404.html b/src/templates/404.html new file mode 100644 index 0000000..2366d31 --- /dev/null +++ b/src/templates/404.html @@ -0,0 +1,3 @@ +{% load i18n %} + +

{% trans "Not found. Keep searching! :)" %}

diff --git a/src/templates/500.html b/src/templates/500.html new file mode 100644 index 0000000..dbf7fb2 --- /dev/null +++ b/src/templates/500.html @@ -0,0 +1,3 @@ +{% load i18n %} + +

{% trans "Ooopz... something went wrong!" %}

diff --git a/src/templates/base.html b/src/templates/base.html new file mode 100644 index 0000000..a190990 --- /dev/null +++ b/src/templates/base.html @@ -0,0 +1,163 @@ + +{% load i18n browserid conversejs gravatar %} + + + + + + + + + + + + + + + + + {% conversejs_static %} + + + {% block head_js %}{% endblock %} + {% block head_css %}{% endblock %} + + {% block google_analytics %} + + {% endblock %} + + + + + {% browserid_info %} +
+
+ + + + {% block messages %} + {% for message in messages %} +
+ + {{ message }} +
+ {% endfor %} + + {% endblock %} + + {% block header %}{% endblock %} + +
+ {% block main-content %} {% endblock %} +
+ +
 
+ +
+ {% block footer %} +

+
+
+

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

+ {% endblock %} +
+ + {% conversejs_chatpanel %} + {% conversejs_initialize %} + + {% browserid_js %} + + diff --git a/src/templates/home.html b/src/templates/home.html new file mode 100644 index 0000000..4de0363 --- /dev/null +++ b/src/templates/home.html @@ -0,0 +1,89 @@ +{% extends "base.html" %} +{% load i18n %} + +{% block head_js %} + {% include "pizza-chart.html" with chart_div="collabs" chart_height=330 %} +{% endblock %} + +{% block header %} + + + +{% endblock %} + +{% block main-content %} + +
+
+

+ {% trans "Latest Collaborations" %} +

+ + +
    + {% for doc in latest_docs %} + {% include "message-preview.html" %} + {% endfor %} +
+ + {% trans "View more collaborations..." %} + +
 
+
+ + +
+

{% trans "Collaboration Graph" %}

+
+
+
+ +
+
+

+ {% trans "Most Relevant Threads" %} +

+ + +
    + {% for thread in hottest_threads %} + {% include "message-preview.html" with doc=thread.latest_message %} + {% endfor %} +
+ + {% trans "View more discussions..." %} + +
 
+
+ +
+

+ {% trans "Latest Threads" %} +

+ + +
    + {% for thread in latest_threads %} + {% include "message-preview.html" with doc=thread.latest_message %} + {% endfor %} +
+ + {% trans "View more discussions..." %} + +
 
+
+
+ +{% endblock %} diff --git a/src/templates/open-data.html b/src/templates/open-data.html new file mode 100644 index 0000000..3f20d6c --- /dev/null +++ b/src/templates/open-data.html @@ -0,0 +1,78 @@ +{% extends "base.html" %} +{% load i18n %} + +{% block main-content %} +
+

{% trans "OpenData - Communities Interlegis" %}

+

{% blocktrans %}At this point the system Colab provides much of its data + through its search engine.{% endblocktrans %}

+

{% blocktrans %}If you are interested in integrating your system with the environment Colab + 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).{% endblocktrans %}

+ +

{% trans "Performing searches via the API" %}

+

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

+

{% trans "The base URL used for the search is:" %} + http://colab.interlegis.leg.br/api/search/

+ +

{% trans "Parameters:" %}

+ +{% endblock %} diff --git a/src/templates/pizza-chart.html b/src/templates/pizza-chart.html new file mode 100644 index 0000000..c4c406c --- /dev/null +++ b/src/templates/pizza-chart.html @@ -0,0 +1,55 @@ +{% load i18n %} + + + + diff --git a/src/templates/search.html b/src/templates/search.html new file mode 100644 index 0000000..911a86f --- /dev/null +++ b/src/templates/search.html @@ -0,0 +1,73 @@ +{% extends "base.html" %} +{% load i18n %} +{% load append_to_get %} +{% block main-content %} +
+
+

{% trans "Search" %}

+
+ + {{ docs.numFound }} {% trans "documents found in" %} + {{ docs.QTime|floatformat:3 }} {% trans "seconds" %} + +
+
+ +
+
+

{% trans "Filters" %}

+ +

{% trans "Types" %}

+ + +
+ +
+
    + {% for doc in docs %} + {% include "message-preview.html" %} + {% empty %} +
  • + {% trans "No results for your search." %} +
  • + {% endfor %} +
+ + {% if docs.numFound %} +
+ + {% if docs.has_previous %} + {% trans "Previous" %} + {% endif %} + + + {% trans "Page" %} {{ docs.page_num }} {% trans "of" %} {{ docs.num_of_pages }} + + + {% if docs.has_next %} + {% trans "Next" %} + {% endif %} + +
+
+ {% endif %} +
+ +{% endblock %} -- libgit2 0.21.2