mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Configure OSEM via environment variables
Instead of reading a yaml file we get configuration from the environment.
This commit is contained in:
parent
45c31f210f
commit
ebcb2780cd
17 changed files with 39 additions and 34 deletions
|
|
@ -7,7 +7,7 @@
|
|||
%span.icon-bar
|
||||
%span.icon-bar
|
||||
%span.icon-bar
|
||||
= link_to CONFIG['name'], root_path, class: 'navbar-brand', title: 'Open Source Event Manager'
|
||||
= link_to (ENV['OSEM_NAME'] || 'OSEM'), root_path, class: 'navbar-brand', title: 'Open Source Event Manager'
|
||||
.collapse.navbar-collapse
|
||||
- if content_for :splash_nav
|
||||
%ul.nav.navbar-nav#splash-nav
|
||||
|
|
@ -43,7 +43,7 @@
|
|||
%li= link_to 'See all Comments', admin_comments_path(anchor: 'all_comments')
|
||||
- else
|
||||
%ul.nav.navbar-nav.navbar-right
|
||||
- if CONFIG['authentication']['ichain']['enabled']
|
||||
- if ENV['OSEM_ICHAIN_ENABLED'] == 'true'
|
||||
%li{:class=> "#{active_nav_li(new_ichain_registration_path('user'))}"}
|
||||
= link_to(new_ichain_registration_path('user')) do
|
||||
%span.fa.fa-heart
|
||||
|
|
@ -59,7 +59,7 @@
|
|||
Sign In
|
||||
%span.caret
|
||||
.dropdown-menu{:style => "padding: 17px; min-width: 225px;"}
|
||||
- if CONFIG['authentication']['ichain']['enabled']
|
||||
- if ENV['OSEM_ICHAIN_ENABLED'] == 'true'
|
||||
= form_tag User.ichain_login_url do
|
||||
= text_field_tag 'username', nil, id: 'user_ichain_email_dd', placeholder: 'Username'
|
||||
= password_field_tag 'password', nil, id: 'user_ichain_password_dd', placeholder: 'Password'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue