Sha256: 5f33c4296d97811be733e64f5f8ed418fa3c2b2480cfd74620afcd5ae4a9acd3
Contents?: true
Size: 1.45 KB
Versions: 2
Compression:
Stored size: 1.45 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}" %> <% if @synchronizations.first.is_error? %> <%= @synchronizations.first.message %> <% elsif @synchronizations.first.is_success? && @synchronizations.first.partial? %> Partial synchronization <% end %> <% end %> <h2>Synchronizations history</h2> <% @synchronizations.each do |sync| %> <%= sync.updated_at %> <%= sync.status %> <% if sync.is_error %> <%= sync.message %> <% elsif sync.is_success? && sync.partial? %> Partial synchronization <% end %> <% end %> <% end %> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
maestrano-connector-rails-0.2.0 | lib/generators/connector/templates/home_index.html.erb |
maestrano-connector-rails-0.0.1 | lib/generators/connector/templates/home_index.html.erb |