aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/shared_searches_controller.rb
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2025-07-01 21:43:13 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2025-07-01 21:48:28 +0200
commit95e5fe8b8fb1e16c71ffbed6681ab8b2203249d4 (patch)
tree0f6dc99d031a499befbbcbb301b7fd1a62af125b /app/controllers/shared_searches_controller.rb
parent28399cd9a549cc4edf8c557883c940532821c28d (diff)
downloadoperum-95e5fe8b8fb1e16c71ffbed6681ab8b2203249d4.tar.gz
operum-95e5fe8b8fb1e16c71ffbed6681ab8b2203249d4.zip
Add subtitles to pages
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'app/controllers/shared_searches_controller.rb')
-rw-r--r--app/controllers/shared_searches_controller.rb2
1 files changed, 2 insertions, 0 deletions
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