Newer
Older
Sonia Zorba
committed
<?xml version="1.0" encoding="UTF-8" ?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:composite="http://java.sun.com/jsf/composite"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core">
<composite:interface>
</composite:interface>
<composite:implementation>
<nav class="navbar navbar-default">
<div class="container-fluid">
<ul class="nav navbar-nav navbar-left">
<li>
<h:commandLink action="credentialsEditing.xhtml?faces-redirect=true" rendered="#{view.viewId ne '/credentialsEditing.xhtml'}">
<span class="icon-key"></span>
Credentials
</h:commandLink>
</li>
<li>
Sonia Zorba
committed
<h:commandLink action="#{usersEditing.open()}" rendered="#{user.admin and view.viewId ne '/usersEditing.xhtml'}">
Sonia Zorba
committed
<span class="glyphicon glyphicon-user"></span>
Users Management
</h:commandLink>
</li>
<li>
<h:commandLink action="#{ucdEditor.openDialog()}">
Custom UCDs
<f:ajax execute="@form" render="@form" onevent="UCDEditor.open" />
</h:commandLink>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<h:commandLink action="#{user.logout()}">
<span class="glyphicon glyphicon-log-out"></span>
Logout
</h:commandLink>
</li>
</ul>
<div class="nav navbar-nav navbar-right">
<p class="navbar-text"><strong>#{user.username}</strong></p>
</div>
</div>
</nav>
</composite:implementation>
</html>