drime

French rhyme dictionary with web and CLI interface
git clone https://a3nm.net/git/drime/
Log | Files | Refs | README

commit 35b859841a43fb31c9f36682d866eb0963ad5a78
parent eabac41e7f655d0309df3c7b09e075174524eab8
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Tue, 27 Dec 2011 17:09:39 +0100

fix localization and try to fix even odd

Diffstat:
static/style.css | 2+-
templates/results.html | 7+++----
2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/static/style.css b/static/style.css @@ -25,7 +25,7 @@ table.tablesorter tbody td { vertical-align: top; } table.tablesorter tbody tr.odd td { - background-color:#f3fff3; + background-color:#ddd; } table.tablesorter thead tr .headerSortUp { background-image: url(asc.gif); diff --git a/templates/results.html b/templates/results.html @@ -22,12 +22,11 @@ sur {% else %} of {% endif %} -of {{ count }} {% if lang == 'fr' %} -sur -{% else %} {% if count != 1 %}résultats totaux{% else %}résultat total{% endif %} +{% else %} +{% if count != 1 %}total results{% else %}total result{% endif %} {% endif %} {% endif %} {% if lang == 'fr' %} @@ -62,7 +61,7 @@ for: </thead> <tbody> {% for r in result %} -<tr class="{{ loop.cycle('odd', 'even') }}"> +<tr> <td>{{ r.word }}</td> <td>{{ r.phon }}</td> <td class="num">{{ r.phon_rhyme }}</td>