From ce28c06d6e624bf249f297329f69205b06d41700 Mon Sep 17 00:00:00 2001 From: Jeff Balogh Date: Thu, 3 Mar 2011 11:03:12 -0800 Subject: [PATCH] say Not Yet Rated if we don't have ratings (bug 634758) --- apps/addons/templates/addons/listing/items_mobile.html | 2 ++ media/css/zamboni/mobile.css | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/addons/templates/addons/listing/items_mobile.html b/apps/addons/templates/addons/listing/items_mobile.html index d8d8162dd3..cbf8e585ca 100644 --- a/apps/addons/templates/addons/listing/items_mobile.html +++ b/apps/addons/templates/addons/listing/items_mobile.html @@ -22,6 +22,8 @@ {% with num=addon.total_reviews %} {% if num %} {{ addon.average_rating|float|stars }} + {% else %} + {{ _('Not Yet Rated') }} {% endif %} {% endwith %} {% endif %} diff --git a/media/css/zamboni/mobile.css b/media/css/zamboni/mobile.css index 94fd1d05c3..c693a8d73c 100644 --- a/media/css/zamboni/mobile.css +++ b/media/css/zamboni/mobile.css @@ -55,6 +55,11 @@ table { } */ +i { + font-style: italic; + color: #838382; +} + /** Clearfix */ .listview li a:after, header:after, @@ -1375,4 +1380,4 @@ footer a.desktop-link { margin: 1em 0; text-align: center; text-transform: uppercase; -} \ No newline at end of file +}