<%= translated_attribute(project.title) %>
|
<%= project.confirmed_orders_count %>
|
<% if project.selected? %>
<%= content_tag :strong, t(".selected"), class: "text-success" %>
<% else %>
<%= content_tag :span, "×", class: "text-muted" %>
<% end %>
|
<%= td_resource_scope_for(project.scope) %>
<%= icon_link_to "eye", resource_locator([budget, project]).path, t("actions.preview", scope: "decidim.budgets"), target: :blank, class: "action-icon--preview" %>
<% if allowed_to? :update, :project, project: project %>
<%= icon_link_to "pencil", resource_locator([budget, project]).edit, t("actions.edit", scope: "decidim.budgets"), class: "action-icon--edit" %>
<% end %>
<% if allowed_to? :update, :project, project: project %>
<%= icon_link_to "folder", project_attachment_collections_path(project), t("actions.attachment_collections", scope: "decidim.budgets"), class: "action-icon--attachment_collections" %>
<% end %>
<% if allowed_to? :update, :project, project: project %>
<%= icon_link_to "paperclip", project_attachments_path(project), t("actions.attachments", scope: "decidim.budgets"), class: "action-icon--attachments" %>
<% end %>
<%= resource_permissions_link(project) %>
<% if allowed_to? :destroy, :project, project: project %>
<%= icon_link_to "circle-x", resource_locator([budget, project]).show, t("actions.destroy", scope: "decidim.budgets"), method: :delete, class: "action-icon--remove", data: { confirm: t("actions.confirm_destroy", scope: "decidim.budgets") } %>
<% else %>
<%= icon "circle-x", class: "action-icon action-icon--disabled", role: "img", aria_label: t("actions.destroy", scope: "decidim.budgets") %>
<% end %>
|
<% end %>