Sha256: 1cc27fa2b8bcf35f9c70c754a21a31b70c5d9dbdd54e0cd46b9845d93e68629a

Contents?: true

Size: 1.65 KB

Versions: 5

Compression:

Stored size: 1.65 KB

Contents

<tr class="feature-<%= feature.id %>">
  <td>
    <%= link_to decidim.feature_path(participatory_process, feature), target: "_blank" do %>
      <%= translated_attribute feature.name %>
      <%= icon "external-link" %>
    <% end %>
  </td>
  <td>
    <%= t "decidim.features.#{feature.manifest.name}.name" %>
  </td>
  <td class="actions">

    <% if feature.manifest.admin_engine %>
      <%= link_to manage_feature_path(participatory_process, feature), class: "button small" do %>
        <%= t "actions.manage", scope: "decidim.admin" %>
      <% end %>
    <% end %>

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

    <%= link_to t("actions.configure", scope: "decidim.admin"), url_for(action: :edit, id: feature, controller: "features"), class: "small button" if can? :update, feature %>

    <%= link_to t("actions.permissions", scope: "decidim.admin"), edit_participatory_process_feature_permissions_path(feature_id: feature), class: "small button" if can? :update, feature %>

    <%= link_to t("actions.destroy", scope: "decidim.admin"), url_for(action: :destroy, id: feature, controller: "features"), method: :delete, class: "small alert button", data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } if can? :destroy, feature %>
  </td>
</tr>

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
decidim-admin-0.0.6 app/views/decidim/admin/features/_feature.html.erb
decidim-0.0.6 decidim-admin/app/views/decidim/admin/features/_feature.html.erb
decidim-admin-0.0.5 app/views/decidim/admin/features/_feature.html.erb
decidim-0.0.5 decidim-admin/app/views/decidim/admin/features/_feature.html.erb
decidim-0.0.4 decidim-admin/app/views/decidim/admin/features/_feature.html.erb