Module: UserMenuHelper

Defined in:
app/helpers/user_menu_helper.rb

Instance Method Summary collapse

Instance Method Details



22
23
24
# File 'app/helpers/user_menu_helper.rb', line 22

def activity_user_menu_link
  user_menu_item t(:activity), activity_user_path, 'activity'
end


26
27
28
# File 'app/helpers/user_menu_helper.rb', line 26

def certificates_user_menu_link
  user_menu_item t(:certificates), certificates_user_path, 'certificates'
end


38
39
40
# File 'app/helpers/user_menu_helper.rb', line 38

def 
  user_menu_item t(:delete_account), , 'delete_account', 'text-danger'
end


18
19
20
# File 'app/helpers/user_menu_helper.rb', line 18

def discussions_user_menu_link
  user_menu_item t(:discussions), discussions_user_path, 'discussions' if current_user&.can_discuss_here?
end


30
31
32
# File 'app/helpers/user_menu_helper.rb', line 30

def exam_authorizations_user_menu_link
  user_menu_item t(:exams), exam_authorizations_user_path, 'exam_authorizations'
end


14
15
16
# File 'app/helpers/user_menu_helper.rb', line 14

def messages_user_menu_link
  user_menu_item t(:messages), messages_user_path, 'messages'
end


34
35
36
# File 'app/helpers/user_menu_helper.rb', line 34

def notifications_user_menu_link
  user_menu_item t(:notifications), notifications_user_path, 'notifications'
end


10
11
12
# File 'app/helpers/user_menu_helper.rb', line 10

def profile_user_menu_link
  user_menu_item t(:my_profile), user_path, 'show'
end

#user_menu_dividerObject



6
7
8
# File 'app/helpers/user_menu_helper.rb', line 6

def user_menu_divider
   :div, '', class: 'mu-user-menu-divider horizontal'
end

#user_menu_headerObject



2
3
4
# File 'app/helpers/user_menu_helper.rb', line 2

def user_menu_header
   :div, user_menu_header_icon, class: 'mu-user-menu-header'
end