Sha256: 6b025d72931ca0c377d28cab7b8b2319a853dcb03e3cb1691b436fa348f45abc

Contents?: true

Size: 1.78 KB

Versions: 40

Compression:

Stored size: 1.78 KB

Contents

<tr class="feature-<%= feature.id %>">
  <td>
    <%= link_to main_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", url_for(action: :edit, feature_id: feature, controller: "feature_permissions"), 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

40 entries across 40 versions & 2 rubygems

Version Path
decidim-admin-0.6.6 app/views/decidim/admin/features/_feature.html.erb
decidim-0.6.6 decidim-admin/app/views/decidim/admin/features/_feature.html.erb
decidim-admin-0.6.5 app/views/decidim/admin/features/_feature.html.erb
decidim-0.6.5 decidim-admin/app/views/decidim/admin/features/_feature.html.erb
decidim-admin-0.6.4 app/views/decidim/admin/features/_feature.html.erb
decidim-0.6.4 decidim-admin/app/views/decidim/admin/features/_feature.html.erb
decidim-admin-0.6.3 app/views/decidim/admin/features/_feature.html.erb
decidim-0.6.3 decidim-admin/app/views/decidim/admin/features/_feature.html.erb
decidim-admin-0.6.2 app/views/decidim/admin/features/_feature.html.erb
decidim-0.6.2 decidim-admin/app/views/decidim/admin/features/_feature.html.erb
decidim-admin-0.6.1 app/views/decidim/admin/features/_feature.html.erb
decidim-0.6.1 decidim-admin/app/views/decidim/admin/features/_feature.html.erb
decidim-admin-0.6.0 app/views/decidim/admin/features/_feature.html.erb
decidim-0.6.0 decidim-admin/app/views/decidim/admin/features/_feature.html.erb
decidim-admin-0.5.1 app/views/decidim/admin/features/_feature.html.erb
decidim-0.5.1 decidim-admin/app/views/decidim/admin/features/_feature.html.erb
decidim-admin-0.5.0 app/views/decidim/admin/features/_feature.html.erb
decidim-0.5.0 decidim-admin/app/views/decidim/admin/features/_feature.html.erb
decidim-admin-0.4.4 app/views/decidim/admin/features/_feature.html.erb
decidim-0.4.4 decidim-admin/app/views/decidim/admin/features/_feature.html.erb