aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorDavid Cabo <david@calibea.com>2011-08-23 00:52:17 +0200
committerDavid Cabo <david@calibea.com>2011-08-23 00:52:17 +0200
commit51e4b941fd15c23eb06d7f332dd3b38aae769a1c (patch)
tree1b9de38d2b79fa158ec6e46ce5801e01f08edda4 /app
parent1d41866cd8a93e28bf8cdbcc1745d2d2fd037c6f (diff)
Improve layout of public body page when embedded via AJAX
Diffstat (limited to 'app')
-rw-r--r--app/views/public_body/show.rhtml2
-rw-r--r--app/views/request/select_authority.rhtml3
2 files changed, 2 insertions, 3 deletions
diff --git a/app/views/public_body/show.rhtml b/app/views/public_body/show.rhtml
index 5e6c52984..372a1558c 100644
--- a/app/views/public_body/show.rhtml
+++ b/app/views/public_body/show.rhtml
@@ -1,7 +1,6 @@
<% @title = h(@public_body.name) + " - view and make Freedom of Information requests" %>
<div id="main_content">
<div>
-<% unless params[:narrow_layout] # XXX: not ideal %>
<div id="header_right">
<h2><%= _('Track this authority')%></h2>
<%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => false, :location => 'sidebar' } %>
@@ -23,7 +22,6 @@
<% end %>
<%= link_to _('View FOI email address'), view_public_body_email_url(@public_body.url_name) %><br>
</div>
-<% end %>
<div id="header_left">
<h1><%=h(@public_body.name)%></h1>
diff --git a/app/views/request/select_authority.rhtml b/app/views/request/select_authority.rhtml
index 68bb34a64..802fefec6 100644
--- a/app/views/request/select_authority.rhtml
+++ b/app/views/request/select_authority.rhtml
@@ -13,8 +13,9 @@
// We're using the existing body list: we intercept the clicks on the titles to
// display a preview on the right hand side of the screen
$("#typeahead_response a").click(function() {
- $("#authority_preview").load(this.href+"?narrow_layout=1 #main_content", function() {
+ $("#authority_preview").load(this.href+" #main_content", function() {
$("#authority_preview").show();
+ $("#authority_preview #header_right").hide();
});
return false;
});