This repository has been archived on 2021-11-24. You can view files and clone it, but cannot push or open issues or pull requests.
phone_app/app/views/portlets/render_public/_titlecontent.html.haml
2021-08-23 10:26:02 +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+" >"