visualizar los campos privados con un icono y texto alternativo
This commit is contained in:
parent
6132d5f7cd
commit
7eeb50d302
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue