1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #778 from MrTimscampi/ratings

Force ratings to 1 decimal place
This commit is contained in:
dkanada 2020-02-11 03:47:22 +09:00 committed by GitHub
commit 7e3609407c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -385,16 +385,13 @@ define(['datetime', 'globalize', 'appRouter', 'itemHelper', 'indicators', 'mater
}
function getStarIconsHtml(item) {
var html = '';
var rating = item.CommunityRating;
if (rating) {
if (item.CommunityRating) {
html += '<div class="starRatingContainer mediaInfoItem">';
html += '<i class="material-icons starIcon">star</i>';
html += rating;
html += item.CommunityRating.toFixed(1);
html += '</div>';
}