Sha256: 93282b6360531bb80c0b5242b6c0d3f3220ae7af963fe7a2dd4a1cb9d0c6eb41

Contents?: true

Size: 1.31 KB

Versions: 6

Compression:

Stored size: 1.31 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 - Objets touristiques</h1>
    </div>
    <div id="apidae_dashboard" class="<%= styles[:wrapper] %>">
      <div id="apidae_imports_panel" class="<%= styles[:body] %>">
        <table id="apidae_objects" class="<%= styles[:table] %>">
          <thead class="<%= styles[:table_head] %>">
          <tr>
            <th>Titre</th>
            <th>Identifiant</th>
            <th>Type</th>
            <th>Mise à jour</th>
          </tr>
          </thead>
          <tbody class="<%= styles[:table_body] %>">
          <% @objects.each do |object| %>
              <tr>
                <td><%= object.title %></td>
                <td><%= object.apidae_id %></td>
                <td><%= object.apidae_type %></td>
                <td><%= object.updated_at.strftime('Le %d/%m/%Y à %H:%M') if object.updated_at %></td>
              </tr>
          <% end %>
          <% if @objects.empty? %>
            <tr>
              <td colspan="4">Aucun objet importé pour le moment.</td>
            </tr>
          <% end %>
          </tbody>
        </table>
      </div>
    </div>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
apidae-0.2.5 app/views/apidae/objects/index.html.erb
apidae-0.2.4 app/views/apidae/objects/index.html.erb
apidae-0.2.3 app/views/apidae/objects/index.html.erb
apidae-0.2.2 app/views/apidae/objects/index.html.erb
apidae-0.2.1 app/views/apidae/objects/index.html.erb
apidae-0.2.0 app/views/apidae/objects/index.html.erb