diff --git a/app/controllers/libraries_controller.rb b/app/controllers/libraries_controller.rb index 9519ee3c9..b3475107b 100644 --- a/app/controllers/libraries_controller.rb +++ b/app/controllers/libraries_controller.rb @@ -9,6 +9,8 @@ class LibrariesController < ApplicationController def show @library = Library.find(params[:id]) + @models = @library.models + @models = @models.tagged_with(params[:tag]) if params[:tag] end def new diff --git a/app/views/libraries/show.html.erb b/app/views/libraries/show.html.erb index 63c84a333..aa4802a7c 100644 --- a/app/views/libraries/show.html.erb +++ b/app/views/libraries/show.html.erb @@ -1,14 +1,24 @@ <%= link_to "Rescan", library_path(@library), method: :patch, class: 'float-end btn btn-warning' %>