Sha256: fa02f46df84f189ea1d5363f28dca1f68e5344aa1946dc02ed39904347d8e445

Contents?: true

Size: 1.36 KB

Versions: 4

Compression:

Stored size: 1.36 KB

Contents

<div class="card" id="initiative-types">
  <div class="card-divider">
    <h2 class="card-title">
      <%= t "decidim.admin.titles.initiatives_types" %>
      <%= link_to t("actions.new", scope: "decidim.admin", name: t("models.initiatives_types.name", scope: "decidim.admin")),
                  ["new", "initiatives_type"],
                  class: "button tiny button--title" if allowed_to? :create, :initiative_type %>
    </h2>
  </div>
  <div class="card-section">
    <div class="table-scroll">
      <table class="table-list">
        <thead>
          <tr>
            <th><%= t("models.initiatives_types.fields.title", scope: "decidim.admin") %></th>
            <th><%= t("models.initiatives_types.fields.created_at", scope: "decidim.admin") %></th>
          </tr>
        </thead>
        <tbody>
          <% @initiatives_types.each do |initiative_type| %>
          <tr>
            <td>
              <% if allowed_to? :update, :initiative_type, initiative_type: initiative_type %>
                <%= link_to translated_attribute(initiative_type.title), edit_initiatives_type_path(initiative_type) %>
              <% else %>
                <%= translated_attribute initiative_type.title %></td>
              <% end %>
            <td><%= l initiative_type.created_at, format: :short %></td>
          <% end %>
        </tbody>
      </table>
    </div>
  </div>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-initiatives-0.12.2 app/views/decidim/initiatives/admin/initiatives_types/index.html.erb
decidim-initiatives-0.12.1 app/views/decidim/initiatives/admin/initiatives_types/index.html.erb
decidim-initiatives-0.12.0 app/views/decidim/initiatives/admin/initiatives_types/index.html.erb
decidim-initiatives-0.12.0.pre app/views/decidim/initiatives/admin/initiatives_types/index.html.erb