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

Version Path
maestrano-connector-rails-0.2.19 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.2.18 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.2.17 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.2.16 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.2.15 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.2.14 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.2.13 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.2.12 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.2.11 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.2.10 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.2.9 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.2.8 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.2.7 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.2.5 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.2.4 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.2.3 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.2.2 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.2.0 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.0.1 spec/dummy/app/views/home/index.html.erb