Module: UserMenuHelper
- Defined in:
- app/helpers/user_menu_helper.rb
Instance Method Summary collapse
- #activity_user_menu_link ⇒ Object
- #certificates_user_menu_link ⇒ Object
- #delete_account_user_menu_link ⇒ Object
- #discussions_user_menu_link ⇒ Object
- #exam_authorizations_user_menu_link ⇒ Object
- #messages_user_menu_link ⇒ Object
- #notifications_user_menu_link ⇒ Object
- #profile_user_menu_link ⇒ Object
- #user_menu_divider ⇒ Object
- #user_menu_header ⇒ Object
Instance Method Details
#activity_user_menu_link ⇒ Object
22 23 24 |
# File 'app/helpers/user_menu_helper.rb', line 22 def t(:activity), activity_user_path, 'activity' end |
#certificates_user_menu_link ⇒ Object
26 27 28 |
# File 'app/helpers/user_menu_helper.rb', line 26 def t(:certificates), certificates_user_path, 'certificates' end |
#delete_account_user_menu_link ⇒ Object
38 39 40 |
# File 'app/helpers/user_menu_helper.rb', line 38 def t(:delete_account), delete_account_user_path, 'delete_account', 'text-danger' end |
#discussions_user_menu_link ⇒ Object
18 19 20 |
# File 'app/helpers/user_menu_helper.rb', line 18 def t(:discussions), discussions_user_path, 'discussions' if current_user&.can_discuss_here? end |
#exam_authorizations_user_menu_link ⇒ Object
30 31 32 |
# File 'app/helpers/user_menu_helper.rb', line 30 def t(:exams), , 'exam_authorizations' end |
#messages_user_menu_link ⇒ Object
14 15 16 |
# File 'app/helpers/user_menu_helper.rb', line 14 def t(:messages), , 'messages' end |
#notifications_user_menu_link ⇒ Object
34 35 36 |
# File 'app/helpers/user_menu_helper.rb', line 34 def t(:notifications), notifications_user_path, 'notifications' end |
#profile_user_menu_link ⇒ Object
10 11 12 |
# File 'app/helpers/user_menu_helper.rb', line 10 def t(:my_profile), user_path, 'show' end |
#user_menu_divider ⇒ Object
6 7 8 |
# File 'app/helpers/user_menu_helper.rb', line 6 def content_tag :div, '', class: 'mu-user-menu-divider horizontal' end |
#user_menu_header ⇒ Object
2 3 4 |
# File 'app/helpers/user_menu_helper.rb', line 2 def content_tag :div, , class: 'mu-user-menu-header' end |