aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Wright <martin@mysociety.org>2015-01-12 12:09:56 +0000
committerGareth Rees <gareth@mysociety.org>2015-02-20 11:59:04 +0000
commit713699bb7d386bb8410b6968109f0a7fe6a8e3bb (patch)
treebcf811b5560f44d5180193d0aa2ae22f499280b0
parent882d812190259d44a470198ee6846cbbcfbbd1c3 (diff)
make a request button will now appear next to each authority in search results, part of #1526
-rw-r--r--app/assets/stylesheets/responsive/_lists_layout.scss6
-rw-r--r--app/views/public_body/_body_listing_single.html.erb5
2 files changed, 9 insertions, 2 deletions
diff --git a/app/assets/stylesheets/responsive/_lists_layout.scss b/app/assets/stylesheets/responsive/_lists_layout.scss
index 69237ae91..6a874e8fe 100644
--- a/app/assets/stylesheets/responsive/_lists_layout.scss
+++ b/app/assets/stylesheets/responsive/_lists_layout.scss
@@ -81,4 +81,8 @@
}
}
-
+/* .make-request-quick-button displays in the typeahead search results in the 'make request' process */
+.make-request-quick-button {
+ margin-bottom: 1em;
+ margin-top: -0.5em;
+}
diff --git a/app/views/public_body/_body_listing_single.html.erb b/app/views/public_body/_body_listing_single.html.erb
index 91a07d09c..2aaf02e6e 100644
--- a/app/views/public_body/_body_listing_single.html.erb
+++ b/app/views/public_body/_body_listing_single.html.erb
@@ -1,4 +1,4 @@
-<% if @highlight_words.nil?
+<% if @highlight_words.nil?
@highlight_words = []
end %>
@@ -34,5 +34,8 @@
<%= _("Added on {{date}}", :date => simple_date(public_body.created_at)) %>.
</span>
</span>
+ <div class="make-request-quick-button">
+ <a class="link_button_green" href="#">Make a request</a>
+ </div>
</div>