basic_app/app/views/portlets/render_public/_titlecontent.html.haml
Nicolas Bally 4c750c08b0 suite
2020-07-01 18:14:53 +02:00

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+" >"