Skip to content

Commit

Permalink
Merge pull request #1857 from mysociety/body-more-info
Browse files Browse the repository at this point in the history
Add link to TheyWorkForYou from body sidebar
  • Loading branch information
gbp authored May 15, 2024
2 parents 360a7ca + bda94b9 commit a925ff7
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions lib/views/public_body/_more_info.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<h2><%= _('More about this authority')%></h2>

<%= link_to _('View FOI email address'), view_public_body_email_path(public_body.url_name) %><br>

<%= link_to _("Ask us to update FOI email"), new_change_request_body_path(:body => public_body.url_name) %><br>

<% if !public_body.calculated_home_page.nil? %>
<%= link_to _('Home page of authority'), public_body.calculated_home_page %><br>
<% end %>
Expand All @@ -12,6 +16,13 @@
<%= link_to _('Disclosure log'), public_body.disclosure_log %><br>
<% end %>
<% twfy_utm_params = { utm_source: 'whatdotheyknow.com',
utm_medium: 'link',
utm_campaign: 'body_page_more_info' } %>
<% twfy_url = %Q[https://www.theyworkforyou.com/search/?q="#{public_body.name}"] %>
<%= link_to _('Mentions in Parliament'), add_query_params_to_url(twfy_url, twfy_utm_params) %><br>

<% if public_body.has_tag?('charity') %>
<% public_body.get_tag_values('charity').each do |tag_value| %>
<% if tag_value.match(/^SC/) %>
Expand Down Expand Up @@ -123,7 +134,3 @@
<br>
<% end %>
<% end %>
<%= link_to _('View FOI email address'), view_public_body_email_path(public_body.url_name) %><br>

<%= link_to _("Ask us to update FOI email"), new_change_request_body_path(:body => public_body.url_name) %><br>

0 comments on commit a925ff7

Please sign in to comment.