diff --git a/app/components/doctrine_index_component.rb b/app/components/doctrine_index_component.rb index 60bfc60..50218c0 100644 --- a/app/components/doctrine_index_component.rb +++ b/app/components/doctrine_index_component.rb @@ -40,6 +40,12 @@ class DoctrineIndexComponent < BaseComponent annotation.document.year end + def show_url + return document_doctrine_path(jurisprudence.id, id, is_index_table: false, subject_ids: opts[:subject_ids].reject(&:blank?)) if jurisprudence.present? + + doctrine_path(id, is_index_table: false, subject_ids: opts[:subject_ids].reject(&:blank?)) + end + def render? doctrine.present? && doctrine.persisted? end diff --git a/app/components/doctrine_index_component/doctrine_index_component.html.erb b/app/components/doctrine_index_component/doctrine_index_component.html.erb index a6a7a15..a442775 100644 --- a/app/components/doctrine_index_component/doctrine_index_component.html.erb +++ b/app/components/doctrine_index_component/doctrine_index_component.html.erb @@ -1,10 +1,4 @@ -