Added simple moderate feature in My page

This commit is contained in:
Christoph Haas 2021-02-14 18:48:48 +01:00
parent 953cd056aa
commit ce7198b713
5 changed files with 39 additions and 9 deletions

View file

@ -3,6 +3,9 @@
li class=('active' if action_name=='profile')
= link_to my_profile_path
= fa_icon 'user-o 2x', text: 'Myself'
li class=('active' if action_name=='moderate_list')
= link_to moderate_list_path
= fa_icon 'check 2x', text: 'Moderate'
// Add link if user has uploaded screenshots
- if @current_users_screenshots and @current_users_screenshots.any?
li class=('active' if controller_name=='my' and action_name=='uploads')