Sha256: d1808d1c037a5a184bb0592ce556f08c83d4743b64e5a396bd93adf065fb411e

Contents?: true

Size: 1.68 KB

Versions: 10

Compression:

Stored size: 1.68 KB

Contents

<%= render layout: "/layouts/#{Rails.application.config.apidae_layout}" do |styles| %>
    <div id="apidae_header" class="<%= styles[:header] %>">
      <%= link_to 'Retour', :back, class: styles[:back] %>
      <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 class="<%= styles[:table_head] %>">
          <tr>
            <th>Date</th>
            <th>Fichier</th>
            <th>Statut</th>
          </tr>
          </thead>
          <tbody class="<%= styles[:table_body] %>">
          <% @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>
        <%= link_to pluralize(@selections, 'sélection', 'sélections'), apidae.selections_path, class: styles[:selections] %>
        <%= link_to pluralize(@objects, 'objet touristique', 'objets touristiques'), apidae.objects_path, class: styles[:objects] %>
      </div>
    </div>
<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
apidae-0.2.9 app/views/apidae/dashboard/index.html.erb
apidae-0.2.8 app/views/apidae/dashboard/index.html.erb
apidae-0.2.7 app/views/apidae/dashboard/index.html.erb
apidae-0.2.6 app/views/apidae/dashboard/index.html.erb
apidae-0.2.5 app/views/apidae/dashboard/index.html.erb
apidae-0.2.4 app/views/apidae/dashboard/index.html.erb
apidae-0.2.3 app/views/apidae/dashboard/index.html.erb
apidae-0.2.2 app/views/apidae/dashboard/index.html.erb
apidae-0.2.1 app/views/apidae/dashboard/index.html.erb
apidae-0.2.0 app/views/apidae/dashboard/index.html.erb