From fa204a9afcc49b31d152d628ff95e65e7f1c334d Mon Sep 17 00:00:00 2001 From: alexdbondoc17 Date: Mon, 28 Feb 2022 01:30:57 +0000 Subject: [PATCH] Minor UI fixes --- .../doctrine_index_table_component.html.erb | 2 +- .../document_index_table_component.html.erb | 2 +- app/views/documents/show.html.erb | 12 ++++---- app/views/subject_indexes/show.html.erb | 30 +++++++++++++++++++ 4 files changed, 38 insertions(+), 8 deletions(-) diff --git a/app/components/doctrine_index_table_component/doctrine_index_table_component.html.erb b/app/components/doctrine_index_table_component/doctrine_index_table_component.html.erb index c873c51..8e6cb01 100644 --- a/app/components/doctrine_index_table_component/doctrine_index_table_component.html.erb +++ b/app/components/doctrine_index_table_component/doctrine_index_table_component.html.erb @@ -7,7 +7,7 @@ <% search_results.each do |search_result| %> - " class="clickable-tr"> + " class="clickable-link"> <%= document_reference_number(jurisprudence(search_result)) %> <%= document_title(jurisprudence(search_result)) %> <%= date_or_year(jurisprudence(search_result)) %> 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 6c6b0a3..5a42c81 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 @@ - + <%= clean_reference_number %> <%= short_title || title %> <%= date_or_year %> diff --git a/app/views/documents/show.html.erb b/app/views/documents/show.html.erb index 6ad94ef..c676889 100644 --- a/app/views/documents/show.html.erb +++ b/app/views/documents/show.html.erb @@ -46,13 +46,13 @@
@@ -78,9 +78,9 @@
-
+
-

Cited Ins Documents

+

Cited In

<%= render PaginationComponent.new(data: @cited_in_documents, opts: { is_cited_in_doc: true}) %>
@@ -91,7 +91,7 @@ - <%= render(DocumentIndexTableComponent.with_collection(@cited_in_documents, current_user: current_user)) %> + <%= render(DocumentIndexTableComponent.with_collection(Cdao::Jurisprudence.all, current_user: current_user)) %>
diff --git a/app/views/subject_indexes/show.html.erb b/app/views/subject_indexes/show.html.erb index ccd954c..bb62866 100644 --- a/app/views/subject_indexes/show.html.erb +++ b/app/views/subject_indexes/show.html.erb @@ -41,6 +41,36 @@
+
+ <% @subject_index.children.order(name: :asc).each do |root| %> +
+
+ <% if root.children.present? %> + + <% else %> + <%= link_to root.name, subject_index_path(root.id), class: "accordion-link text-decoration-none text-dark d-block sub1 clickable-link" %> + <%= link_to ''.html_safe, new_subject_index_path(parent_id: root.id), class: "text-decoration-none d-block sub1 clickable-link position-absolute end-0 accordion-action-button-margin non-toggle" %> + <% end %> +
+ +
" data-bs-parent="#mainPanelBody"> +
+
+
+ Loading... +
+
+
+
+
+ <% end %> +