Sha256: b6dc650959ecb88dd9160afc5798aa28f7ed0862f9c4a3a833ab7024edc0157e

Contents?: true

Size: 1.77 KB

Versions: 8

Compression:

Stored size: 1.77 KB

Contents

<tr class="feature-<%= feature.id %>">
  <td>
    <%= link_to feature_path(feature), target: "_blank" do %>
      <%= translated_attribute feature.name %>
    <% end %>
  </td>
  <td>
    <%= t "decidim.features.#{feature.manifest.name}.name" %>
  </td>
  <td class="table-list__actions">
    <% if feature.manifest.admin_engine %>
      <%= icon_link_to "pencil", manage_feature_path(feature), t("actions.manage", scope: "decidim.admin"), class: "action-icon--manage" %>
    <% end %>

    <% if can?(:update, feature) %>
      <% if feature.published? %>
        <%= icon_link_to "x", url_for(action: :unpublish, id: feature, controller: "features"), t("actions.unpublish", scope: "decidim.admin"), class: "action-icon--unpublish", method: :put %>
      <% else %>
        <%= icon_link_to "check", url_for(action: :publish, id: feature, controller: "features"), t("actions.publish", scope: "decidim.admin"), class: "action-icon--publish", method: :put %>
      <% end %>
    <% end %>

    <% if can? :update, feature %>
      <%= icon_link_to "cog", url_for(action: :edit, id: feature, controller: "features"), t("actions.configure", scope: "decidim.admin"), class: "action-icon--configure" %>
    <% end %>

    <% if can? :update, feature %>
      <% if feature.manifest.actions.empty? %>
        <%= icon "key", class: "action-icon action-icon--disabled" %>
      <% else %>
        <%= icon_link_to "key", edit_participatory_process_feature_permissions_path(feature_id: feature), t("actions.permissions", scope: "decidim.admin"), class: "action-icon--permissions" %>
      <% end %>
    <% end %>

    <%= icon_link_to "circle-x", url_for(action: :destroy, id: feature, controller: "features"), t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete %>
  </td>
</tr>

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
decidim-admin-0.4.3 app/views/decidim/admin/features/_feature.html.erb
decidim-admin-0.4.2 app/views/decidim/admin/features/_feature.html.erb
decidim-admin-0.4.1 app/views/decidim/admin/features/_feature.html.erb
decidim-0.4.3 decidim-admin/app/views/decidim/admin/features/_feature.html.erb
decidim-0.4.2 decidim-admin/app/views/decidim/admin/features/_feature.html.erb
decidim-0.4.1 decidim-admin/app/views/decidim/admin/features/_feature.html.erb
decidim-admin-0.4.0 app/views/decidim/admin/features/_feature.html.erb
decidim-0.4.0 decidim-admin/app/views/decidim/admin/features/_feature.html.erb