Added screenshot_uploaded_by_current_user? helper function
This commit is contained in:
parent
e5f324e726
commit
13d3517935
1 changed files with 4 additions and 0 deletions
|
|
@ -19,6 +19,10 @@ module PackagesHelper
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def screenshot_uploaded_by_current_user?(screenshot)
|
||||||
|
screenshot.uploaderhash == session.id.to_s
|
||||||
|
end
|
||||||
|
|
||||||
# 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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue