From 47754d1e743435f1183eb65e53cf996466b57a84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 1 Mar 2012 16:28:17 +0100 Subject: [PATCH] Better displaying of suggestions --- html/translate.html | 15 ++++++++------- media/css/style.css | 4 +++- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/html/translate.html b/html/translate.html index faca89e91..88f8de2fb 100644 --- a/html/translate.html +++ b/html/translate.html @@ -34,13 +34,11 @@
{{ form.fuzzy }} -{% trans "Location" %} -{% trans "Suggestions" %} - -{{ unit.get_location_links }} - {% with unit.suggestions as suggestions %} {% if suggestions %} + +{% trans "Suggestions" %} + {% for suggestion in suggestions %} @@ -53,10 +51,13 @@ {% endfor %}
{{ suggestion.target|fmttranslation }}
-{% else %} -{% trans "There are no suggestions for this string." %} + + {% endif %} {% endwith %} + +{% trans "Used in" %} +{{ unit.get_location_links }} {% trans "Flags" %} diff --git a/media/css/style.css b/media/css/style.css index 33442d862..c4c858b93 100644 --- a/media/css/style.css +++ b/media/css/style.css @@ -68,4 +68,6 @@ td.translator { td.translator textarea { width: 100% } - +td.suggestions table { + width: 100% +}