Sha256: d42e908ea49116b3afd6ba17f9072c104e0aab63b4850f1d6a045f3d108a368c

Contents?: true

Size: 1.56 KB

Versions: 113

Compression:

Stored size: 1.56 KB

Contents

<%= render layout: "/layouts/#{Rails.application.config.apidae_layout}" do |styles| %>
  <div id="apidae_header" class="<%= styles[:header] %>">
    <%= link_to 'Ajouter un projet', apidae.new_project_path, class: styles[:projects] %>
    <%= link_to 'Retour', root_path, class: styles[:back] %>
    <h1 class="<%= styles[:h1] %>">Apidae - Projets</h1>
  </div>
  <div class="<%= styles[:wrapper] %>">
    <div class="<%= styles[:body] %>">
      <table id="apidae_projects" class="<%= styles[:table] %>">
        <thead class="<%= styles[:table_head] %>">
        <tr>
          <th>Nom</th>
          <th>Identifiant</th>
          <th>Locales</th>
          <th>Versions</th>
          <th>Mise à jour</th>
          <th></th>
        </tr>
        </thead>
        <tbody class="<%= styles[:table_body] %>">
        <% @projects.each do |proj| %>
          <tr>
            <td><%= proj.name %></td>
            <td><%= proj.apidae_id %></td>
            <td><%= proj.locales.join(', ') %></td>
            <td><%= proj.versions.join(', ') %></td>
            <td><%= proj.updated_at.strftime('Le %d/%m/%Y à %H:%M') if proj.updated_at %></td>
            <td><%= link_to 'Modifier', edit_project_path(proj) %></td>
          </tr>
        <% end %>
        <% if @projects.empty? %>
          <tr>
            <td colspan="6">Aucun projet pour le moment.</td>
          </tr>
        <% end %>
        </tbody>
      </table>
    </div>
  </div>
<% end %>
<script>
    document.addEventListener("DOMContentLoaded", function(event) {
      apidaeEngineCallback("projects");
    });
</script>

Version data entries

113 entries across 113 versions & 1 rubygems

Version Path
apidae-2.0.1 app/views/apidae/projects/index.html.erb
apidae-2.0.0 app/views/apidae/projects/index.html.erb
apidae-1.4.13 app/views/apidae/projects/index.html.erb
apidae-1.4.12 app/views/apidae/projects/index.html.erb
apidae-1.4.11 app/views/apidae/projects/index.html.erb
apidae-1.4.10 app/views/apidae/projects/index.html.erb
apidae-1.4.9 app/views/apidae/projects/index.html.erb
apidae-1.4.8 app/views/apidae/projects/index.html.erb
apidae-1.4.7 app/views/apidae/projects/index.html.erb
apidae-1.4.6 app/views/apidae/projects/index.html.erb
apidae-1.4.5 app/views/apidae/projects/index.html.erb
apidae-1.4.4 app/views/apidae/projects/index.html.erb
apidae-1.4.3 app/views/apidae/projects/index.html.erb
apidae-1.2.35 app/views/apidae/projects/index.html.erb
apidae-1.2.34 app/views/apidae/projects/index.html.erb
apidae-1.2.33 app/views/apidae/projects/index.html.erb
apidae-1.4.2 app/views/apidae/projects/index.html.erb
apidae-1.4.1 app/views/apidae/projects/index.html.erb
apidae-1.4.0 app/views/apidae/projects/index.html.erb
apidae-1.2.32 app/views/apidae/projects/index.html.erb