1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-10 11:25:05 -05:00

Format the rating in whole percentage

This commit is contained in:
M. Adam Kendall 2015-01-25 22:31:53 -05:00
parent 9cfc3e3788
commit a1871e2d43

View File

@ -88,9 +88,8 @@
</div> </div>
<div class="clearfix"> <div class="clearfix">
<p>$cur_show['show']['rating'] <img src="$sbRoot/images/heart.png"></p> <p><%= int(cur_show['show']['rating']*10) %>% <img src="$sbRoot/images/heart.png"></p>
<i>$cur_show['show']['votes'] votes</i> <i>$cur_show['show']['votes'] votes</i>
<i>$cur_show['watchers'] watchers</i>
<div class="traktShowTitleIcons"> <div class="traktShowTitleIcons">
<a href="$sbRoot/home/addShows/addTraktShow?indexer_id=${cur_show['show']['ids']['tvdb'] or cur_show['show']['ids']['tvrage']}&amp;showName=${cur_show['show']['title']}" class="btn btn-xs">Add Show</a> <a href="$sbRoot/home/addShows/addTraktShow?indexer_id=${cur_show['show']['ids']['tvdb'] or cur_show['show']['ids']['tvrage']}&amp;showName=${cur_show['show']['title']}" class="btn btn-xs">Add Show</a>
</div> </div>