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.4.4 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.4.3 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.4.2 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.4.1 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.4.0 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.3.13 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.3.12 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.3.11 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.3.10 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.3.9 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.3.8 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.3.7 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.3.6 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.3.5 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.3.4 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.3.3 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.3.2 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.3.1 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.3.0 spec/dummy/app/views/home/index.html.erb
maestrano-connector-rails-0.2.20 spec/dummy/app/views/home/index.html.erb