Sha256: 6c6cfd7f8e248be6febdd19e38ee4e64254cfe73d4322cb4d707deffc1188e1d

Contents?: true

Size: 1.31 KB

Versions: 12

Compression:

Stored size: 1.31 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_initiative_type", 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

12 entries across 12 versions & 1 rubygems

Version Path
decidim-initiatives-0.16.1 app/views/decidim/initiatives/admin/initiatives_types/index.html.erb
decidim-initiatives-0.16.0 app/views/decidim/initiatives/admin/initiatives_types/index.html.erb
decidim-initiatives-0.15.2 app/views/decidim/initiatives/admin/initiatives_types/index.html.erb
decidim-initiatives-0.15.1 app/views/decidim/initiatives/admin/initiatives_types/index.html.erb
decidim-initiatives-0.15.0 app/views/decidim/initiatives/admin/initiatives_types/index.html.erb
decidim-initiatives-0.14.4 app/views/decidim/initiatives/admin/initiatives_types/index.html.erb
decidim-initiatives-0.14.3 app/views/decidim/initiatives/admin/initiatives_types/index.html.erb
decidim-initiatives-0.14.2 app/views/decidim/initiatives/admin/initiatives_types/index.html.erb
decidim-initiatives-0.14.1 app/views/decidim/initiatives/admin/initiatives_types/index.html.erb
decidim-initiatives-0.13.1 app/views/decidim/initiatives/admin/initiatives_types/index.html.erb
decidim-initiatives-0.13.0 app/views/decidim/initiatives/admin/initiatives_types/index.html.erb
decidim-initiatives-0.13.0.pre1 app/views/decidim/initiatives/admin/initiatives_types/index.html.erb