Indicate cards with attachments in the description
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m21.843 3.455.00000011.00000011c-2.71798-2.7189-7.12544-2.71964-9.84434-.00165975-.00055327.00055308-.00110645.00110626-.00165953.00165953l-10.378 10.377-.0000006.00000061c-1.99277 2.0124-1.97685 5.25923.035554 7.252 1.99848 1.97898 5.21803 1.97896 7.21649-.0000451l8.42896-8.43096.00000006-.00000006c1.33478-1.23529 1.41544-3.31874.180153-4.65352-1.23529-1.33478-3.31874-1.41544-4.65352-.180153-.0625256.0578649-.122782.118134-.180634.180672l-5.189 5.184-.00000003.00000003c-.391018.390465-.391465 1.02398-.00099993 1.415.390465.391018 1.02398.391465 1.415.00099993l5.189-5.191c.517058-.493341 1.33615-.474114 1.82949.0429441.477234.500177.477019 1.28714-.00048841 1.78706l-8.432 8.431.00000024-.00000024c-1.22165 1.22165-3.20235 1.22165-4.424.00000043-1.22165-1.22165-1.22165-3.20235-.00000043-4.424l10.378-10.377.00000003-.00000003c1.93797-1.93797 5.08003-1.93797 7.018-.00000004 1.93797 1.93797 1.93797 5.08003.00000004 7.018l-7.783 7.783.00000001-.00000001c-.397252.383679-.408255 1.01675-.0245764 1.414.383679.397252 1.01675.408255 1.414.0245764.00833389-.00804914.0165273-.0162425.0245764-.0245764l7.783-7.784.00000012-.00000012c2.7189-2.7172 2.72027-7.12403.00307385-9.84293-.00102438-.00102502-.00204907-.00204971-.00307409-.00307409z"/></svg>
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
@@ -22,6 +22,7 @@
|
||||
.icon--arrow-right { --svg: url("arrow-right.svg "); }
|
||||
.icon--art { --svg: url("art.svg "); }
|
||||
.icon--assigned { --svg: url("assigned.svg "); }
|
||||
.icon--attachment { --svg: url("attachment.svg "); }
|
||||
.icon--bell-off { --svg: url("bell-off.svg "); }
|
||||
.icon--bell { --svg: url("bell.svg "); }
|
||||
.icon--bolt { --svg: url("bolt.svg "); }
|
||||
|
||||
@@ -38,6 +38,10 @@ class Card < ApplicationRecord
|
||||
self
|
||||
end
|
||||
|
||||
def has_attachments?
|
||||
description&.body&.attachments&.any? { |attachment| attachment.attachable.is_a?(ActiveStorage::Blob) }
|
||||
end
|
||||
|
||||
private
|
||||
def set_default_title
|
||||
self.title = "Untitled" if title.blank?
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<%= render "cards/display/preview/collection", card: card %>
|
||||
<%= render "cards/display/preview/tags", card: card %>
|
||||
<%= render "cards/display/preview/steps", card: card %>
|
||||
<%= icon_tag "attachment", class: "card__attachments-indicator translucent txt-x-small" if card.has_attachments? %>
|
||||
|
||||
<% if card.staged? && card.doing? %>
|
||||
<span class="btn justify-start workflow-stage workflow-stage--current txt-uppercase min-width max-width">
|
||||
|
||||
Reference in New Issue
Block a user