diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index f9cd5b3..6861b54 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -13,3 +13,9 @@ *= require_tree . *= require_self */ +a .filterToggle:before { + content: "\e113"; +} +a.collapsed .filterToggle:before { + content: "\e114"; +} diff --git a/app/views/books/_index.html.erb b/app/views/books/_index.html.erb index 89ffd06..2737350 100644 --- a/app/views/books/_index.html.erb +++ b/app/views/books/_index.html.erb @@ -1,6 +1,16 @@ -<% content_for :latest_filter do - isLatest = session[:sort] == "latest" %> - <%= link_to "Latest", url_for(sort: (isLatest ? "alpha" : "latest")), class: "btn btn-default btn-sm " + (isLatest ? " active" : ""), remote: true %> +<% opts = { data: { url: url_for, remote: true, method: :get } } +content_for :latest_filter do %> +