aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2007-10-10 16:35:17 +0000
committerfrancis <francis>2007-10-10 16:35:17 +0000
commit5aa5edda3ea9f79df857cdd339a56e289b47648d (patch)
tree5ef06b47d4199f837d9c656aa9e98df4d5f82513
parent6ed305b3c64f3fd90c970d54ea91d4a913967c47 (diff)
Link to home page from name of site, and only if not on front page.
Change front page text a bit.
-rw-r--r--app/views/index/index.rhtml2
-rw-r--r--app/views/layouts/default.rhtml12
2 files changed, 12 insertions, 2 deletions
diff --git a/app/views/index/index.rhtml b/app/views/index/index.rhtml
index 8b5611d41..65ba3a2e8 100644
--- a/app/views/index/index.rhtml
+++ b/app/views/index/index.rhtml
@@ -1,3 +1,5 @@
<p id="explanation">Make requests for information from the UK Government
+<br>Find information that others requested
+</p>
diff --git a/app/views/layouts/default.rhtml b/app/views/layouts/default.rhtml
index 729bb6ec6..3c7d86ce7 100644
--- a/app/views/layouts/default.rhtml
+++ b/app/views/layouts/default.rhtml
@@ -6,11 +6,19 @@
<%= stylesheet_link_tag 'main' %>
</head>
<body>
- <h1 id="header">Freedom of Information Filer and Archive <span id="beta">Beta</span></h1>
+ <h1 id="header">
+ <% if controller.controller_name == 'index' and controller.action_name == 'index' %>
+ Freedom of Information Filer and Archive
+ <% else %>
+ <a href="/">Freedom of Information Filer and Archive</a>
+ <% end %>
+ <span id="beta">Beta</span>
+ </h1>
<ul id="navigation">
- <li><a href="/">Home</a></li>
<li><a href="/list">All Requests</a></li>
<li><a href="/new">New Request</a></li>
+ <!-- <li><a href="/my">My Requests</a></li> -->
+ <!-- <li><a href="/about">About</a></li> -->
</ul>
<% if not (controller.action_name == 'signin' or controller.action_name == 'signup') %>