diff options
author | spocky <spocky@ampache> | 2008-04-02 12:38:47 +0000 |
---|---|---|
committer | spocky <spocky@ampache> | 2008-04-02 12:38:47 +0000 |
commit | 2544f5b5629d36658f92d4d0ad111563c2442f1b (patch) | |
tree | 74f24fe5d8a40716dfad4f0e5017cce03dd3878b /templates/show_object_rating_static.inc.php | |
parent | 3c36e58d5441dd5a6990fc24332e69d330edf766 (diff) | |
download | ampache-2544f5b5629d36658f92d4d0ad111563c2442f1b.tar.gz ampache-2544f5b5629d36658f92d4d0ad111563c2442f1b.tar.bz2 ampache-2544f5b5629d36658f92d4d0ad111563c2442f1b.zip |
changed rating display to use 1 digit rounded average, a little bit different than "half star rating" request (Ticket #156), but easily done and also more precise.
minor change to sidebar filter display.
Diffstat (limited to 'templates/show_object_rating_static.inc.php')
-rw-r--r-- | templates/show_object_rating_static.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/show_object_rating_static.inc.php b/templates/show_object_rating_static.inc.php index 5fcd4f18..a8359f5b 100644 --- a/templates/show_object_rating_static.inc.php +++ b/templates/show_object_rating_static.inc.php @@ -27,7 +27,7 @@ $base_url = Config::get('ajax_url') . '?action=set_rating&rating_type=' . $r <ul> <?php // decide width of rating (5 stars -> 20% per star) - $width = $rating->rating*20; + $width = $rating->preciserating*20; if ($width < 0) $width = 0; //set the current rating background @@ -35,7 +35,7 @@ $base_url = Config::get('ajax_url') . '?action=set_rating&rating_type=' . $r if ($rating->rating <= 0) { echo "not rated yet </li>\n"; } - else echo "$rating->rating of 5</li>\n"; + else echo "$rating->preciserating of 5</li>\n"; for ($i=1; $i<6; $i++) { |