Sha256: 47d590a38745973b47667f4f15de8a6c398ea3b22bd1f760b43ee7bb1e132ba9

Contents?: true

Size: 1.7 KB

Versions: 60

Compression:

Stored size: 1.7 KB

Contents

<div class="card">
  <div class="card-divider">
    <h2 class="card-title"><%= t "decidim.admin.titles.static_pages" %> <%= link_to t("static_pages.new.create", scope: "decidim.admin"), ['new', 'static_page'], class: 'button tiny button--title new' %></h2>
  </div>
  <div class="card-section">
    <div class="table-scroll">
      <table class="table-list">
        <thead>
          <tr>
            <th><%= t("models.static_page.fields.title", scope: "decidim.admin") %></th>
            <th><%= t("models.static_page.fields.created_at", scope: "decidim.admin") %></th>
            <th></th>
          </tr>
        </thead>
        <tbody>
          <% @pages.each do |page| %>
            <tr>
              <td>
                <%= link_to translated_attribute(page.title), ['edit', page] %><br />
              </td>
              <td>
                <%= l page.created_at, format: :short %>
              </td>
              <td class="table-list__actions">
                <% if can? :update, page %>
                  <%= icon_link_to "pencil", ['edit', page], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
                <% end %>

                <%= icon_link_to "eye", decidim.page_path(page), t("actions.view", scope: "decidim.admin.static_pages"), class: "action-icon--preview" %>

                <% if can? :destroy, page %>
                  <%= icon_link_to "circle-x", page, t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %>
                <% end %>
              </td>
            </tr>
          <% end %>
        </tbody>
      </table>
    </div>
  </div>
</div>

Version data entries

60 entries across 60 versions & 2 rubygems

Version Path
decidim-admin-0.10.1 app/views/decidim/admin/static_pages/index.html.erb
decidim-admin-0.10.0 app/views/decidim/admin/static_pages/index.html.erb
decidim-admin-0.9.3 app/views/decidim/admin/static_pages/index.html.erb
decidim-admin-0.9.2 app/views/decidim/admin/static_pages/index.html.erb
decidim-admin-0.9.1 app/views/decidim/admin/static_pages/index.html.erb
decidim-admin-0.9.0 app/views/decidim/admin/static_pages/index.html.erb
decidim-admin-0.8.4 app/views/decidim/admin/static_pages/index.html.erb
decidim-admin-0.8.3 app/views/decidim/admin/static_pages/index.html.erb
decidim-admin-0.8.2 app/views/decidim/admin/static_pages/index.html.erb
decidim-admin-0.8.1 app/views/decidim/admin/static_pages/index.html.erb
decidim-admin-0.8.0 app/views/decidim/admin/static_pages/index.html.erb
decidim-admin-0.7.4 app/views/decidim/admin/static_pages/index.html.erb
decidim-admin-0.7.3 app/views/decidim/admin/static_pages/index.html.erb
decidim-admin-0.7.2 app/views/decidim/admin/static_pages/index.html.erb
decidim-admin-0.7.1 app/views/decidim/admin/static_pages/index.html.erb
decidim-admin-0.7.0 app/views/decidim/admin/static_pages/index.html.erb
decidim-admin-0.6.8 app/views/decidim/admin/static_pages/index.html.erb
decidim-0.6.8 decidim-admin/app/views/decidim/admin/static_pages/index.html.erb
decidim-admin-0.6.7 app/views/decidim/admin/static_pages/index.html.erb
decidim-0.6.7 decidim-admin/app/views/decidim/admin/static_pages/index.html.erb