plint

French poetry validator (local mirror of https://gitlab.com/a3nm/plint)
git clone https://a3nm.net/git/plint/
Log | Files | Refs | README

commit affdf53f9d9c4cc89e4572df61c0ff8f0393f7ad
parent c74ea2bf1b318719922e3b0a84bfcf7a0e788f1f
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sun, 15 Jul 2012 15:58:44 +0200

fix markup and layout of result page

Diffstat:
static/main.css | 1+
views/page.html | 2+-
views/results.html | 4++--
3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/static/main.css b/static/main.css @@ -98,6 +98,7 @@ h2.correct, h2.incorrect { font-family: "Bitstream Vera Sans", sans-serif; padding: 0.2em; text-align: center; + overflow: auto; } #dump { diff --git a/views/page.html b/views/page.html @@ -1,8 +1,8 @@ <!DOCTYPE html> <html dir="ltr" lang="en-US"> <head> - <title>{{ title }}</title> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> + <title>{{ title }}</title> {% if lang == 'fr' %} <meta name="description" content="vérificateur de poèmes plint" /> {% else %} diff --git a/views/results.html b/views/results.html @@ -16,13 +16,13 @@ {% if lang == 'fr' %} <h2 class="incorrect">Ce poème est invalide pour le modèle <span class="template">{{template}}</span>&nbsp;! - <p id="firsterror">{{nerror}} erreur{% if nerror != 1 %}s{%endif%} + <span id="firsterror">{{nerror}} erreur{% if nerror != 1 %}s{%endif%} trouvée{% if nerror != 1 %}s{%endif%} &mdash; <a href="#l{{firsterror}}">aller à la première erreur</a></p></h2> {% else %} <h2 class="incorrect">This poem is invalid for template <span class="template">{{template}}</span>! - <p id="firsterror">{{nerror}} error{% if nerror != 1 %}s{%endif%} found + <span id="firsterror">{{nerror}} error{% if nerror != 1 %}s{%endif%} found &mdash; <a href="#l{{firsterror}}">jump to first error</a></p></h2> {% endif %}