Sha256: b3578c7847bd3c250665b3b7ddf9e22982f1601a8a73d23d3ff78c716f6a7873
Contents?: true
Size: 1.51 KB
Versions: 14
Compression:
Stored size: 1.51 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> <th class="actions"><%= t("initiatives_type.actions.title", scope: "decidim.resources") %></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> <td class="table-list__actions"><%= free_resource_permissions_link(initiative_type) %></td> <% end %> </tbody> </table> </div> </div> </div>
Version data entries
14 entries across 14 versions & 1 rubygems