Sha256: 3e1e658ecd77aa4b87a2a37a4ac1d0c1fc36cd0367d47093b2f2a7f8f1a6f2ce

Contents?: true

Size: 1.21 KB

Versions: 7

Compression:

Stored size: 1.21 KB

Contents

<% add_decidim_page_title(t(".title")) %>

<% provide :title do %>
  <h2><%= t ".title" %></h2>
<% end %>

<div class="actions title">
  <%= link_to t("actions.new", scope: "decidim.system", name: t("models.admin.name", scope: "decidim.system")), [:new, :admin], class: "new" %>
</div>

<table class="stack">
  <thead>
    <tr>
      <th><%= t("models.admin.fields.email", scope: "decidim.system") %></th>
      <th><%= t("models.admin.fields.created_at", scope: "decidim.system") %></th>
      <th class="actions"><%= t("actions.title", scope: "decidim.system") %></th>
    </tr>
  </thead>
  <tbody>
    <% @admins.each do |admin| %>
      <tr>
        <td>
          <%= link_to admin.email, admin %><br>
        </td>
        <td>
          <%= l admin.created_at, format: :short %>
        </td>
        <td class="actions">
          <%= link_to t("actions.edit", scope: "decidim.system"), [:edit, admin] %>
          <% unless current_admin?(admin) %>
            <%= link_to t("actions.destroy", scope: "decidim.system"), admin, method: :delete, class: "small alert button", data: { confirm: t("actions.confirm_destroy", scope: "decidim.system") } %>
          <% end %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-system-0.27.9 app/views/decidim/system/admins/index.html.erb
decidim-system-0.27.8 app/views/decidim/system/admins/index.html.erb
decidim-system-0.27.7 app/views/decidim/system/admins/index.html.erb
decidim-system-0.27.6 app/views/decidim/system/admins/index.html.erb
decidim-system-0.26.10 app/views/decidim/system/admins/index.html.erb
decidim-system-0.26.9 app/views/decidim/system/admins/index.html.erb
decidim-system-0.27.5 app/views/decidim/system/admins/index.html.erb