<!-- BEGIN [% component.name %] -->
[% # INCLUDE dumper.tt dump = c.user_profile %]
[% # INCLUDE dumper.tt dump = c.cfg('settings') %]
<table class="tree">
<tr>
<td>
[% div_name = 'user'; INCLUDE site/snippets/toggleview.tt type = 'folder' %]
</td>
<td>
<span class="title">User functions</span>
</td>
</tr>
</table>
<div class='itemhidden' id="[% div_name %]">
<table style="margin-left: 30px">
[%
INCLUDE row class_function = 'user/change_password'
title = 'Change password';
INCLUDE row class_function = 'user/change_location'
title = 'Change registered location';
INCLUDE row class_function = 'user/change_email'
title = 'Change registered email address';
INCLUDE row class_function = 'resources/user_messages'
title = 'User message centre';
INCLUDE row class_function = 'resources/active_sessions'
title = 'Who\'s logged in?';
IF c.cfg('settings').notification_designation;
permitted = c.cfg('settings').notification_designation.split(',');
# INCLUDE dumper.tt dump = permitted;
IF permitted.grep(c.user_profile.designation).size;
INCLUDE row class_function = 'user/report_notification'
title = 'Register for new report notifications';
END;
END;
INCLUDE row class_function = 'resources/new_diagnoses'
title = 'New/relapsed diagnoses';
INCLUDE row class_function = 'resources/teaching_cases'
title = 'Teaching cases';
IF c.is_lab_staff;
INCLUDE row class_function = 'resources/user_permissions'
title = 'User permissions';
END;
IF c.user_can('report');
INCLUDE row class_function = 'audit/user_workload'
title = 'User workload stats';
END;
%]
</table>
</div>
<!-- END [% component.name %] -->