aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/request/widget.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/request/widget.html.erb')
-rw-r--r--app/views/request/widget.html.erb18
1 files changed, 13 insertions, 5 deletions
diff --git a/app/views/request/widget.html.erb b/app/views/request/widget.html.erb
index a196f40de..462170400 100644
--- a/app/views/request/widget.html.erb
+++ b/app/views/request/widget.html.erb
@@ -68,11 +68,19 @@
</div>
</a>
<% else %>
- <a href="<%= url_for do_track_path(@track_thing) %>" target="_blank">
- <div id="alawidget-button">
- <%= _('I also want to know!') %>
- </div>
- </a>
+ <% if @user %>
+ <a href="<%= url_for do_track_path(@track_thing) %>" target="_blank">
+ <div id="alawidget-button">
+ <%= _('I also want to know!') %>
+ </div>
+ </a>
+ <% else %>
+ <a href="<%= url_for :controller => 'track', :action => 'widget_vote', :info_request_id => @info_request %>" target="_blank">
+ <div id="alawidget-button">
+ <%= _('I also want to know!') %>
+ </div>
+ </a>
+ <% end %>
<% end %>
</div>
</div>