|
|
|
|
37
|
|
37
|
|
38
|
<%def name="USER_ME(current_user)">
|
38
|
<%def name="USER_ME(current_user)">
|
39
|
## SIDEBAR RIGHT
|
39
|
## SIDEBAR RIGHT
|
40
|
- <div>
|
|
|
41
|
- <div class="btn-group btn-group-vertical">
|
|
|
42
|
- <%
|
|
|
43
|
- user_edit_url = tg.url('/user/{}/edit'.format(current_user.id), {'next_url': '/home'})
|
|
|
44
|
- user_password_edit_url = tg.url('/user/{}/password/edit'.format(current_user.id))
|
|
|
45
|
- %>
|
|
|
46
|
- <a title="${_('Edit my profile')}" class="btn btn-default edit-profile-btn" data-toggle="modal" data-target="#user-edit-modal-dialog" data-remote="${user_edit_url}" >${ICON.FA('fa-edit t-less-visible')} ${_('Edit my profile')}</a>
|
|
|
47
|
-
|
|
|
48
|
- % if tmpl_context.auth_is_internal:
|
|
|
49
|
- <a title="${_('Change password')}" class="btn btn-default change-password-btn" data-toggle="modal" data-target="#user-edit-password-modal-dialog" data-remote="${user_password_edit_url}" >${ICON.FA('fa-key t-less-visible')} ${_('Password')}</a>
|
|
|
50
|
- % endif
|
|
|
51
|
-
|
|
|
52
|
- </div>
|
|
|
53
|
- <p></p>
|
|
|
54
|
- <h3 class="t-spacer-above" style="margin-top: 1em;">
|
|
|
55
|
- <i class="fa fa-flash"></i> ${_('Go to...')}
|
|
|
56
|
- </h3>
|
|
|
57
|
-
|
|
|
58
|
- <div class="btn-group btn-group-vertical">
|
|
|
59
|
- <%
|
|
|
60
|
- user_edit_url = tg.url('/user/{}/edit'.format(current_user.id), {'next_url': '/home'})
|
|
|
61
|
- user_password_edit_url = tg.url('/user/{}/password/edit'.format(current_user.id))
|
|
|
62
|
- %>
|
|
|
63
|
- <a title="${_('Not read')}" class="btn btn-default" href="#unread-content-panel" >${ICON.FA('fa-fw fa-eye-slash t-less-visible')} ${_('Not Read')}</a>
|
|
|
64
|
- <a title="${_('Recent Activity')}" class="btn btn-default" href="#recent-activity-panel" >${ICON.FA('fa-fw fa-line-chart t-less-visible')} ${_('Activity')}</a>
|
|
|
65
|
- <a title="${_('My Workspaces')}" class="btn btn-default" href="#workspaces-panel" >${ICON.FA('fa-fw fa-bank t-less-visible')} ${_('Spaces')}</a>
|
|
|
66
|
- </div>
|
|
|
67
|
- <p></p>
|
|
|
68
|
- </div> <!-- # End of side bar right -->
|
|
|
|
|
40
|
+ <div class="btn-group btn-group-vertical">
|
|
|
41
|
+ <%
|
|
|
42
|
+ user_edit_url = tg.url('/user/{}/edit'.format(current_user.id), {'next_url': '/home'})
|
|
|
43
|
+ user_password_edit_url = tg.url('/user/{}/password/edit'.format(current_user.id))
|
|
|
44
|
+ %>
|
|
|
45
|
+ <a title="${_('Edit my profile')}" class="btn btn-default edit-profile-btn" data-toggle="modal" data-target="#user-edit-modal-dialog" data-remote="${user_edit_url}" >${ICON.FA('fa-edit t-less-visible')} ${_('Edit my profile')}</a>
|
|
|
46
|
+
|
|
|
47
|
+ % if tmpl_context.auth_is_internal:
|
|
|
48
|
+ <a title="${_('Change password')}" class="btn btn-default change-password-btn" data-toggle="modal" data-target="#user-edit-password-modal-dialog" data-remote="${user_password_edit_url}" >${ICON.FA('fa-key t-less-visible')} ${_('Password')}</a>
|
|
|
49
|
+ % endif
|
|
|
50
|
+ </div><!-- # End of side bar right -->
|
69
|
## SIDEBAR RIGHT [END]
|
51
|
## SIDEBAR RIGHT [END]
|
70
|
</%def>
|
52
|
</%def>
|
71
|
|
53
|
|