<%= t(".title") %> <%= link_to t("actions.new", scope: "decidim.budgets"), new_project_path, class: "button tiny button--title new" if allowed_to? :create, :project %> <%= link_to t("actions.import", scope: "decidim.budgets", name: t("models.project.name", scope: "decidim.budgets.admin")), new_proposals_import_path, class: "button tiny button--title" if allowed_to? :import_proposals, :project %>

<% projects.each do |project| %> <% end %>
<%= t("models.project.fields.title", scope: "decidim.budgets") %> <%= t("index.confirmed_orders_count") %> <%= t("actions.title", scope: "decidim.budgets") %>
<%= translated_attribute(project.title) %>
<%= project.confirmed_orders_count %> <%= icon_link_to "eye", resource_locator(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", edit_project_path(project), 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", project_path(project), t("actions.destroy", scope: "decidim.budgets"), method: :delete, class: "action-icon--remove", data: { confirm: t("actions.confirm_destroy", scope: "decidim.budgets") } %> <% end %>
<%= paginate projects, theme: "decidim" %>
<%= t ".finished_orders" %>: <%= finished_orders.count %>  |  <%= t ".pending_orders" %>: <%= pending_orders.count %>