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

traducir la ficha

This commit is contained in:
f 2018-03-14 14:46:17 -03:00
parent f0fb5e69ef
commit 55a5849c07
No known key found for this signature in database
GPG key ID: F3FDAB97B5F9F7E7

View file

@ -30,11 +30,15 @@
%table.table.table-condensed.table-striped
%tbody
- hashes = {}
- @post.front_matter.each do |key, data|
- if data.is_a? Hash
- hashes[key] = data
- next
%tr
%th= key
%th= t("posts.#{key}")
%td
- if data.respond_to? :each
- if data.is_a? Array
- data.each do |d|
%span.badge.badge-success= d
- elsif data.respond_to? :content
@ -44,3 +48,8 @@
= data.strftime('%F')
- else
= data
- hashes.each do |key, data|
- data.each do |k,d|
%tr
%th= t("posts.#{key}.#{k}")
%td= d