Sha256: e2bbd768953feb248de312f7ecff3f434f4080481daa2d0391a7286a49abb576

Contents?: true

Size: 1.99 KB

Versions: 14

Compression:

Stored size: 1.99 KB

Contents

<div class="card">
  <div class="card-divider">
    <h2 class="card-title">
      <%= t(".title") %>
      <%= link_to t(".new"), decidim_admin_decidim_awesome.new_menu_hack_path, class: "button tiny button--title" %>
    </h2>
  </div>
  <div class="card-section">
  <div class="row column decidim_awesome-form">
    <table class="table-list">
      <thead>
        <tr>
          <th><%= t("menu.raw_label", scope: "activemodel.attributes") %></th>
          <th><%= t("menu.url", scope: "activemodel.attributes") %></th>
          <th><%= t("menu.position", scope: "activemodel.attributes") %></th>
          <th><%= t("menu.target", scope: "activemodel.attributes") %></th>
          <th><%= t("menu.visibility", scope: "activemodel.attributes") %></th>
          <th class="actions"></th>
        </tr>
      </thead>
      <tbody>
        <% current_items.each do |item| %>
          <tr<%= " class=menu_hack-addition" if item.try(:overrided?) == false %>>
            <td><%= item.label %></td>
            <td><%= item.url %></td>
            <td><%= item.position %></td>
            <td><%= target_options.invert[item.try(:target)||""] %></td>
            <td><%= visibility_options.invert[item.try(:visibility)] %></td>
            <td class="table-list__actions">
              <%= icon_link_to "pencil", decidim_admin_decidim_awesome.edit_menu_hack_path(md5(item.url)), t(".edit"), class: "action-icon--edit" %>
              <% if item.respond_to?(:overrided?) %>
                <%= icon_link_to "circle-x", decidim_admin_decidim_awesome.menu_hack_path(md5(item.url)), t(".remove#{'_hack' if item.overrided?}"), method: :delete, class: "action-icon--remove", data: { confirm: t(".confirm_destroy") } %>
              <% else %>
                  <span class="action-icon">
                    <%= icon "circle-x", class: "action-icon action-icon--disabled", role: "img" %>
                  </span>
              <% end %>
            </td>
          </tr>
        <% end %>
      </tbody>
    </table>
  </div>
</div>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
decidim-decidim_awesome-0.10.2 app/views/decidim/decidim_awesome/admin/menu_hacks/index.html.erb
decidim-decidim_awesome-0.10.1 app/views/decidim/decidim_awesome/admin/menu_hacks/index.html.erb
decidim-decidim_awesome-0.10.0 app/views/decidim/decidim_awesome/admin/menu_hacks/index.html.erb
decidim-decidim_awesome-0.9.3 app/views/decidim/decidim_awesome/admin/menu_hacks/index.html.erb
decidim-decidim_awesome-0.9.1 app/views/decidim/decidim_awesome/admin/menu_hacks/index.html.erb
decidim-decidim_awesome-0.8.3 app/views/decidim/decidim_awesome/admin/menu_hacks/index.html.erb
decidim-decidim_awesome-0.8.2 app/views/decidim/decidim_awesome/admin/menu_hacks/index.html.erb
decidim-decidim_awesome-0.8.1 app/views/decidim/decidim_awesome/admin/menu_hacks/index.html.erb
decidim-decidim_awesome-0.8.0 app/views/decidim/decidim_awesome/admin/menu_hacks/index.html.erb
decidim-decidim_awesome-0.7.2 app/views/decidim/decidim_awesome/admin/menu_hacks/index.html.erb
decidim-decidim_awesome-0.7.0 app/views/decidim/decidim_awesome/admin/menu_hacks/index.html.erb
decidim-decidim_awesome-0.6.7 app/views/decidim/decidim_awesome/admin/menu_hacks/index.html.erb
decidim-decidim_awesome-0.6.6 app/views/decidim/decidim_awesome/admin/menu_hacks/index.html.erb
decidim-decidim_awesome-0.6.5 app/views/decidim/decidim_awesome/admin/menu_hacks/index.html.erb