25 lines
558 B
Text
25 lines
558 B
Text
|
.row
|
||
|
|
||
|
%h1= @post.title
|
||
|
|
||
|
.content
|
||
|
:markdown
|
||
|
#{@post.content}
|
||
|
|
||
|
%table.table.table-condensed.table-striped
|
||
|
%tbody
|
||
|
- @post.data.each do |key, data|
|
||
|
%tr
|
||
|
%th= key
|
||
|
%td
|
||
|
- if data.respond_to? :each
|
||
|
- data.each do |d|
|
||
|
%span.badge.badge-success= d
|
||
|
- elsif data.respond_to? :content
|
||
|
:markdown
|
||
|
#{data.content}
|
||
|
- elsif data.respond_to? :strftime
|
||
|
= data.strftime('%F')
|
||
|
- else
|
||
|
= data
|