5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-06-02 07:24:17 +00:00

feat: campos enriquecidos con el nuevo editor

This commit is contained in:
f 2022-11-28 13:58:50 -03:00
parent d8a20be0b6
commit 48b65c5cb1
3 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,4 @@
# frozen_string_literal: true
# Campos en HTML con el nuevo editor
class MetadataNewHtml < 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.html_safe

View file

@ -0,0 +1,6 @@
-# Editor de contenido
= render 'posts/attributes/new_content',
base: 'post', post: post, attribute: attribute,
metadata: metadata, site: site,
dir: dir, locale: locale,
autofocus: (post.attributes.first == attribute)