diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/views/layouts/default.rhtml | 11 | ||||
-rw-r--r-- | app/views/user/index.rhtml | 7 |
2 files changed, 11 insertions, 7 deletions
diff --git a/app/views/layouts/default.rhtml b/app/views/layouts/default.rhtml index 038bdecef..242ae655a 100644 --- a/app/views/layouts/default.rhtml +++ b/app/views/layouts/default.rhtml @@ -6,11 +6,6 @@ <%= stylesheet_link_tag 'main' %> </head> <body> - <% if MySociety::Config.getbool("STAGING_SITE", 1) %> - <div id="staging"> - This is a test version of the site. FOI requests will not be sent to real public bodies. - </div> - <% end %> <div id="header"> <h1> <a href="/">GovernmentSpy</a> @@ -25,6 +20,12 @@ <!-- <li><a href="/about">About</a></li> --> </ul> + <% if MySociety::Config.getbool("STAGING_SITE", 1) %> + <div id="staging"> + This is a test version of the site. FOI requests will not be sent to real public bodies. + </div> + <% end %> + <% if not (controller.action_name == 'signin' or controller.action_name == 'signup') %> <div id="logged_in_bar"> <% if @user %> diff --git a/app/views/user/index.rhtml b/app/views/user/index.rhtml index c4264cb81..3e2668d01 100644 --- a/app/views/user/index.rhtml +++ b/app/views/user/index.rhtml @@ -6,12 +6,15 @@ <% for display_user in @display_users %> <h1><%=@title%></h1> + <p class="subtitle">Joined on <%= simple_date(display_user.created_at) %></p> - <p>Registered on <%= simple_date(display_user.created_at) %></p> <p>Freedom of Information requests made by this person:</p> <ul> <% for info_request in display_user.info_requests %> - <li><%= link_to h(info_request.title), request_url(:id => info_request) %></li> + <li> + <%= link_to h(info_request.title), request_url(:id => info_request) %> + on <%= simple_date(info_request.created_at) %> + </li> <% end %> </ul> <% end %> |