implement saved searches, move user boolean settings to bitprefs
This commit is contained in:
9
app/views/saved_searches/_interface.html.erb
Normal file
9
app/views/saved_searches/_interface.html.erb
Normal file
@@ -0,0 +1,9 @@
|
||||
<% if CurrentUser.user.show_saved_searches? %>
|
||||
|
||||
<% if CurrentUser.user.has_saved_searches? && saved_searches.tagged(params[:tags]) %>
|
||||
<%= button_to "Remove this saved search", saved_search_path(saved_searches.tagged(params[:tags]), :tags => params[:tags]), :remote => true, :method => :delete %>
|
||||
<% elsif CurrentUser.user.is_member? %>
|
||||
<%= button_to "Save this search", saved_searches_path(:tags => params[:tags]), :remote => true, :method => :post %>
|
||||
<% end %>
|
||||
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user