]> Frank Brehm's Git Trees - books.git/commitdiff
Buchliste erweitert
authorFrank Brehm <frank@brehm-online.com>
Sun, 13 Feb 2011 10:50:14 +0000 (10:50 +0000)
committerFrank Brehm <frank@brehm-online.com>
Sun, 13 Feb 2011 10:50:14 +0000 (10:50 +0000)
root/lib/site/styles.css
root/src/books/list.tt2

index 925f59af33b30732341804d401a882bbac543092..3a32cefd79c8fde2a9db6869739697f46987835d 100644 (file)
@@ -1,14 +1,16 @@
-[%#
+/* [%#
   ** Allgemeine Stylesheets
   **
+  ** vim: noai : filetype=css ts=4 fileencoding=utf-8 expandtab :
+  **
   ** $Id$
   ** $URL$
-  ** %]
+  ** -%]
 
-/* --- site/styles.css ----------------- */
+ --- site/styles.css ----------------- */
 
 html {
-    /* height:             100%; */
+    /* height:          100%; */
 }
 
 body {
@@ -47,7 +49,7 @@ A:focus {
 
 #header {
     background-color:   [% site.col.head %];
-    color:             [% site.col.head_text %];
+    color:              [% site.col.head_text %];
     margin:             0;
     padding:            5px;
 }
@@ -166,8 +168,17 @@ DIV#copyright {
     color:              [% site.col.error %];
 }
 
+SPAN.book_subtitle {
+    font-size:          0.8em;
+}
+
+SPAN.book_orgtitle {
+    font-size:          0.8em;
+    font-style:         italic;
+}
+
 DIV.error {
-    white-space:       pre;
+    white-space:        pre;
 }
 
 TABLE.menu {
@@ -195,14 +206,14 @@ TABLE.menu TD {
 TABLE.menu TD.empty {
     margin:             0;
     padding:            0;
-    border-style:      none;
+    border-style:       none;
 }
 
 TABLE.menu TD.empty_row {
     margin:             0;
     padding:            0;
-    border-style:      none;
-    height:            12px;
+    border-style:       none;
+    height:             12px;
 }
 
 TABLE.menu TD.button {
@@ -215,21 +226,20 @@ TABLE.menu TD.button {
 TABLE.menu TD.empty_button {
     background-color:   [% site.col.head %];
     border:             1px solid [% site.col.line %];
-    border-right-style:        none;
+    border-right-style: none;
     margin:             0;
     padding:            0;
-    width:             10px;
+    width:              10px;
 }
 
 TABLE.menu TD.vertical_row {
     background-color:   [% site.col.head %];
     border:             1px solid [% site.col.line %];
     margin:             0;
-    padding:           0;
-    width:             5px;
+    padding:            0;
+    width:              5px;
 }
 
-
 TABLE.menu TD.item {
     background-color:   [% site.col.statusbarbg %];
     border:             1px solid [% site.col.line %];
@@ -242,4 +252,3 @@ TABLE.menu TD.item {
 /* --- [% cssfile %] ----------------- */
   [% PROCESS $cssfile -%]
 [%- END %]
-
index 4c2db7b45e627d1595854a9a0aefc10c86f245a7..5ed0113c923d343c29c9ebdb83995320098ee098 100644 (file)
@@ -66,7 +66,7 @@
 [% rowstyle = 'even' %][%- FOREACH book IN books -%][% buch_id = book.id %]
   <tr>
     <td class="[% rowstyle %]">[% tt_authors = [ ]; tt_authors.push(autor) FOREACH autor = book.autoren %][% tt_authors.join(', ') %]</td>
-    <td class="[% rowstyle %]">[% book.title %]</td>
+    <td class="[% rowstyle %]">[% book.title %][% IF book.untertitel %]<br /><span class="book_subtitle">[% book.untertitel %]</span>[% END %][% IF book.title_original %]<br /><span class="book_orgtitle">("[% book.title_original %]")</span>[% END %]</td>
     <td class="[% rowstyle %]">[% tt_cat = [ ]; tt_cat.push(cat) FOREACH cat = book.kategorien %][% tt_cat.join(',<br />') %]</td>
     <td class="[% rowstyle %]">[% book.verlagsname_short %]</td>
     <td class="[% rowstyle %]">[% IF book.orts_id %][% book.ortsname %][% ELSE %]unbekannt[% END %]</td>