<div data-role="navbar" data-theme="b">
	<ul class="username-bar">
		<li id="footer-appname" class="username-bar-secondary">
            Scheduling Manager -
            <% if(version.version !== ""){ %>
                v<%- version.version %>
            <% } %>
		</li>
		<li id="footer-username" class="username-bar-primary">
			<% if (typeof user === 'undefined' || user === null) { %>
				Not logged in
			<% } else if (user.patient.patientIdentifier !== null && user.patient.patientIdentifier.uniqueId !== null && user.id !== user.patient.patientIdentifier.uniqueId) { %>
				<span>Logged in as </span><%- user.displayName %><span> - Health Advocate for </span><%- user.patient.displayName %>
			<% } else { %>
				<span>Logged in as </span><%- user.displayName %> <%if (typeof user.facilityName !== 'undefined' && user.facilityName) {%><span>-</span> <%- user.facilityName %><%}%>
			<% }%>
		</li>
	</ul>
</div>