diff --git a/app/components/document_index_table_component.rb b/app/components/document_index_table_component.rb index 9162df3..8138862 100644 --- a/app/components/document_index_table_component.rb +++ b/app/components/document_index_table_component.rb @@ -20,4 +20,9 @@ class DocumentIndexTableComponent < BaseComponent def doctrine_annotations_path(doctrine_id) doctrine_annotations_path(doctrine_id: doctrine_id) end + + def show_url + return document_path(search_result.id, is_citator_tab: true) if opts[:is_citator_tab].present? + document_path(search_result.id, opts[:search_params]) + end end diff --git a/app/components/document_index_table_component/document_index_table_component.html.erb b/app/components/document_index_table_component/document_index_table_component.html.erb index 5a42c81..88bc448 100644 --- a/app/components/document_index_table_component/document_index_table_component.html.erb +++ b/app/components/document_index_table_component/document_index_table_component.html.erb @@ -1,4 +1,4 @@ -