<% @title = h(@public_body.name) %>

<h1><%=@title%></h1>

<p class="subtitle">
A public body in the UK, also called <%= h(@public_body.short_name) %>
</p>

<% form_for(:info_request, @info_request, :url => new_request_url, :html => { :id => 'public_body_form' }  ) do |f| %>
   <p>
   <%= f.hidden_field(:public_body_id, { :value => @public_body.id } ) %>
   <%= submit_tag "Make new FOI request to " + @public_body.short_name %>
   </p>
<% end %>

<% if @public_body.info_requests.empty? %>
    <p>Nobody has made any Freedom of Information requests to this public body using this site.</p>

<% else %>
    <p>People have made <%=pluralize(@public_body.info_requests.size, "Freedom of Information request") %> to this public body using this site.</p>

    <%= render :partial => 'request/request_listing', :locals => { :info_requests => @public_body.info_requests.sort { |a,b| b.created_at <=> a.created_at } } %>
<% end %>



<% @title = h(@public_body.name) %>

<h1><%=@title%></h1>

<p class="subtitle">
A public body in the UK, also called <%= h(@public_body.short_name) %>
</p>

<p>
<%= link_to "Make new FOI request to " + @public_body.short_name, new_request_to_body_url(:public_body_id => @public_body.id.to_s)%>
</p>

<% if @public_body.info_requests.empty? %>
    <p>Nobody has made any Freedom of Information requests to this public body using this site.</p>

<% else %>
    <p>People have made <%=pluralize(@public_body.info_requests.size, "Freedom of Information request") %> to this public body using this site.</p>

    <%= render :partial => 'request/request_listing', :locals => { :info_requests => @public_body.info_requests.sort { |a,b| b.created_at <=> a.created_at } } %>
<% end %>



Make button on public body page into a link.
Make button on public body page into a link.
