diff options
| author | Gareth Rees <gareth@mysociety.org> | 2015-06-29 14:59:40 +0100 |
|---|---|---|
| committer | Gareth Rees <gareth@mysociety.org> | 2015-06-29 14:59:40 +0100 |
| commit | 8da72872b1096a6687dfe6b3a1cc84c93961e01b (patch) | |
| tree | 328b917df25692be2ed75532631d7c34607b8661 | |
| parent | 4ef28e12ca3fd93dc39bbd7148a07f19acf915c1 (diff) | |
Use link_to helper for consistency
| -rw-r--r-- | app/views/widgets/show.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/widgets/show.html.erb b/app/views/widgets/show.html.erb index 2ba19b472..84fd3688f 100644 --- a/app/views/widgets/show.html.erb +++ b/app/views/widgets/show.html.erb @@ -38,11 +38,11 @@ <% end %> <% else %> <% if @user %> - <a href="<%= url_for do_track_path(@track_thing) %>" target="_blank"> + <%= link_to do_track_path(@track_thing), :target => '_blank' do %> <div class="alaveteli-widget__button"> <%= _('I also want to know!') %> </div> - </a> + <% end %> <% else %> <%= form_tag request_widget_votes_url(@info_request), :method => 'post', :target => '_blank' do %> <%= submit_tag _('I also want to know!'), :class => 'alaveteli-widget__button' %> |
