Skip to content
This repository
  • 2 commits
  • 1 file changed
  • 0 comments
  • 1 contributor

Showing 1 changed file with 10 additions and 1 deletion. Show diff stats Hide diff stats

  1. 11  user_interface/index.html
11  user_interface/index.html
@@ -684,7 +684,16 @@
684 684
 				if (movie.subs) {
685 685
 					summary = summary + ' ' + langstrings[lang]['subtitles'] + ': ' + langstrings[lang][movie.subs];
686 686
 				}
687  
-				entry.innerHTML = '<div class="searchheader"><a href="javascript:play(\'' + movie.link + '\')">' + movie.moviename + '</a></div><div class="searchsummary">' + summary + '</div><div class="searchlink" style="display:none">' + movie.link + '</div><div class="searchshowlink"><a href="#" onclick="showlink(event, this)">' + langstrings[lang]['showlink'] + '</a></div>';
  687
+				var ratingstars = '';
  688
+				if (movie.rating) {
  689
+					ratingstars = '<div class="stars">';
  690
+					var n = Math.round(movie.rating);
  691
+					for (var j = 0; j < n; j++) {
  692
+						ratingstars += '&#9733 ';
  693
+					}
  694
+					ratingstars += '</div>';
  695
+				}
  696
+				entry.innerHTML = '<div class="searchheader"><a href="javascript:play(\'' + movie.link + '\')">' + movie.moviename + '</a>' + ratingstars + '</div><div class="searchsummary">' + summary + '</div><div class="searchlink" style="display:none">' + movie.link + '</div><div class="searchshowlink"><a href="#" onclick="showlink(event, this)">' + langstrings[lang]['showlink'] + '</a></div>';
688 697
 				searchresults.appendChild(entry);
689 698
 			} 
690 699
 			if (results.didyoumeanresults.length > 0) { document.getElementById('didyoumean').innerHTML = '<p>' + langstrings[lang]['didyoumean'] + '</p>'; }

No commit comments for this range

Something went wrong with that request. Please try again.