diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index d551462b220..bb41eda51c5 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -64,7 +64,13 @@ time[title] { .table-success { --bs-table-bg: rgb(var(--bs-success-rgb), .25); } - .table-primary, .table-secondary, .table-success { + .table-warning { + --bs-table-bg: rgb(var(--bs-warning-rgb), .25); + } + .table-danger { + --bs-table-bg: rgb(var(--bs-danger-rgb), .25); + } + .table-primary, .table-secondary, .table-success, .table-warning, .table-danger { --bs-table-color: initial; border-color: inherit; } diff --git a/app/views/notes/index.html.erb b/app/views/notes/index.html.erb index d5efe0d79c7..ebfcd54a7da 100644 --- a/app/views/notes/index.html.erb +++ b/app/views/notes/index.html.erb @@ -1,9 +1,11 @@ <% content_for :heading do %>
<%= t ".subheading_html", - :user => link_to(@user.display_name, @user), - :submitted => tag.span(t(".subheading_submitted"), :class => "px-2 py-1 bg-primary bg-opacity-25"), - :commented => tag.span(t(".subheading_commented"), :class => "px-2 py-1 bg-body") %>
+<%= t ".subheading_html", + :user => link_to(@user.display_name, @user), + :submitted => tag.span(t(".subheading_submitted"), :class => "px-2 py-1 bg-danger bg-opacity-25"), + :submitted_and_resolved => tag.span(t(".subheading_submitted_and_resolved"), :class => "px-2 py-1 bg-warning bg-opacity-25"), + :resolved => tag.span(t(".subheading_resolved"), :class => "px-2 py-1 bg-success bg-opacity-25"), + :commented => tag.span(t(".subheading_commented"), :class => "px-2 py-1 bg-body") %>
<% end %> <% if @notes.empty? %> @@ -24,7 +26,15 @@ <% @notes.each do |note| -%> -