From 95e5fe8b8fb1e16c71ffbed6681ab8b2203249d4 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 1 Jul 2025 21:43:13 +0200 Subject: Add subtitles to pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- app/controllers/shared_searches_controller.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/controllers/shared_searches_controller.rb') diff --git a/app/controllers/shared_searches_controller.rb b/app/controllers/shared_searches_controller.rb index ca65539..ffdd56e 100644 --- a/app/controllers/shared_searches_controller.rb +++ b/app/controllers/shared_searches_controller.rb @@ -6,10 +6,12 @@ class SharedSearchesController < ApplicationController def index @searches = Search.order(:name) @saved_searches = @searches.where(shared: true) + @subtitle = I18n.t('searches.shared.title') end def show @search = Search.where(shared: true).find(params[:search_id]) + @subtitle = @search.name @results = @search.results.values.flatten end end -- cgit v1.2.3