Page MenuHomec4science

header.html
No OneTemporary

File Metadata

Created
Fri, Nov 22, 21:28

header.html

<template name="header">
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{{pathFor 'patients'}}">epiph </a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div id="navbar-collapse" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
{{#if currentUser}}
{{#if isInRole 'admin, caseManager'}}
<li class="{{activeRouteClass 'patients'}}">
<a href="{{pathFor 'patients'}}" id="patientsA">
Patients &amp; Questioning
</a>
</li>
{{/if}}
{{/if}}
{{#if isInRole 'admin'}}
<li class="{{activeRouteClass 'questionnaires' 'editQuestionnaire' 'translateQuestionnaire'}}">
<a href="{{pathFor 'questionnaires'}}">
Questionnaires
</a>
</li>
<li class="{{activeRouteClass 'studies' 'editStudy'}}">
<a href="{{pathFor 'studies'}}">
Studies
</a>
</li>
<li class="{{activeRouteClass 'export'}}">
<a href="{{pathFor 'export'}}">
Export
</a>
</li>
{{/if}}
</ul>
<ul class="nav navbar-nav navbar-right">
{{#if isInRole 'admin'}}
<li class="{{activeRouteClass 'activities'}}">
<a href="{{pathFor 'activities'}}">
Activities
</a>
</li>
<li class="{{activeRouteClass 'users'}}">
<a href="{{pathFor 'users'}}">
Users
</a>
</li>
{{/if}}
{{#if currentUser}}
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown">{{ currentUser.username }} <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="{{pathFor 'atChangePwd'}}">Change password</a></li>
<li><a id="logoutUser">Sign out</a></li>
</ul>
</li>
{{else}}
<li>
<a href="{{pathFor 'atSignIn'}}">
Sign in/Join
</a>
</li>
{{/if}}
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
</template>

Event Timeline