Page MenuHomeGRNET

No OneTemporary

File Metadata

Created
Fri, Aug 29, 2:36 PM
diff --git a/app/views/application/index.html.erb b/app/views/application/index.html.erb
index f3a51a6..90eca05 100644
--- a/app/views/application/index.html.erb
+++ b/app/views/application/index.html.erb
@@ -1,5 +1,35 @@
-<%= link_to 'admin', login_path(admin: 'admin'), method: :post, role: :button,
- class: 'btn btn-primary' %>
+<div class="col-xs-4 col-xs-offset-4">
+ <div class="panel panel-default">
+ <div class="panel-heading">
+ <h4>
+ <label class="glyphicon glyphicon-log-in"></label>
+ Login
+ </h4>
+ </div>
-<%= link_to 'vima', vima_path(vima: 'vima'), method: :post, role: :button,
- class: 'btn btn-primary' %>
+ <br />
+ <div class="row">
+ <div class="col-xs-4 col-xs-offset-4 text-center">
+ <%= link_to 'ViMa User', vima_path(vima: 'vima'), method: :post, role: :button,
+ class: 'btn btn-default btn-lg', disabled: !Archiving.settings[:vima_oauth_enabled] %>
+ </div>
+ </div>
+ <hr />
+ <div class="row">
+ <div class="col-xs-4 col-xs-offset-4 text-center">
+ <%= link_to 'Institutional User', '', role: :button,
+ class: 'btn btn-default btn-lg',
+ disabled: !Archiving.settings[:institutional_authentication_enabled] %>
+ </div>
+ </div>
+ <hr />
+ <div class="row">
+ <div class="col-xs-4 col-xs-offset-4 text-center">
+ <%= link_to 'Okeanos User', '', role: :button,
+ class: 'btn btn-default btn-lg',
+ disabled: !Archiving.settings[:okeanos_authentication_enabled] %>
+ </div>
+ </div>
+ <br />
+ </div>
+</div>
diff --git a/config/initializers/00_settings.rb b/config/initializers/00_settings.rb
index 236d98c..cffe487 100644
--- a/config/initializers/00_settings.rb
+++ b/config/initializers/00_settings.rb
@@ -1,4 +1,6 @@
Baas.settings director_name: YAML.load_file(Rails.root.join('config', 'bacula.yml'))[Rails.env].
symbolize_keys[:director]
Archiving.settings vima_oauth_enabled: true
+Archiving.settings institutional_authentication_enabled: false
+Archiving.settings okeanos_authentication_enabled: false

Event Timeline