Make it look like the filter
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
.bucket {
|
||||
inline-size: 45ch;
|
||||
line-height: 1.2;
|
||||
|
||||
mark {
|
||||
background-color: transparent;
|
||||
color: var(--color-link);
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
.buckets {
|
||||
|
||||
@@ -15,10 +15,10 @@ module Bucket::View::Summarized
|
||||
end
|
||||
|
||||
def assignee_summary
|
||||
"assigned to #{assignee_names.to_choice_sentence}" if assignee_names.any?
|
||||
"assigned to <mark>#{assignee_names.to_choice_sentence}</mark>" if assignee_names.any?
|
||||
end
|
||||
|
||||
def tag_summary
|
||||
"tagged #{tag_names.to_choice_sentence}" if tag_names.any?
|
||||
"tagged <mark>#{tag_names.to_choice_sentence}</mark>" if tag_names.any?
|
||||
end
|
||||
end
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
<div class="flex align-center justify-center flex-column flex-wrap center">
|
||||
<%= link_to path, class: "txt-ink flex flex-column" do %>
|
||||
<strong class="txt-x-large"><%= view.summary %> in <%= view.bucket.name %></strong>
|
||||
<strong class="txt-x-large"><%= view.summary.html_safe %> in <mark><%= view.bucket.name %></mark></strong>
|
||||
<% end %>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user