Skip to content

Commit

Permalink
tried to resolve the 'Home' confusion by renaming the logged-in start…
Browse files Browse the repository at this point in the history
…page to be 'My Overview' and removing 'Home' from the navigation when not being logged in. This supports the landing-page character, I think.
  • Loading branch information
Klas Kalass committed Dec 18, 2011
1 parent 13e6167 commit a770063
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/main/webapp/WEB-INF/views/about.jsp
Expand Up @@ -4,7 +4,7 @@
<div class="container">
<a class="brand" href="/"></a>
<ul class="nav">
<li><a href="/">Home</a></li>
<sec:authorize access="hasRole('USER_ROLE')"><li><a href="/">My Overview</a></li></sec:authorize>
<li class="active"><a href="/about.html">About</a></li>
<li><a href="/contact.html">Contact</a></li>
<sec:authorize access="hasRole('USER_ROLE')"><li><a href="/j_spring_security_logout">Logout</a></sec:authorize>
Expand Down
4 changes: 2 additions & 2 deletions src/main/webapp/WEB-INF/views/campaign.jsp
Expand Up @@ -14,7 +14,7 @@
<div class="container">
<a class="brand" href="/"></a>
<ul class="nav">
<li><a href="/">Home</a></li>
<sec:authorize access="hasRole('USER_ROLE')"><li><a href="/">My Overview</a></li></sec:authorize>
<li><a href="/about.html">About</a></li>
<li><a href="/contact.html">Contact</a></li>
<sec:authorize access="hasRole('USER_ROLE')"><li><a href="/j_spring_security_logout">Logout</a></sec:authorize>
Expand All @@ -29,7 +29,7 @@

<div class="content">
<ul class="breadcrumb">
<li><a href="/">My Campaigns</a> <span class="divider">/</span></li>
<li><a href="/">My Overview</a> <span class="divider">/</span></li>
<li class="active">${campaign.title}</li>
</ul>
<div class="row">
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/WEB-INF/views/contact.jsp
Expand Up @@ -4,7 +4,7 @@
<div class="container">
<a class="brand" href="/"></a>
<ul class="nav">
<li><a href="/">Home</a></li>
<sec:authorize access="hasRole('USER_ROLE')"><li><a href="/">My Overview</a></li></sec:authorize><li><a href="/"><sec:authorize access="hasRole('ROLE_ANONYMOUS')">Home</sec:authorize><sec:authorize access="hasRole('USER_ROLE')">My Campaigns</sec:authorize></a></li>
<li><a href="/about.html">About</a></li>
<li class="active"><a href="/contact.html">Contact</a></li>
<sec:authorize access="hasRole('USER_ROLE')"><li><a href="/j_spring_security_logout">Logout</a></sec:authorize>
Expand Down
3 changes: 1 addition & 2 deletions src/main/webapp/WEB-INF/views/createCampaign.jsp
Expand Up @@ -4,8 +4,7 @@
<div class="container">
<a class="brand" href="/"></a>
<ul class="nav">
<li><a href="/">Home</a></li>
<li class="active"><a href="#">Campaign</a></li>
<sec:authorize access="hasRole('USER_ROLE')"><li><a href="/">My Overview</a></li></sec:authorize>
<li><a href="/about.html">About</a></li>
<li><a href="/contact.html">Contact</a></li>
<sec:authorize access="hasRole('USER_ROLE')"><li><a href="/j_spring_security_logout">Logout</a></sec:authorize>
Expand Down
10 changes: 4 additions & 6 deletions src/main/webapp/WEB-INF/views/index.jsp
Expand Up @@ -4,7 +4,7 @@
<div class="container">
<a class="brand" href="/"></a>
<ul class="nav">
<li class="active" ><a href="/">Home</a></li>
<sec:authorize access="hasRole('USER_ROLE')"><li class="active"><a href="/">My Overview</a></li></sec:authorize>
<li><a href="/about.html">About</a></li>
<li><a href="/contact.html">Contact</a></li>
<sec:authorize access="hasRole('USER_ROLE')"><li><a href="/j_spring_security_logout">Logout</a></sec:authorize>
Expand Down Expand Up @@ -36,10 +36,9 @@

<sec:authorize access="hasRole('USER_ROLE')">
<div>
<!--h2>A Real-World "Like" for Campaigning and Advocacy</h2>
<br-->

<h2>My Campaigns</h2>
<c:if test="${not empty campaigns}">
<h2>My Campaigns</h2>
<p>
<table border=0 class="zebra-striped bordered-table">
<tr><th>Title</th><th>External Link</th></tr>
Expand All @@ -50,8 +49,7 @@
</p>
</c:if>
<c:if test="${empty campaigns}">
<h2>Welcome!</h2>
<p>How it works: </p>
<p>Here you will get an overview of your campaigns, and this is how it works: </p>
<ul>
<li>First you create a new campaign</li>
<li>Entering a title, description and the amount of QR codes you need</li>
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/WEB-INF/views/login.jsp
Expand Up @@ -4,7 +4,7 @@
<div class="container">
<a class="brand" href="/"></a>
<ul class="nav">
<li><a href="/">Home</a></li>
<sec:authorize access="hasRole('USER_ROLE')"><li><a href="/">My Overview</a></li></sec:authorize>
<li><a href="/about.html">About</a></li>
<li><a href="/contact.html">Contact</a></li>
<sec:authorize access="hasRole('USER_ROLE')"><li><a href="/j_spring_security_logout">Logout</a></sec:authorize>
Expand Down

0 comments on commit a770063

Please sign in to comment.