From 4e29407497172488a140694d1add6d74109acd57 Mon Sep 17 00:00:00 2001 From: janpaulo Date: Mon, 28 Feb 2022 14:00:15 +0800 Subject: [PATCH] Enhance ui for subject index show --- .../src/application/pagination.scss | 9 +++++++++ app/views/subject_indexes/show.html.erb | 20 +++++++++---------- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/app/javascript/src/application/pagination.scss b/app/javascript/src/application/pagination.scss index f1e6c09..29fc6a4 100644 --- a/app/javascript/src/application/pagination.scss +++ b/app/javascript/src/application/pagination.scss @@ -19,4 +19,13 @@ .breadcrumb-item.active h4 { color: darkred !important; +} + +.subject-index-body-show h4 a { + color: #1d1a1a !important; + font-size: 20px !important; +} + +.subject-index-body-show h4 a:hover { + color: darkred !important; } \ No newline at end of file diff --git a/app/views/subject_indexes/show.html.erb b/app/views/subject_indexes/show.html.erb index bb62866..4818332 100644 --- a/app/views/subject_indexes/show.html.erb +++ b/app/views/subject_indexes/show.html.erb @@ -1,5 +1,5 @@
-
+
<% if @subject_index.is_root? %> @@ -9,11 +9,11 @@ <% else %> -
-
- Edit +
+ Edit <% if !@subject_index.has_children? %> Delete @@ -34,13 +34,13 @@
-
+
-

Sub Levels

- +
Sub Levels
+
-
+
<% @subject_index.children.order(name: :asc).each do |root| %>