Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use icons for user drop down menu

  • Loading branch information...
commit 7615084c43b8a70c0950088d59d7f62da70b8617 1 parent ebafa82
@jetztgradnet authored
Showing with 8 additions and 7 deletions.
  1. +8 −7 grails-app/views/layouts/bootstrap.gsp
View
15 grails-app/views/layouts/bootstrap.gsp
@@ -44,23 +44,24 @@
<div class="nav-collapse">
<ul class="nav">
<li<%= request.forwardURI == "${createLink(uri: '/')}" ? ' class="active"' : '' %>><a href="${createLink(uri: '/')}">Home</a></li>
- <g:each var="c" in="${grailsApplication.controllerClasses.sort { it.fullName } }">
- <li<%= c.logicalPropertyName == controllerName ? ' class="active"' : '' %>><g:link controller="${c.logicalPropertyName}">${c.naturalName}</g:link></li>
- </g:each>
+ <li><g:link controller='project' action='index'>Projects</g:link></li>
+ <%-- TODO make this only available to admins --%>
+ <li><g:link controller='admin' action='index'>Admin</g:link></li>
</ul>
<g:form class="navbar-search pull-left" controller="search" action="search">
+ <i class="icon-search icon-white"></i>
<input type="text" class="search-query span2" name="term" placeholder="Search"/>
</g:form>
<ul class="nav pull-right">
<sec:ifLoggedIn>
<li class="dropdown">
<a href="#" class="dropdown-toggle"
- data-toggle="dropdown"><sec:loggedInUserInfo field="username"/></a>
+ data-toggle="dropdown"><i class="icon-user icon-white"></i> <sec:loggedInUserInfo field="username"/></a>
<%--<b class="caret"></b>--%>
<ul class="dropdown-menu">
- <li><g:link controller='user' action='settings'>Settings</g:link></li>
+ <li><g:link controller='user' action='settings'><i class="icon-cog"></i> Settings</g:link></li>
<li class="divider"></li>
- <li><g:link controller='logout' action='index'>Logout</g:link></li>
+ <li><g:link controller='logout' action='index'><i class="icon-off"></i> Logout</g:link></li>
</ul>
</li>
</sec:ifLoggedIn>
@@ -81,7 +82,7 @@
<hr>
<footer>
- <p>&copy; 2011 <a href="https://github.com/jetztgradnet/aldente" title="Aldente project page on GitHub">Aldente project</a></p>
+ <p>&copy; 2012 <a href="https://github.com/jetztgradnet/aldente" title="Aldente project page on GitHub">Aldente project</a></p>
</footer>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.