Sha256: 6c17767d4de472c5d19f7ecc58576c91898eaf67782dd49b9b94fb54edb0ded2
Contents?: true
Size: 865 Bytes
Versions: 21
Compression:
Stored size: 865 Bytes
Contents
module Fiona7LoginHelper def fiona7_login_path fiona7_engine.fiona7_login_path end def fiona7_login_url fiona7_engine.fiona7_login_url end def fiona7_logout_path fiona7_engine.fiona7_logout_path end def fiona7_logout_url fiona7_engine.fiona7_logout_url end def fiona7_logged_in? rsession.user? end def fiona7_login_button(classes='navbar-btn navbar-right') if fiona7_logged_in? link_to fiona7_logout_path, class: classes, method: :delete do "<button class=\"btn btn-warning\">#{t(:'fiona7.logout')}</button>".html_safe end else link_to scrivito_path(Fiona7LoginPage.instance || raise("Object of class 'Fiona7LoginPage' count not be found in the CM")), class: classes do "<button class=\"btn btn-success\">#{t(:'fiona7.login')}</button>".html_safe end end end end
Version data entries
21 entries across 21 versions & 1 rubygems
Version | Path |
---|---|
infopark_fiona7-1.2.0.0.0 | app/helpers/fiona7_login_helper.rb |