feat(messages): use trix editor in messages
This commit is contained in:
parent
c4a53caf52
commit
ef6d6aa368
14 changed files with 83 additions and 5 deletions
9
app/views/active_storage/blobs/_blob.html.haml
Normal file
9
app/views/active_storage/blobs/_blob.html.haml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
%figure{class: "attachment attachment--#{blob.representable? ? "preview" : "file"} attachment--#{blob.filename.extension}"}
|
||||
- if blob.representable?
|
||||
= image_tag blob.representation(resize_to_limit: local_assigns[:in_gallery] ? [ 800, 600 ] : [ 1024, 768 ])
|
||||
%figcaption.attachment__caption
|
||||
- if caption = blob.try(:caption)
|
||||
= caption
|
||||
- else
|
||||
%span.attachment__name= link_to blob.filename, blob
|
||||
%span.attachment__size= number_to_human_size blob.byte_size
|
||||
12
app/views/layouts/email.html.haml
Normal file
12
app/views/layouts/email.html.haml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
= yield
|
||||
\
|
||||
%hr
|
||||
%ul
|
||||
%li
|
||||
%a{href: root_url} Foodsoft
|
||||
- if FoodsoftConfig[:homepage]
|
||||
%li
|
||||
%a{href: FoodsoftConfig[:homepage]} Foodcoop
|
||||
- if FoodsoftConfig[:help_url]
|
||||
%li
|
||||
%a{href: FoodsoftConfig[:help_url]}= t '.help'
|
||||
Loading…
Add table
Add a link
Reference in a new issue