From 9a6e27cb6c11138eee1af77491d4ac3cd42b3afd Mon Sep 17 00:00:00 2001 From: Magnus Granberg Date: Thu, 23 Jul 2015 15:55:46 +0200 Subject: fix more rows for packages --- .../templates/pages/packages/category/index.html | 40 +++++++++++++--------- python/templates/pages/packages/ebuilds/index.html | 2 -- python/templates/pages/packages/index.html | 37 ++++++++++++-------- 3 files changed, 45 insertions(+), 34 deletions(-) diff --git a/python/templates/pages/packages/category/index.html b/python/templates/pages/packages/category/index.html index 34c1426..edc7cc9 100644 --- a/python/templates/pages/packages/category/index.html +++ b/python/templates/pages/packages/category/index.html @@ -1,23 +1,29 @@ {% extends "layout/base.html" %} {% block content %}
-
-

Packages in {{ C.Category }}

- - {% for key, PM in PM_tmp.items %} - - - - - {% endfor %} -
- {{ C.Category }}/{{ key }} -

Changlog

-
-

{{ PM.Descriptions }}

-

Versions

-
-
+

Packages in {{ C.Category }}

+
+ {% for key, PM in PM_tmp.items %} + + + + + +
+ {{ C.Category }}/{{ key }} +

Changlog

+
+

{{ PM.Descriptions }}

+

Versions

+
+ {% if forloop.last %} +
+ {% else %} + {% if forloop.counter|divisibleby:"2" %} +
+ {% endif %} + {% endif %} + {% endfor %}
{% endblock %} \ No newline at end of file diff --git a/python/templates/pages/packages/ebuilds/index.html b/python/templates/pages/packages/ebuilds/index.html index 1e034d4..f8e1b4e 100644 --- a/python/templates/pages/packages/ebuilds/index.html +++ b/python/templates/pages/packages/ebuilds/index.html @@ -11,7 +11,6 @@ {{ P.PackageId.Package }}-{{ E.EbuildId.Version }}::{{ E.EbuildId.PackageId.RepoId.Repo }} - {% for K in EK_tmp %} {% if K.EbuildId.EbuildId == E.EbuildId.EbuildId and K.KeywordId.Keyword != '*' %} {% if K.Status == 'Stable' %}{{ K.KeywordId.Keyword }}{% endif %} @@ -19,7 +18,6 @@ {% if K.Status == 'Negative' %}{{ K.KeywordId.Keyword }}{% endif %} {% endif %} {% endfor %} - {% endfor %} diff --git a/python/templates/pages/packages/index.html b/python/templates/pages/packages/index.html index 82ccf59..5e02552 100644 --- a/python/templates/pages/packages/index.html +++ b/python/templates/pages/packages/index.html @@ -1,21 +1,28 @@ {% extends "layout/base.html" %} {% block content %}
-
-

Categories

- - {% for key, CM in CM_tmp.items %} - - - - - {% endfor %} -
- {{ key }} -

{{ CM.Descriptions }}

-

Packages

-
-
+

Categories

+
+ {% for key, CM in CM_tmp.items %} + + + + + +
+ {{ key }} + +

{{ CM.Descriptions }}

+

Packages

+
+ {% if forloop.last %} +
+ {% else %} + {% if forloop.counter|divisibleby:"2" %} +
+ {% endif %} + {% endif %} + {% endfor %}
{% endblock %} \ No newline at end of file -- cgit v1.2.3-65-gdbad