mmsc_app/app/views/portlets/render_public/_titlecontent.html.haml
Nicolas Bally a6aa1f6074 Initial
2020-05-25 11:40:11 +02:00

12 lines
378 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)+"'>"
-else
=raw '<h'+level+" style='#{css_style}' class='title_#{input.style}' >"
=sanitize input.content
=raw '</h'+level+" >"