Commit 4b90ea42 authored by Matija Obreza's avatar Matija Obreza
Browse files

Search form on decorator

parent fe8042c9
......@@ -61,26 +61,32 @@
</div>
</div>
<div class="navbar pull-right">
<sec:authorize access="isAnonymous()">
<div style="line-height: 20px; padding: 10px 15px;">
<a href="<c:url value="/login" />">Login</a> or <a href="<c:url value="/registration" />"><spring:message code="user.create-new-account" /></a>
<div class="navbar pull-right">
<sec:authorize access="isAnonymous()">
<div style="line-height: 20px; padding: 10px 15px;">
<a href="<c:url value="/login" />">Login</a> or <a href="<c:url value="/registration" />"><spring:message code="user.create-new-account" /></a>
</div>
</sec:authorize>
<sec:authorize access="isAuthenticated()">
</sec:authorize>
<sec:authorize access="isAuthenticated()">
<ul class="nav">
<li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" title="<spring:message code="sample.message.change.locale"/>"> You are <b>${user.username}</b> <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<sec:authorize access="hasRole('ADMINISTRATOR')">
<li><a href="<c:url value="/admin/" />">Administation</a></li>
</sec:authorize>
<sec:authorize access="hasRole('ADMINISTRATOR')">
<li><a href="<c:url value="/admin/" />">Administation</a></li>
</sec:authorize>
<li><a href="<c:url value="/profile" />"><spring:message code="user.pulldown.profile" /></a></li>
<li><a href="<c:url value="/logout" />"><spring:message code="user.pulldown.logout" /></a></li>
</ul></li>
</ul>
</sec:authorize>
</div>
</sec:authorize>
</div>
<div class="pull-right">
<form method="get" action="<c:url value="/search" />">
<input type="text" name="q" /> <input type="submit" value="Search" />
</form>
</div>
</div>
</div>
......@@ -94,7 +100,7 @@
<li><a href="<c:url value="/sel/" />"><spring:message code="menu.my-list" /></a></li>
</ul>
</div>
<div id="content" class="clearfix">
<div id="dialog"></div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment