Refactor popup item class names
This commit is contained in:
@@ -221,7 +221,7 @@
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.btn:not(.popup__item, .btn--plain, .btn--reversed) {
|
||||
.btn:not(.popup__btn, .btn--plain, .btn--reversed) {
|
||||
--btn-background: var(--card-color);
|
||||
--btn-color: var(--color-ink-inverted);
|
||||
}
|
||||
|
||||
@@ -27,6 +27,10 @@
|
||||
@media (prefers-color-scheme: dark) {
|
||||
box-shadow: 0 0 0 1px var(--color-ink-lighter);
|
||||
}
|
||||
|
||||
.popup {
|
||||
inline-size: 260px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Header
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
max-inline-size: 100%;
|
||||
|
||||
/* When all its children are hidden, hide this as well so it doesn't take up space */
|
||||
&:has(.popup__group[hidden]):not(:has(.popup__group:not([hidden]))) {
|
||||
&:has(.popup__item[hidden]):not(:has(.popup__item:not([hidden]))) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
@@ -20,6 +20,11 @@
|
||||
max-inline-size: 100dvw;
|
||||
}
|
||||
|
||||
:where(#header) {
|
||||
position: relative;
|
||||
z-index: var(--z-nav);
|
||||
}
|
||||
|
||||
:is(#header, #footer) {
|
||||
@media print {
|
||||
display: none;
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
--panel-border-radius: 0.5em;
|
||||
--panel-padding: var(--block-space);
|
||||
--panel-size: auto;
|
||||
--btn-background: transparent;
|
||||
|
||||
inset: 0 auto auto 50%;
|
||||
max-block-size: 80vh;
|
||||
@@ -31,13 +32,8 @@
|
||||
--panel-padding: var(--block-space) var(--block-space) 0 var(--block-space);
|
||||
}
|
||||
|
||||
#header:has(&) {
|
||||
position: relative;
|
||||
z-index: var(--z-nav);
|
||||
}
|
||||
|
||||
.card & {
|
||||
inline-size: 260px;
|
||||
form {
|
||||
display: contents;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,40 +42,9 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.popup__group {
|
||||
align-items: center;
|
||||
background: transparent;
|
||||
border-radius: 0.3em;
|
||||
display: flex;
|
||||
inline-size: 100%;
|
||||
max-inline-size: 100%;
|
||||
.popup__section {}
|
||||
|
||||
.popup__list &:has(*:first-child:not(.popup__item)) {
|
||||
padding-inline-start: var(--inline-space-half);
|
||||
}
|
||||
|
||||
.btn {
|
||||
--btn-background: transparent;
|
||||
}
|
||||
|
||||
@media (any-hover: hover) {
|
||||
&:hover {
|
||||
background: var(--color-ink-lightest);
|
||||
}
|
||||
}
|
||||
|
||||
&[aria-selected] {
|
||||
background-color: var(--color-selected);
|
||||
|
||||
@media (any-hover: hover) {
|
||||
&:hover {
|
||||
background-color: var(--color-selected);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.popup__group-title {
|
||||
.popup__section-title {
|
||||
background: var(--color-canvas);
|
||||
font-size: var(--text-small);
|
||||
font-weight: bold;
|
||||
@@ -106,13 +71,43 @@
|
||||
row-gap: 2px;
|
||||
|
||||
/* Hide lists when all the items within are hidden */
|
||||
&:has(.popup__group-title:only-child),
|
||||
&:has(.popup__group[hidden]):not(:has(.popup__group:not([hidden]))) {
|
||||
&:has(.popup__section-title:only-child),
|
||||
&:has(.popup__item[hidden]):not(:has(.popup__item:not([hidden]))) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.popup__item {
|
||||
align-items: center;
|
||||
background: transparent;
|
||||
border-radius: 0.3em;
|
||||
display: flex;
|
||||
inline-size: 100%;
|
||||
max-inline-size: 100%;
|
||||
|
||||
/* .popup__list &:has(*:first-child:not(.popup__btn)) {
|
||||
padding-inline-start: var(--inline-space-half);
|
||||
} */
|
||||
|
||||
@media (any-hover: hover) {
|
||||
&:hover {
|
||||
background: var(--color-ink-lightest);
|
||||
}
|
||||
}
|
||||
|
||||
&[aria-selected] {
|
||||
background-color: var(--color-selected);
|
||||
|
||||
@media (any-hover: hover) {
|
||||
&:hover {
|
||||
background-color: var(--color-selected);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* The actionable thing with padding within popup__item */
|
||||
.popup__btn {
|
||||
--btn-background: transparent;
|
||||
--btn-border-radius: 0.3em;
|
||||
--btn-border-size: 0;
|
||||
@@ -126,12 +121,6 @@
|
||||
max-inline-size: 100%;
|
||||
text-align: start;
|
||||
|
||||
@media (any-hover: hover) {
|
||||
&:where(:not(:active):hover) {
|
||||
--btn-background: var(--color-selected);
|
||||
}
|
||||
}
|
||||
|
||||
.icon {
|
||||
--icon-size: 1em;
|
||||
}
|
||||
@@ -152,16 +141,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
.popup__new {
|
||||
--btn-icon-size: 1em;
|
||||
|
||||
padding-inline-start: var(--inline-space-half);
|
||||
|
||||
.icon {
|
||||
margin-inline-end: 0.5em;
|
||||
}
|
||||
}
|
||||
|
||||
.popup__footer {
|
||||
background-color: var(--color-canvas);
|
||||
border-block-start: 1px solid var(--color-ink-lighter);
|
||||
|
||||
@@ -16,9 +16,9 @@ module FiltersHelper
|
||||
end
|
||||
|
||||
def filter_place_menu_item(path, label, icon)
|
||||
tag.li class: "popup__group", id: "filter-place-#{label.parameterize}", data: { filter_target: "item", navigable_list_target: "item" } do
|
||||
tag.li class: "popup__item", id: "filter-place-#{label.parameterize}", data: { filter_target: "item", navigable_list_target: "item" } do
|
||||
concat icon_tag(icon)
|
||||
concat(link_to(path, class: "popup__item btn") do
|
||||
concat(link_to(path, class: "popup__btn btn") do
|
||||
concat tag.span(label, class: "overflow-ellipsis")
|
||||
concat tag.span(" ›", class: "translucent flex-item-no-shrink flex-item-justify-end")
|
||||
end)
|
||||
@@ -37,7 +37,7 @@ module FiltersHelper
|
||||
end
|
||||
|
||||
def filter_hotkey_link(title, path, key, icon)
|
||||
link_to path, class: "popup__group btn borderless", id: "filter-hotkey-#{key}", role: "listitem", data: { filter_target: "item", navigable_list_target: "item", controller: "hotkey", action: "keydown.#{key}@document->hotkey#click keydown.shift+#{key}@document->hotkey#click" } do
|
||||
link_to path, class: "popup__item btn borderless", id: "filter-hotkey-#{key}", role: "listitem", data: { filter_target: "item", navigable_list_target: "item", controller: "hotkey", action: "keydown.#{key}@document->hotkey#click keydown.shift+#{key}@document->hotkey#click" } do
|
||||
concat icon_tag(icon)
|
||||
concat tag.span(title.html_safe)
|
||||
concat tag.kbd(key)
|
||||
|
||||
@@ -14,9 +14,9 @@
|
||||
|
||||
<ul class="popup__list" data-filter-target="list">
|
||||
<% @collection.users.active.alphabetically.each do |user| %>
|
||||
<li class="popup__group" data-filter-target="item" data-navigable-list-target="item">
|
||||
<li class="popup__item" data-filter-target="item" data-navigable-list-target="item">
|
||||
<%= button_to card_assignments_path(@card, params: { assignee_id: user.id }), method: :post,
|
||||
class: "popup__item btn",
|
||||
class: "popup__btn btn",
|
||||
form_class: "max-width flex-item-grow" do %>
|
||||
<span class="overflow-ellipsis flex-item-grow"><%= user.name %></span>
|
||||
<%= icon_tag "check", size: 18, class: "checked flex-item-no-shrink flex-item-justify-end", style: "--icon-size: 1em" if @card.assignees.include?(user) %>
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
|
||||
<ul class="popup__list margin-block-start-half margin-none-block-end" data-filter-target="list">
|
||||
<% Current.user.collections.ordered_by_recently_accessed.each do |collection| %>
|
||||
<li class="popup__group" data-filter-target="item" data-navigable-list-target="item">
|
||||
<li class="popup__item" data-filter-target="item" data-navigable-list-target="item">
|
||||
<%= button_to card_collection_path(card, params: { collection_id: collection.id }), method: :patch,
|
||||
class: "popup__item btn",
|
||||
class: "popup__btn btn",
|
||||
form_class: "max-width flex-item-grow" do %>
|
||||
<span class="overflow-ellipsis flex-item-grow"><%= collection.name %></span>
|
||||
<%= icon_tag "check", size: 18, class: "checked flex-item-no-shrink flex-item-justify-end", style: "--icon-size: 1em" if card.collection == collection %>
|
||||
|
||||
@@ -5,14 +5,14 @@
|
||||
<% end %>
|
||||
|
||||
<% if Current.user.collections.one? %>
|
||||
<%= link_to cards_path(filter.as_params.except(:collection_ids)), class: "popup__group", id: "filter-collection-init", data: { filter_target: "item", navigable_list_target: "item" } do %>
|
||||
<%= tag.div class: "popup__item btn" do %>
|
||||
<%= link_to cards_path(filter.as_params.except(:collection_ids)), class: "popup__item", id: "filter-collection-init", data: { filter_target: "item", navigable_list_target: "item" } do %>
|
||||
<%= tag.div class: "popup__btn btn" do %>
|
||||
<span class="overflow-ellipsis"><%= Current.user.collections.first.name %></span>
|
||||
<span class="txt-ink translucent flex-item-no-shrink flex-item-justify-end"><span class="txt-x-small txt-uppercase">GO TO</span> ›</span>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% elsif Current.user.collections.many? %>
|
||||
<%= link_to cards_path(filter.as_params.except(:collection_ids)), class: "popup__group", id: "filter-collections-all", data: { filter_target: "item", navigable_list_target: "item" } do %>
|
||||
<%= link_to cards_path(filter.as_params.except(:collection_ids)), class: "popup__item", id: "filter-collections-all", data: { filter_target: "item", navigable_list_target: "item" } do %>
|
||||
<label class="popup__radio btn txt-xx-small flex-item-no-shrink">
|
||||
<input type="checkbox" <%= "checked" if filter.collection_ids.empty? %>>
|
||||
|
||||
@@ -21,14 +21,14 @@
|
||||
</span>
|
||||
<%= icon_tag "check", size: 18, class: "checked" %>
|
||||
</label>
|
||||
<%= tag.div class: "popup__item btn" do %>
|
||||
<%= tag.div class: "popup__btn btn" do %>
|
||||
<span class="overflow-ellipsis">All collections</span>
|
||||
<span class="txt-ink translucent flex-item-no-shrink flex-item-justify-end"><span class="txt-x-small txt-uppercase">GO TO</span> ›</span>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<% Current.user.collections.ordered_by_recently_accessed.each do |collection| %>
|
||||
<li class="popup__group" data-filter-target="item" data-navigable-list-target="item" id="<%= "filter-collection-#{collection.id}" %>">
|
||||
<li class="popup__item" data-filter-target="item" data-navigable-list-target="item" id="<%= "filter-collection-#{collection.id}" %>">
|
||||
<label class="popup__radio btn txt-xx-small flex-item-no-shrink">
|
||||
<%= form.check_box "collection_ids[]", {
|
||||
checked: filter.collections.include?(collection),
|
||||
@@ -42,7 +42,7 @@
|
||||
<%= icon_tag "check", size: 18, class: "checked" %>
|
||||
</label>
|
||||
|
||||
<%= link_to cards_path(collection_ids: [ collection ]), class: "popup__item btn" do %>
|
||||
<%= link_to cards_path(collection_ids: [ collection ]), class: "popup__btn btn" do %>
|
||||
<span class="overflow-ellipsis"><%= collection.name %></span>
|
||||
<span class="translucent flex-item-no-shrink flex-item-justify-end"> ›</span>
|
||||
<% end %>
|
||||
|
||||
@@ -17,12 +17,12 @@
|
||||
<%= filter_hidden_field_tag key, value %>
|
||||
<% end %>
|
||||
|
||||
<%= link_to cards_path(filter.as_params.except(:stage_ids, :engagement_status)), class: "popup__item btn" do %>
|
||||
<%= link_to cards_path(filter.as_params.except(:stage_ids, :engagement_status)), class: "popup__btn btn" do %>
|
||||
<span class="overflow-ellipsis">All stages</span>
|
||||
<% end %>
|
||||
|
||||
<% workflow.stages.each do |stage| %>
|
||||
<div class="popup__item btn">
|
||||
<div class="popup__btn btn">
|
||||
<%= form.check_box :stage_ids, {
|
||||
multiple: true,
|
||||
checked: filter.stages.include?(stage),
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
<li class="popup__group-title">Collections</li>
|
||||
<li class="popup__section-title">Collections</li>
|
||||
<%= form_with url: cards_path, method: :get, class: "display-contents",
|
||||
data: { controller: "form" } do |form| %>
|
||||
<% if Current.user.collections.one? %>
|
||||
<%= link_to cards_path, class: "popup__group", data: { filter_target: "item", navigable_list_target: "item" } do %>
|
||||
<%= tag.div class: "popup__item btn" do %>
|
||||
<%= link_to cards_path, class: "popup__item", data: { filter_target: "item", navigable_list_target: "item" } do %>
|
||||
<%= tag.div class: "popup__btn btn" do %>
|
||||
<span class="overflow-ellipsis"><%= Current.user.collections.first.name %></span>
|
||||
<span class="txt-ink translucent flex-item-no-shrink flex-item-justify-end"><span class="txt-x-small txt-uppercase">GO TO</span> ›</span>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% elsif Current.user.collections.many? %>
|
||||
<li>
|
||||
<%= link_to cards_path, class: "popup__group", data: { filter_target: "item", navigable_list_target: "item" } do %>
|
||||
<%= link_to cards_path, class: "popup__item", data: { filter_target: "item", navigable_list_target: "item" } do %>
|
||||
<label class="btn txt-xx-small flex-item-no-shrink">
|
||||
<input type="checkbox">
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
</span>
|
||||
<%= icon_tag "check", size: 18, class: "checked" %>
|
||||
</label>
|
||||
<%= tag.div class: "popup__item btn" do %>
|
||||
<%= tag.div class: "popup__btn btn" do %>
|
||||
<span class="overflow-ellipsis">All collections</span>
|
||||
<span class="txt-ink translucent flex-item-no-shrink flex-item-justify-end"><span class="txt-x-small txt-uppercase">GO TO</span> ›</span>
|
||||
<% end %>
|
||||
@@ -27,7 +27,7 @@
|
||||
</li>
|
||||
|
||||
<% Current.user.collections.ordered_by_recently_accessed.each do |collection| %>
|
||||
<li class="popup__group" data-filter-target="item" data-navigable-list-target="item">
|
||||
<li class="popup__item" data-filter-target="item" data-navigable-list-target="item">
|
||||
<label class="btn txt-xx-small flex-item-no-shrink">
|
||||
<%= form.check_box "collection_ids[]", {
|
||||
checked: collection == @collection,
|
||||
@@ -41,7 +41,7 @@
|
||||
<%= icon_tag "check", size: 18, class: "checked" %>
|
||||
</label>
|
||||
|
||||
<%= link_to cards_path(collection_ids: [ collection ]), class: "popup__item btn" do %>
|
||||
<%= link_to cards_path(collection_ids: [ collection ]), class: "popup__btn btn" do %>
|
||||
<span class="overflow-ellipsis"><%= collection.name %></span>
|
||||
<span class="translucent flex-item-no-shrink flex-item-justify-end"> ›</span>
|
||||
<% end %>
|
||||
|
||||
@@ -14,9 +14,9 @@
|
||||
|
||||
<ul class="popup__list" data-filter-target="list">
|
||||
<% @tags.each do |tag| %>
|
||||
<li class="popup__group" data-filter-target="item" data-navigable-list-target="item">
|
||||
<li class="popup__item" data-filter-target="item" data-navigable-list-target="item">
|
||||
<%= button_to card_taggings_path(@card, params: { tag_title: tag.title }), method: :post,
|
||||
class: "popup__item btn",
|
||||
class: "popup__btn btn",
|
||||
form_class: "max-width flex-item-grow" do %>
|
||||
<span class="overflow-ellipsis flex-item-grow"><%= tag.hashtag %></span>
|
||||
<%= icon_tag "check", size: 18, class: "checked flex-item-no-shrink flex-item-justify-end", style: "--icon-size: 1em" if @card.tagged_with?(tag) %>
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
<% if user_filtering.collections.any? %>
|
||||
<details open>
|
||||
<summary class="popup__group-title">Collections</summary>
|
||||
|
||||
<%= form_with url: user_filtering.self_filter_path, method: :get, class: "display-contents", data: { controller: "form" } do |form| %>
|
||||
<details class="popup__section" open>
|
||||
<summary class="popup__section-title">Collections</summary>
|
||||
<%= form_with url: user_filtering.self_filter_path, method: :get, data: { controller: "form" } do |form| %>
|
||||
<ul class="popup__list">
|
||||
<%= render "filters/menu/collections/all_option", form: form, user_filtering: user_filtering %>
|
||||
<%= render partial: "filters/menu/collections/collection", collection: user_filtering.collections, as: :collection, locals: { form: form, user_filtering: user_filtering } %>
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
<%= form_with url: cards_path, method: :get, class: "display-contents",
|
||||
data: { controller: "form" } do |form| %>
|
||||
|
||||
<%= form_with url: cards_path, method: :get, data: { controller: "form" } do |form| %>
|
||||
<div class="popup__section-title">Saved filters</div>
|
||||
<ul class="popup__list">
|
||||
<li class="popup__group-title">Saved filters</li>
|
||||
|
||||
<%= render "filters/menu/custom/create" %>
|
||||
<%= render partial: "filters/menu/custom/filter", collection: user_filtering.filters, as: :filter, locals: { user_filtering: user_filtering } %>
|
||||
</ul>
|
||||
|
||||
<% end %>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<div class="popup__section-title">Jump to…</div>
|
||||
<ul class="popup__list">
|
||||
<li class="popup__group-title">Jump to…</li>
|
||||
|
||||
<%= filter_place_menu_item account_settings_path, "Account Settings", "settings" %>
|
||||
<%= filter_place_menu_item user_path(Current.user), "My Profile", "person" %>
|
||||
<%= filter_place_menu_item notifications_path, "Notifications", "bell" %>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div class="popup__section-title">Tags</div>
|
||||
<ul class="popup__list">
|
||||
<li class="popup__group-title">Tags</li>
|
||||
<%= render partial: "filters/menu/tags/tag", collection: user_filtering.tags, as: :tag %>
|
||||
</ul>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div class="popup__section-title">People</div>
|
||||
<ul class="popup__list">
|
||||
<li class="popup__group-title">People</li>
|
||||
<%= render partial: "filters/menu/users/user", collection: user_filtering.users, as: :user %>
|
||||
</ul>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<% clear_url_path = user_filtering.self_filter_path(user_filtering.as_params.except(:collection_ids)) %>
|
||||
|
||||
<% if Current.user.collections.many? %>
|
||||
<li class="popup__group" data-filter-target="item" data-navigable-list-target="item" id="filter-collection-all">
|
||||
<li class="popup__item" data-filter-target="item" data-navigable-list-target="item" id="filter-collection-all">
|
||||
<%= link_to clear_url_path, class: "btn txt-xx-small flex-item-no-shrink" do %>
|
||||
<%= check_box_tag "filter_collections", nil, user_filtering.collections.blank?, class: "form-checkbox" %>
|
||||
<span class="for-screen-reader">
|
||||
@@ -10,7 +10,7 @@
|
||||
<%= icon_tag "check", size: 18, class: "checked" %>
|
||||
<% end %>
|
||||
|
||||
<%= link_to clear_url_path, class: "popup__item btn" do %>
|
||||
<%= link_to clear_url_path, class: "popup__btn btn" do %>
|
||||
<span class="overflow-ellipsis">All collections</span>
|
||||
<span class="txt-ink translucent flex-item-no-shrink flex-item-justify-end"><span class="txt-x-small txt-uppercase">GO TO</span> ›</span>
|
||||
<% end %>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<li class="popup__group" data-filter-target="item" data-navigable-list-target="item" id="filter-collection-<%= collection.id %>">
|
||||
<li class="popup__item" data-filter-target="item" data-navigable-list-target="item" id="filter-collection-<%= collection.id %>">
|
||||
<label class="btn txt-xx-small">
|
||||
<%= form.check_box "collection_ids[]", {
|
||||
checked: user_filtering.filter.collections.include?(collection),
|
||||
@@ -12,7 +12,7 @@
|
||||
<%= icon_tag "check", size: 18, class: "checked" %>
|
||||
</label>
|
||||
|
||||
<%= link_to cards_path(collection_ids: [ collection ]), class: "popup__item btn" do %>
|
||||
<%= link_to cards_path(collection_ids: [ collection ]), class: "popup__btn btn" do %>
|
||||
<span class="overflow-ellipsis"><%= collection.name %></span>
|
||||
<span class="translucent flex-item-no-shrink flex-item-justify-end"> ›</span>
|
||||
<% end %>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<li class="popup__group gap-half overflow-ellipsis" data-navigable-list-target="item" data-filter-target="item" id="filter-custom-create">
|
||||
<%= link_to cards_path(expand_all: true), class: "btn popup__new popup__item" do %>
|
||||
<li class="popup__item overflow-ellipsis" data-navigable-list-target="item" data-filter-target="item" id="filter-custom-create">
|
||||
<%= link_to cards_path(expand_all: true), class: "popup__btn btn" do %>
|
||||
<%= icon_tag "bookmark" %>
|
||||
<div class="flex flex-column txt-tight-lines min-width txt-small">
|
||||
<strong class="overflow-ellipsis">Create a new filter</strong>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<li class="popup__group gap-half overflow-ellipsis" data-filter-target="item" data-navigable-list-target="item" id="filter-custom-<%= filter.id %>">
|
||||
<%= link_to cards_path(filter_id: filter.id), class: "btn popup__new popup__item" do %>
|
||||
<li class="popup__item overflow-ellipsis" data-filter-target="item" data-navigable-list-target="item" id="filter-custom-<%= filter.id %>">
|
||||
<%= link_to cards_path(filter_id: filter.id), class: "popup__btn btn" do %>
|
||||
<%= icon_tag "bookmark" %>
|
||||
<div class="flex flex-column txt-tight-lines min-width txt-small">
|
||||
<span class="overflow-ellipsis"><%= filter_selected_collections_title(user_filtering) %></span>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<li class="popup__group" data-filter-target="item" data-navigable-list-target="item" id="<%= "filter-tag-#{tag.id}" %>">
|
||||
<li class="popup__item" data-filter-target="item" data-navigable-list-target="item" id="<%= "filter-tag-#{tag.id}" %>">
|
||||
<%= icon_tag "tag" %>
|
||||
<%= link_to cards_path(tag_ids: [tag]), class: "popup__item btn" do %>
|
||||
<%= link_to cards_path(tag_ids: [tag]), class: "popup__btn btn" do %>
|
||||
<span class="overflow-ellipsis"><%= tag.title %> (<%= tag.cards_count %>)</span>
|
||||
<span class="translucent flex-item-no-shrink flex-item-justify-end"> ›</span>
|
||||
<% end %>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<li class="popup__group" data-filter-target="item" data-navigable-list-target="item" id="<%= "filter-user-#{user.id}" %>">
|
||||
<li class="popup__item" data-filter-target="item" data-navigable-list-target="item" id="<%= "filter-user-#{user.id}" %>">
|
||||
<%= icon_tag "person" %>
|
||||
<%= link_to user, class: "popup__item btn" do %>
|
||||
<%= link_to user, class: "popup__btn btn" do %>
|
||||
<span class="overflow-ellipsis"><%= user.name %></span>
|
||||
<span class="translucent flex-item-no-shrink flex-item-justify-end"> ›</span>
|
||||
<% end %>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<% end %>
|
||||
|
||||
<ul class="popup__list" data-filter-target="list">
|
||||
<li class="popup__group" data-filter-target="item" data-navigable-list-target="item">
|
||||
<li class="popup__item" data-filter-target="item" data-navigable-list-target="item">
|
||||
<%= form_with url: cards_path, method: :get, class: "full-width", data: { controller: "form" } do |form| %>
|
||||
<% filter.as_params.except(:assignee_ids, :assignment_status).each do |key, value| %>
|
||||
<%= filter_hidden_field_tag key, value %>
|
||||
@@ -36,7 +36,7 @@
|
||||
<%= hidden_field_tag :expand_all, user_filtering.expanded? %>
|
||||
<% end %>
|
||||
|
||||
<%= form.button type: "submit", class: "popup__item btn" do %>
|
||||
<%= form.button type: "submit", class: "popup__btn btn" do %>
|
||||
<span class="overflow-ellipsis flex-item-grow">No one</span>
|
||||
<% if filter.assignment_status.unassigned? %>
|
||||
<%= icon_tag "check", class: "checked flex-item-justify-end" %>
|
||||
@@ -45,7 +45,7 @@
|
||||
<% end %>
|
||||
</li>
|
||||
<% User.active.order(:name).each do |user| %>
|
||||
<li class="popup__group" data-filter-target="item" data-navigable-list-target="item">
|
||||
<li class="popup__item" data-filter-target="item" data-navigable-list-target="item">
|
||||
<%= form_with url: cards_path, method: :get, class: "full-width", data: { controller: "form" } do |form| %>
|
||||
<% filter.as_params.except(:assignee_ids, :assignment_status).each do |key, value| %>
|
||||
<%= filter_hidden_field_tag key, value %>
|
||||
@@ -65,7 +65,7 @@
|
||||
<%= hidden_field_tag :expand_all, user_filtering.expanded? %>
|
||||
<% end %>
|
||||
|
||||
<%= form.button type: "submit", class: "popup__item btn" do %>
|
||||
<%= form.button type: "submit", class: "popup__btn btn" do %>
|
||||
<span class="overflow-ellipsis flex-item-grow"><%= user.name %></span>
|
||||
<% if filter.assignees.include?(user) %>
|
||||
<%= icon_tag "check", class: "checked flex-item-justify-end" %>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
<ul class="popup__list" data-filter-target="list">
|
||||
<% user_filtering.users.each do |user| %>
|
||||
<li class="popup__group" data-filter-target="item" data-navigable-list-target="item">
|
||||
<li class="popup__item" data-filter-target="item" data-navigable-list-target="item">
|
||||
<%= form_with url: cards_path, method: :get, class: "full-width", data: { controller: "form" } do |form| %>
|
||||
<% filter.as_params.except(:closer_ids).each do |key, value| %>
|
||||
<%= filter_hidden_field_tag key, value %>
|
||||
@@ -43,7 +43,7 @@
|
||||
<%= hidden_field_tag :expand_all, user_filtering.expanded? %>
|
||||
<% end %>
|
||||
|
||||
<%= form.button type: "submit", class: "popup__item btn" do %>
|
||||
<%= form.button type: "submit", class: "popup__btn btn" do %>
|
||||
<span class="overflow-ellipsis flex-item-grow"><%= user.name %></span>
|
||||
<% if filter.closers.include?(user) %>
|
||||
<%= icon_tag "check", class: "checked flex-item-justify-end" %>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
<ul class="popup__list" data-filter-target="list">
|
||||
<% user_filtering.users.each do |user| %>
|
||||
<li class="popup__group" data-filter-target="item" data-navigable-list-target="item">
|
||||
<li class="popup__item" data-filter-target="item" data-navigable-list-target="item">
|
||||
<%= form_with url: cards_path, method: :get, class: "full-width", data: { controller: "form" } do |form| %>
|
||||
<% filter.as_params.except(:creator_ids).each do |key, value| %>
|
||||
<%= filter_hidden_field_tag key, value %>
|
||||
@@ -43,7 +43,7 @@
|
||||
<%= hidden_field_tag :expand_all, user_filtering.expanded? %>
|
||||
<% end %>
|
||||
|
||||
<%= form.button type: "submit", class: "popup__item btn" do %>
|
||||
<%= form.button type: "submit", class: "popup__btn btn" do %>
|
||||
<span class="overflow-ellipsis flex-item-grow"><%= user.name %></span>
|
||||
<% if filter.creators.include?(user) %>
|
||||
<%= icon_tag "check", class: "checked flex-item-justify-end" %>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
<ul class="popup__list" data-filter-target="list">
|
||||
<% Filter::INDEXES.each do |index| %>
|
||||
<li class="popup__group" data-navigable-list-target="item">
|
||||
<li class="popup__item" data-navigable-list-target="item">
|
||||
<%= form_with url: cards_path, method: :get, class: "full-width", data: { controller: "form" } do |form| %>
|
||||
<% filter.as_params.except(:indexed_by).each do |key, value| %>
|
||||
<%= filter_hidden_field_tag key, value %>
|
||||
@@ -25,7 +25,7 @@
|
||||
<%= hidden_field_tag :expand_all, user_filtering.expanded? %>
|
||||
<% end %>
|
||||
|
||||
<%= form.button type: "submit", class: "popup__item btn" do %>
|
||||
<%= form.button type: "submit", class: "popup__btn btn" do %>
|
||||
<span class="overflow-ellipsis flex-item-grow"><%= index.humanize %></span>
|
||||
<% if filter.indexed_by == index %>
|
||||
<%= icon_tag "check", class: "checked flex-item-justify-end" %>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
<ul class="popup__list" data-filter-target="list">
|
||||
<% Filter::SORTED_BY.each do |sort| %>
|
||||
<li class="popup__group" data-navigable-list-target="item">
|
||||
<li class="popup__item" data-navigable-list-target="item">
|
||||
<%= form_with url: cards_path, method: :get, class: "full-width", data: { controller: "form" } do |form| %>
|
||||
<% filter.as_params.except(:sorted_by).each do |key, value| %>
|
||||
<%= filter_hidden_field_tag key, value %>
|
||||
@@ -25,7 +25,7 @@
|
||||
<%= hidden_field_tag :expand_all, user_filtering.expanded? %>
|
||||
<% end %>
|
||||
|
||||
<%= form.button type: "submit", class: "popup__item btn" do %>
|
||||
<%= form.button type: "submit", class: "popup__btn btn" do %>
|
||||
<span class="overflow-ellipsis flex-item-grow"><%= sorted_by_label(sort) %></span>
|
||||
<% if filter.sorted_by == sort %>
|
||||
<%= icon_tag "check", class: "checked flex-item-justify-end" %>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
<ul class="popup__list" data-filter-target="list">
|
||||
<% user_filtering.tags.each do |tag| %>
|
||||
<li class="popup__group" data-filter-target="item" data-navigable-list-target="item">
|
||||
<li class="popup__item" data-filter-target="item" data-navigable-list-target="item">
|
||||
<%= form_with url: cards_path, method: :get, class: "full-width", data: { controller: "form" } do |form| %>
|
||||
<% filter.as_params.except(:tag_ids).each do |key, value| %>
|
||||
<%= filter_hidden_field_tag key, value %>
|
||||
@@ -42,7 +42,7 @@
|
||||
<%= hidden_field_tag :expand_all, user_filtering.expanded? %>
|
||||
<% end %>
|
||||
|
||||
<%= form.button type: "submit", class: "popup__item btn" do %>
|
||||
<%= form.button type: "submit", class: "popup__btn btn" do %>
|
||||
<span class="overflow-ellipsis flex-item-grow"><%= tag.hashtag %></span>
|
||||
<% if filter.tags.include?(tag) %>
|
||||
<%= icon_tag "check", class: "checked flex-item-justify-end" %>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<% end %>
|
||||
|
||||
<% TimeWindowParser::VALUES.each do |value| %>
|
||||
<div class="popup__item btn">
|
||||
<div class="popup__btn btn">
|
||||
<%= form.radio_button name, value,
|
||||
checked: filter.public_send(name) == value,
|
||||
data: { action: "change->form#submit" } %>
|
||||
|
||||
Reference in New Issue
Block a user