Sha256: bddf8b8c0ddc4f92336a2aade4f64d340601e3a4f17cc1d4f67d0f1080d17030

Contents?: true

Size: 1.26 KB

Versions: 36

Compression:

Stored size: 1.26 KB

Contents

<div class="card">
  <div class="card-divider">
    <h2 class="card-title">
      <%= t("components.title", scope: "decidim.admin") %>
      <% if allowed_to?(:create, :component) %>
        <button class="dropdown tiny button button--title" data-toggle="add-component-dropdown"><%= t "components.index.add", scope: "decidim.admin" %></button>
        <div class="dropdown-pane" id="add-component-dropdown" data-dropdown data-auto-focus="true" data-close-on-click="true">
          <ul class="vertical menu add-components">
            <% @manifests.each do |manifest| %>
              <li><%= link_to t("#{manifest.name}.name", scope: "decidim.components"), new_component_path(type: manifest.name), class: manifest.name %></li>
            <% end %>
          </ul>
        </div>
      <% end %>
    </h2>
  </div>

  <div class="card-section">
    <div class="table-scroll">
      <table class="table-list">
        <thead>
          <th><%= t(".headers.name") %></th>
          <th><%= t(".headers.type") %></th>
          <%= th_resource_scope_label(t(".headers.scope")) %>
          <th><%= t(".headers.actions") %></th>
        </thead>

        <tbody>
          <%= render partial: "component", collection: @components %>
        </tbody>
      </table>
    </div>
  </div>
</div>

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
decidim-admin-0.25.0.rc2 app/views/decidim/admin/components/index.html.erb
decidim-admin-0.25.0.rc1 app/views/decidim/admin/components/index.html.erb
decidim-admin-0.24.3 app/views/decidim/admin/components/index.html.erb
decidim-admin-0.23.6 app/views/decidim/admin/components/index.html.erb
decidim-admin-0.24.2 app/views/decidim/admin/components/index.html.erb
decidim-admin-0.23.5 app/views/decidim/admin/components/index.html.erb
decidim-admin-0.24.1 app/views/decidim/admin/components/index.html.erb
decidim-admin-0.24.0 app/views/decidim/admin/components/index.html.erb
decidim-admin-0.24.0.rc2 app/views/decidim/admin/components/index.html.erb
decidim-admin-0.23.4 app/views/decidim/admin/components/index.html.erb
decidim-admin-0.24.0.rc1 app/views/decidim/admin/components/index.html.erb
decidim-admin-0.23.3 app/views/decidim/admin/components/index.html.erb
decidim-admin-0.23.2 app/views/decidim/admin/components/index.html.erb
decidim-admin-0.23.1 app/views/decidim/admin/components/index.html.erb
decidim-admin-0.23.1.rc1 app/views/decidim/admin/components/index.html.erb
decidim-admin-0.23.0 app/views/decidim/admin/components/index.html.erb