visualizar los campos privados con un icono y texto alternativo

This commit is contained in:
f 2018-06-19 14:50:53 -03:00
parent 6132d5f7cd
commit 7eeb50d302
No known key found for this signature in database
GPG key ID: F3FDAB97B5F9F7E7

View file

@ -78,9 +78,10 @@
- @post.template_fields.each do |template|
- next unless type = template.type
.form-group
= label_tag "post_#{template}", template.help.present? ? template.help : template.human
- if template.private?
%small.text-muted.form-text.pull-right= t('posts.private')
= label_tag "post_#{template}" do
- if template.private?
= fa_icon 'lock', alt: t('posts.private')
= template.help.present? ? template.help : template.human
- name = "post[#{template}]"
- value = @post.new? ? template.values : @post.get_front_matter(template)
- case type