From 26b84b3a73641f200411ec10bff615f79d1c26a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= Date: Mon, 26 Jan 2015 18:04:29 -0600 Subject: [PATCH] rrs: Recipes page improve table display MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Improve CSS in order to handle column width better also use styles to display upstream status column. Signed-off-by: Aníbal Limón --- rrs/static/css/rrs-additional.css | 8 +++++++- templates/rrs/recipes.html | 24 ++++++++++++++++-------- 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/rrs/static/css/rrs-additional.css b/rrs/static/css/rrs-additional.css index 728024f..faa112e 100644 --- a/rrs/static/css/rrs-additional.css +++ b/rrs/static/css/rrs-additional.css @@ -1,10 +1,16 @@ +.recipe_column { + max-width: 150px; + word-wrap: break-word; +} + .version_column { max-width: 150px; word-wrap: break-word; } .upstream_version_column { - min-width: 130px; + max-width: 150px; + word-wrap: break-word; } .upstream_status_column { diff --git a/templates/rrs/recipes.html b/templates/rrs/recipes.html index a236ba1..c935249 100644 --- a/templates/rrs/recipes.html +++ b/templates/rrs/recipes.html @@ -79,21 +79,29 @@ Recipe Version - Upstream status + Upstream status Upstream version - Maintainer + Maintainer Summary {% for r in recipe_list %} - {{ r.name }} - {{ r.version }} - {{ r.upstream_status }} - {{ r.upstream_version }} - {{ r.maintainer_name }} - {{ r.summary }} + {{ r.name }} + {{ r.version }} + {% if r.upstream_status == "Up-to-date" %} + + {% elif r.upstream_status == "Not updated" %} + + {% else %} + + {% endif %} + {{ r.upstream_status }} + + {{ r.upstream_version }} + {{ r.maintainer_name }} + {{ r.summary }} {% endfor %}