aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/body/list.rhtml1
-rw-r--r--app/views/request/list.rhtml15
-rw-r--r--public/stylesheets/yucky-green.css6
3 files changed, 16 insertions, 6 deletions
diff --git a/app/views/body/list.rhtml b/app/views/body/list.rhtml
index 08104e61e..1add37e24 100644
--- a/app/views/body/list.rhtml
+++ b/app/views/body/list.rhtml
@@ -10,7 +10,6 @@
<p>
<a href="/help/about#missing_body">Are we missing a public authority?</a>
</p>
-
</div>
<% @title = "Public authorities - " + @description %>
diff --git a/app/views/request/list.rhtml b/app/views/request/list.rhtml
index aac9f57a6..3e84ca6e8 100644
--- a/app/views/request/list.rhtml
+++ b/app/views/request/list.rhtml
@@ -1,9 +1,20 @@
-<% if @track_thing %>
- <%= render :partial => 'track/tracking_people_and_link', :locals => { :track_thing => @track_thing, :own_request => false, :list_people => false } %>
+<div id="list_sidebar">
+<h1>Show only...</h1>
+<ul>
+<% for view, description in [ [nil, "Recently sent requests"], ['successful', "Successful responses"] ] %>
+<li>
+ <%= link_to_unless (@view == view), description, request_list_url(:view => view) %>
+</li>
<% end %>
+</ul>
+</div>
<h1><%=@title%></h1>
+<% if @track_thing %>
+ <%= render :partial => 'track/tracking_people_and_link', :locals => { :track_thing => @track_thing, :own_request => false, :list_people => false } %>
+<% end %>
+
<% if @search_results.empty? %>
<p>No requests made yet.</p>
<% else %>
diff --git a/public/stylesheets/yucky-green.css b/public/stylesheets/yucky-green.css
index 6ade48fb8..dff14f48a 100644
--- a/public/stylesheets/yucky-green.css
+++ b/public/stylesheets/yucky-green.css
@@ -385,20 +385,20 @@ table#list_requests .odd {
/* /body - listing bodies */
-#body_sidebar {
+#body_sidebar, #list_sidebar {
float: right;
width: 20em;
border: solid 1px #c7eb6e;
margin: 0em 0 3em 3em;
}
-#body_sidebar h1 {
+#body_sidebar h1, #list_sidebar h1 {
font-size: 120%;
padding: 2px;
margin: 0;
color: #000000;
background-color: #c7eb6e;
}
-#body_sidebar p {
+#body_sidebar p, #list_sidebar p {
margin: 1em;
}