Unused def commented out

This commit is contained in:
Christoph Haas 2020-08-17 01:49:52 +02:00
parent 2f6be566ef
commit dd02ed0a82

View file

@ -21,9 +21,9 @@ module PackagesHelper
# Show filled/empty star icons from FontAwesome # Show filled/empty star icons from FontAwesome
# depending on the rating (1-5) # depending on the rating (1-5)
def star_rating(rating) # def star_rating(rating)
filled_stars = fa_icon('star') * rating # filled_stars = fa_icon('star') * rating
empty_stars = fa_icon('star-o') * (5-rating) # empty_stars = fa_icon('star-o') * (5-rating)
(filled_stars+empty_stars).html_safe # (filled_stars+empty_stars).html_safe
end # end
end end