Sha256: 7b260b880ee47ea590506a38a2cc9bea09086d19e412bbcf1aa576f4439982ab

Contents?: true

Size: 1.66 KB

Versions: 4

Compression:

Stored size: 1.66 KB

Contents

<% add_decidim_page_title(t("page_topics", scope: "decidim.admin.titles")) %>

<div class="card" id="page_topics">
  <div class="item_show__header">
    <h1 class="item_show__header-title">
      <%= t("page_topics", scope: "decidim.admin.titles") %>
      <% if allowed_to? :create, :attachment_collection %>
        <%= link_to t("static_page_topics.new.create", scope: "decidim.admin"), [:new, :static_page_topic], class: "button button__sm button__secondary expanded small new" %>
      <% end %>
    </h1>
  </div>
  <% if topics.any? %>
    <div class="table-scroll">
      <table class="table-list">
        <thead>
          <tr>
            <th><%= t("activemodel.attributes.static_page_topic.name") %></th>
            <th class="actions"></th>
          </tr>
        </thead>
        <tbody>
          <% topics.each do |topic| %>
            <tr>
              <td>
                <%= link_to translated_attribute(topic.title), [:edit, topic] %>
              </td>
              <td>
                <% if allowed_to? :update, :static_page_topic, topic: topic %>
                  <%= icon_link_to "pencil-line", [:edit, topic], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
                <% end %>
                <% if allowed_to? :destroy, :static_page_topic, topic: topic %>
                  <%= icon_link_to "delete-bin-line", topic, 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>
  <% end %>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-admin-0.28.4 app/views/decidim/admin/static_page_topics/index.html.erb
decidim-admin-0.28.3 app/views/decidim/admin/static_page_topics/index.html.erb
decidim-admin-0.28.2 app/views/decidim/admin/static_page_topics/index.html.erb
decidim-admin-0.28.1 app/views/decidim/admin/static_page_topics/index.html.erb