Permalink
Browse files

handle unrated groups

  • Loading branch information...
1 parent cb4e626 commit a2be23ba1f2ddc79142577477ac9491bb7f708da Jake Levine committed Aug 13, 2010
Showing with 4 additions and 2 deletions.
  1. +4 −2 mug_stats.html
View
@@ -38,9 +38,11 @@
addStarRating = function(rating) {
var base_url = 'http://img1.meetupstatic.com/9260736631256287675/img/star_';
var starlink = '';
- if (rating < 1.25) {
+ if (rating == 0) {
+ return 'Not Yet Rated';
+ }else if (rating < 1.25) {
starlink = "100.png";
- } else if (rating < 1.75) {
+ }else if (rating < 1.75) {
starlink = "150.png";
}else if (rating < 2.25) {
starlink = "200.png";

0 comments on commit a2be23b

Please sign in to comment.