Unused def commented out
This commit is contained in:
parent
2f6be566ef
commit
dd02ed0a82
1 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue