15 lines
457 B
Plaintext
15 lines
457 B
Plaintext
-level = (input.level || "1").to_s
|
|
|
|
-css_style = ""
|
|
-if input.alignement?
|
|
-css_style = "text-align:#{input.alignement};"
|
|
-if admin
|
|
=raw '<h'+level+" class='title_content_inline' style='#{css_style}' data-title-id='"+sanitize(input.id.to_s)+"'>"
|
|
=sanitize input.content
|
|
=raw '</h'+level+" >"
|
|
-else
|
|
.animated-block
|
|
=raw '<h'+level+" style='#{css_style}' class='title_#{input.style}' >"
|
|
=sanitize input.content
|
|
=raw '</h'+level+" >"
|