diff options
author | 2015-07-23 15:55:46 +0200 | |
---|---|---|
committer | 2015-07-23 15:55:46 +0200 | |
commit | 9a6e27cb6c11138eee1af77491d4ac3cd42b3afd (patch) | |
tree | 7e61beede0b55b854a7bd872e5c1a7ba381a5ea3 | |
parent | add keywords to version view (diff) | |
download | tinderbox-cluster-www-9a6e27cb6c11138eee1af77491d4ac3cd42b3afd.tar.gz tinderbox-cluster-www-9a6e27cb6c11138eee1af77491d4ac3cd42b3afd.tar.bz2 tinderbox-cluster-www-9a6e27cb6c11138eee1af77491d4ac3cd42b3afd.zip |
fix more rows for packages
-rw-r--r-- | python/templates/pages/packages/category/index.html | 40 | ||||
-rw-r--r-- | python/templates/pages/packages/ebuilds/index.html | 2 | ||||
-rw-r--r-- | 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 %} <div class="row"> - <div class="col-xs-12 col-md-6"> - <h2>Packages in {{ C.Category }}</h2> - <table class="table table-striped frontpage-table"> - {% for key, PM in PM_tmp.items %} - <tr> - <td class="frontpage-table-package-atom"> - <a href="/package/{{ PM.PackageId }}/" title="{{ C.Category }}/{{ key }}">{{ C.Category }}/{{ key }}</a> - <p title="{{ PM.Changlog }}">Changlog</p> - </td> - <td> - <p title="{{ PM.Descriptions }}">{{ PM.Descriptions }}</p> - <p title="{% for P in PM.Ebuilds %}{{ key }}/{{ P }}{% endfor %}">Versions</p> - </td> - </tr> - {% endfor %} -</table> - </div> + <h2>Packages in {{ C.Category }}</h2> + <div class="col-xs-12 col-md-5"> + {% for key, PM in PM_tmp.items %} + <table class="table table-striped frontpage-table"> + <tr> + <td class="frontpage-table-package-atom"> + <a href="/package/{{ PM.PackageId }}/" title="{{ C.Category }}/{{ key }}">{{ C.Category }}/{{ key }}</a> + <p title="{{ PM.Changlog }}">Changlog</p> + </td> + <td> + <p title="{{ PM.Descriptions }}">{{ PM.Descriptions }}</p> + <p title="{% for P in PM.Ebuilds %}{{ key }}/{{ P }}{% endfor %}">Versions</p> + </td> + </tr> + </table> + {% if forloop.last %} + </div> + {% else %} + {% if forloop.counter|divisibleby:"2" %} + </div><div class="col-xs-12 col-md-5"> + {% endif %} + {% endif %} + {% endfor %} </div> {% 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 @@ <td class="frontpage-table-package-atom"> <a href="/ebuild/{{ E.EbuildId.EbuildId }}/" title="{{ P.PackageId.CategoryId.Category }}/{{ P.PackageId.Package }}-{{ E.EbuildId.Version }}::{{ E.EbuildId.PackageId.RepoId.Repo }}">{{ P.PackageId.Package }}-{{ E.EbuildId.Version }}::{{ E.EbuildId.PackageId.RepoId.Repo }}</a></td> <td> - <td class="text-right"> {% for K in EK_tmp %} {% if K.EbuildId.EbuildId == E.EbuildId.EbuildId and K.KeywordId.Keyword != '*' %} {% if K.Status == 'Stable' %}<span class="label label-success">{{ K.KeywordId.Keyword }}</span>{% endif %} @@ -19,7 +18,6 @@ {% if K.Status == 'Negative' %}{{ K.KeywordId.Keyword }}{% endif %} {% endif %} {% endfor %} - </td> </td> </tr> {% 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 %} <div class="row"> - <div class="col-xs-12 col-md-6"> - <h2>Categories</h2> - <table class="table table-striped frontpage-table"> - {% for key, CM in CM_tmp.items %} - <tr> - <td class="frontpage-table-package-atom"> - <a href="/categories/{{ CM.CategoryId }}/" title="{{ key }}">{{ key }}</a></td> - <td> - <p title="{{ CM.Descriptions }}">{{ CM.Descriptions }}</p> - <p title="{% for P in CM.Packages %}{{ key }}/{{ P }}{% endfor %}">Packages</p> - </td> - </tr> - {% endfor %} -</table> - </div> +<h2>Categories</h2> + <div class="col-xs-8 col-md-4"> + {% for key, CM in CM_tmp.items %} + <table class="table table-striped frontpage-table"> + <tr> + <td class="frontpage-table-package-atom"> + <a href="/categories/{{ CM.CategoryId }}/" title="{{ key }}">{{ key }}</a> + </td> + <td> + <p title="{{ CM.Descriptions }}">{{ CM.Descriptions }}</p> + <p title="{% for P in CM.Packages %}{{ key }}/{{ P }}{% endfor %}">Packages</p> + </td> + </tr> + </table> + {% if forloop.last %} + </div> + {% else %} + {% if forloop.counter|divisibleby:"2" %} + </div><div class="col-xs-8 col-md-4"> + {% endif %} + {% endif %} + {% endfor %} </div> {% endblock %}
\ No newline at end of file |