payrepmc_app/app/views/portlets/render_public/_titlecontent.html.haml
2018-08-03 01:08:08 +02:00

12 lines
426 B
Plaintext

-level = (input.level || "1").to_s
-css_style = ""
-if input.alignement?
-css_style = "text-align:#{input.alignement};background-position:bottom #{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+" >"