5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 05:26:22 +00:00

feat: contenido de texto plano #16174

This commit is contained in:
f 2024-04-29 11:22:23 -03:00
parent 044b14c355
commit 8929847628
No known key found for this signature in database
3 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,3 @@
# frozen_string_literal: true
class MetadataPlainText < MetadataContent; end

View file

@ -0,0 +1,3 @@
%tr{ id: attribute }
%th= post_label_t(attribute, post: post)
%td{ lang: locale, dir: dir }= metadata.value

View file

@ -0,0 +1,8 @@
.form-group
= label_tag "#{base}_#{attribute}", post_label_t(attribute, post: post)
= render 'posts/attribute_feedback',
post: post, attribute: attribute, metadata: metadata
= text_area_tag "#{base}[#{attribute}]", metadata.to_s.html_safe,
dir: dir, lang: locale,
**field_options(attribute, metadata)