Sha256: 3c9ff0654e27740cd447eaa561a7e75382abd1231aad49e0c556cf19d7c1799f

Contents?: true

Size: 1.55 KB

Versions: 4

Compression:

Stored size: 1.55 KB

Contents

<%= render layout: "/layouts/#{Rails.application.config.apidae_layout}" do |styles| %>
    <div id="apidae_header" class="<%= styles[:header] %>">
      <h1 class="<%= styles[:h1] %>">Apidae</h1>
    </div>
    <div id="apidae_dashboard" class="<%= styles[:wrapper] %>">
      <div id="apidae_imports_panel" class="<%= styles[:body] %>">
        <h2 class="<%= styles[:h2] %>">Derniers imports</h2>
        <table id="apidae_imports" class="<%= styles[:table] %>">
          <thead>
          <tr>
            <th>Date</th>
            <th>Fichier</th>
            <th>Statut</th>
          </tr>
          </thead>

          <tbody>
          <% @last_imports.each do |import| %>
              <tr>
                <td><%= import.updated_at.strftime('Le %d/%m/%Y à %H:%M') if import.updated_at %></td>
                <td><%= import.remote_file %></td>
                <td><%= import.status %></td>
              </tr>
          <% end %>
          <% if @last_imports.empty? %>
              <tr>
                <td colspan="3">Aucun import pour le moment.</td>
              </tr>
          <% end %>
          </tbody>
        </table>
      </div>
      <div id="apidae_navigation_panel" class="<%= styles[:body] %>">
        <h2 class="<%= styles[:h2] %>">Données issues d'Apidae</h2>
        <h3 class="<%= styles[:h3] %>"><%= link_to pluralize(@selections, 'sélection'), apidae.selections_path %></h3>
        <h3 class="<%= styles[:h3] %>"><%= link_to pluralize(@objects, 'objet touristique', 'objets touristiques'), apidae.objects_path %></h3>
      </div>
    </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
apidae-0.1.6 app/views/apidae/dashboard/index.html.erb
apidae-0.1.5 app/views/apidae/dashboard/index.html.erb
apidae-0.1.4 app/views/apidae/dashboard/index.html.erb
apidae-0.1.3 app/views/apidae/dashboard/index.html.erb