From 56cde931d184d61118503fe2e158c39c90c4fd69 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20St=C4=99pniowski?= Date: Wed, 10 Sep 2008 15:03:43 +0200 Subject: [PATCH] Columnized tag lists in templates. --- wolnelektury/media/css/master.css | 32 +++++---- .../templates/catalogue/book_detail.html | 70 ++++++++++--------- .../catalogue/tagged_object_list.html | 17 ++--- 3 files changed, 62 insertions(+), 57 deletions(-) diff --git a/wolnelektury/media/css/master.css b/wolnelektury/media/css/master.css index b86875aa0..4470b6cb3 100644 --- a/wolnelektury/media/css/master.css +++ b/wolnelektury/media/css/master.css @@ -174,7 +174,7 @@ em { margin-right: 29em; } -#main-page #themes-list ul, #main-page #categories-list ul { +#categories-list ul, #themes-list ul { -moz-column-width: 12em; -webkit-column-width: 12em; column-width: 12em; @@ -191,10 +191,27 @@ em { border-right: 0.15em solid #E3D888; } -#books #tags-list, #book-detail #tags-list { +#tagged-object-list #tags-list, #book-detail #tags-list { margin-left: 39em; } +#book-info, #categories-list { + float: left; + width: 47.5%; +} + +#themes-list { + margin-left: 52.5%; +} + +#tagged-object-list #categories-list, #book-detail #book-info { + width: 12em; +} + +#tagged-object-list #themes-list, #book-detail #themes-list { + margin-left: 14em; +} + #tags-list ol, #tags-list ul { padding: 0; margin: 0.3em 0 1.2em 0; @@ -206,15 +223,6 @@ em { margin: 0; } -#main-page #categories-list { - float: left; - width: 47.5%; -} - -#main-page #themes-list { - margin-left: 52.5%; -} - #books-list { width: 38em; float: left; @@ -243,7 +251,7 @@ em { text-align: justify; } -#toggle-description, #books .pagination { +#toggle-description, #tagged-object-list .pagination { width: 100%; height: 1.5em; background-color: #EEE; diff --git a/wolnelektury/templates/catalogue/book_detail.html b/wolnelektury/templates/catalogue/book_detail.html index ff9278030..332dd337e 100644 --- a/wolnelektury/templates/catalogue/book_detail.html +++ b/wolnelektury/templates/catalogue/book_detail.html @@ -68,40 +68,44 @@
-

O utworze

- - {% if categories.theme %} -

Motywy w utworze

+
+

O utworze

    - {% for theme in categories.theme %} -
  • {{ theme }}
  • - {% endfor %} +
  • + Autor: + {% for tag in categories.author %} + {{ tag }} + {% endfor %} +
  • +
  • + Epoka: + {% for tag in categories.epoch %} + {{ tag }} + {% endfor %} +
  • +
  • + Rodzaj: + {% for tag in categories.kind %} + {{ tag }} + {% endfor %} +
  • +
  • + Gatunek: + {% for tag in categories.genre %} + {{ tag }} + {% endfor %} +
- {% endif %} +
+
+ {% if categories.theme %} +

Motywy w utworze

+
    + {% for theme in categories.theme %} +
  • {{ theme }}
  • + {% endfor %} +
+ {% endif %} +
{% endblock %} \ No newline at end of file diff --git a/wolnelektury/templates/catalogue/tagged_object_list.html b/wolnelektury/templates/catalogue/tagged_object_list.html index cc902c739..b842cb44a 100644 --- a/wolnelektury/templates/catalogue/tagged_object_list.html +++ b/wolnelektury/templates/catalogue/tagged_object_list.html @@ -3,7 +3,7 @@ {% block title %}{% title_from_tags tags %} w WolneLektury.pl{% endblock %} -{% block bodyid %}books{% endblock %} +{% block bodyid %}tagged-object-list{% endblock %} {% block extrahead %}