Sha256: 4b2a2e741e52a8072300447d3a06962d8d65fbd7ae3af84bb24b9cf581772cfd
Contents?: true
Size: 1.24 KB
Versions: 39
Compression:
Stored size: 1.24 KB
Contents
<!-- TODO --> <!-- This template is given as an example of the informations that can be displayed on the home page --> <!-- This view is designed according to the home controller supplied --> <div class='home'> <%= link_to 'Admin panel', admin_index_path %> <% unless current_user %> <%= link_to "Link your Maestrano account", maestrano_connector_rails.init_maestrano_auth_saml_index_path(tenant: :default) %> <p>Some generic information about the connector</p> <% else %> <% unless @organization.oauth_uid %> Not linked to external app <% if is_admin?(current_user, @organization) %> <%= link_to "Link this company to ...", 'some_path' %> <% end %> <% else %> Linked to external app <% end %> <h2>Last synchronization</h2> <% if @synchronizations.first %> <%= "#{@synchronizations.first.updated_at} #{@synchronizations.first.status}" %> <%= @synchronizations.first.message if @synchronizations.first.status == 'ERROR' %> <% end %> <h2>Synchronizations history</h2> <% @synchronizations.each do |sync| %> <%= sync.updated_at %> <%= sync.status %> <% if sync.status == 'ERROR' %> <%= sync.message %> <% end %> <% end %> <% end %> </div>
Version data entries
39 entries across 39 versions & 1 rubygems