Sha256: df86a6ee0a422a1f8080adb5d1001a88a400179076032e7a46ffd90a0110bab8

Contents?: true

Size: 1.86 KB

Versions: 8

Compression:

Stored size: 1.86 KB

Contents

<%= render layout: "/layouts/#{Rails.application.config.apidae_layout}" do |styles| %>
    <div id="apidae_header" class="<%= styles[:header] %>">
      <%= 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] %>
      <%= link_to (pluralize(@references, 'élément', 'éléments') + ' de référence'), apidae.references_path, class: styles[:references] %>
      <%= 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>Créations</th>
            <th>Mises à jour</th>
            <th>Suppressions</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.created %></td>
                <td><%= import.updated %></td>
                <td><%= import.deleted %></td>
                <td><%= t "apidae.file_import.status.#{import.status}" %></td>
              </tr>
          <% end %>
          <% if @last_imports.empty? %>
              <tr>
                <td colspan="5">Aucun import pour le moment.</td>
              </tr>
          <% end %>
          </tbody>
        </table>
      </div>
    </div>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
apidae-0.6.3 app/views/apidae/dashboard/index.html.erb
apidae-0.6.2 app/views/apidae/dashboard/index.html.erb
apidae-0.6.1 app/views/apidae/dashboard/index.html.erb
apidae-0.6.0 app/views/apidae/dashboard/index.html.erb
apidae-0.5.3 app/views/apidae/dashboard/index.html.erb
apidae-0.5.2 app/views/apidae/dashboard/index.html.erb
apidae-0.5.1 app/views/apidae/dashboard/index.html.erb
apidae-0.5.0 app/views/apidae/dashboard/index.html.erb