_usermenu_logged_in.html.slim
1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
- pending_tasks_count = Task.to(user).pending.count if user
li.dropdown
= link_to '#', id: "homepage-link", title: _('Go to your homepage'), class: 'dropdown-toggle', data: {toggle: 'dropdown', hover: 'dropdown'}
= image_tag user.profile_custom_icon(gravatar_default), class: 'menu-user-gravatar'
= content_tag :strong, user.identifier
- if pending_tasks_count
span class='badge' onclick="document.location='#{url_for user.tasks_url}'" title="#{_("Manage your pending tasks")}"
= pending_tasks_count
ul class='dropdown-menu' role='menu'
li
= link_to user.public_profile_url, id: "homepage-link", title: _('Go to your homepage')
span class='icon-person' = _('Profile')
li.divider
/TODO
/= render_environment_features(:usermenu)
li = admin_link
li
= link_to user.admin_url, class: 'ctrl-panel', title: _("Configure your personal account and content")
i class='icon-menu-ctrl-panel'
strong = _('Control panel')
- if environment.enabled? 'xmpp_chat'
= responsive_chat_user_status_menu 'icon-menu-offline', _('Offline')
li = manage_enterprises
li = manage_communities
li.divider
li
= link_to({controller: 'account', action: 'logout'}, id: "logout", title: _("Leave the system"))
i class='icon-menu-logout'
strong = _('Logout')