Skip to content

Commit

Permalink
added back curr collection
Browse files Browse the repository at this point in the history
  • Loading branch information
ingridh committed Apr 17, 2015
1 parent 77408ef commit d65dea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/shared/_problems_table.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
%td
-if problems_index
/ =link_to "add to #{Collection.find(@current_user.current_collection).name} (current)", add_problem_path(:id => problem.id, :collection_id => @current_user.current_collection), {:id => "problem_#{problem.id}"}
/ %a{:class => "addlink", :id => "problem#{problem.id}", :onclick => "myfunction('#{problem.id}', #{@current_user..topbar-wrapper{:style => "z-index: 5;"}
%a{:class => "addlink", :id => "problem#{problem.id}", :onclick => "myfunction('#{problem.id}', #{@current_user.current_collection}); return false"} current collection
= select_tag "dropdown", options_from_collection_for_select(Collection.all, "id","name"), :onchange => "myfunction(#{problem.id}, this.value)",:include_blank => true
-else
=link_to "remove from this collection", remove_problem_path( :id => problem.id, :collection_id => collection), {:id => "problem_#{problem.id}"}

0 comments on commit d65dea4

Please sign in to comment.