diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-10-02 10:16:09 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-12-19 13:57:51 +0000 |
commit | b86b8e4107914613006cc22e97e859ec309448be (patch) | |
tree | 1532765d2222660da3f63922df9a25ed8e7180ae | |
parent | 58129ebd59a91d643ca886edd5fe6e52455b1b61 (diff) |
Cleanup syntax
-rw-r--r-- | app/views/request/_act.html.erb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/views/request/_act.html.erb b/app/views/request/_act.html.erb index 1199cb4a2..878cdf4ff 100644 --- a/app/views/request/_act.html.erb +++ b/app/views/request/_act.html.erb @@ -1,7 +1,14 @@ <h2><%= _("Act on what you've learnt") %></h2> <div class="act_link"> - <% tweet_link = "https://twitter.com/share?" + {:url => request.url, :via => AlaveteliConfiguration::twitter_username, :text => "'#{@info_request.title}'", :related => _('alaveteli_foi:The software that runs {{site_name}}', :site_name => site_name)}.to_query %> + <% tweet_link = "https://twitter.com/share?" << { + :url => request.url, + :via => AlaveteliConfiguration.twitter_username, + :text => "'#{ @info_request.title }'", + :related => _('alaveteli_foi:The software that runs {{site_name}}', :site_name => site_name) + }.to_query + %> + <% link_to tweet_link do %> <%= image_tag "twitter-16.png", :alt => "twitter icon" %> <% end %> |