<%= link_to translated_attribute(budget.title), budgets_path %> > <%= t(".title") %>
<%= link_to t("actions.import", scope: "decidim.budgets", name: t("models.project.name", scope: "decidim.budgets.admin")), new_budget_proposals_import_path(budget), class: "button tiny button--title" if allowed_to? :import_proposals, :project %> <% if allowed_to? :export, :budget %> <%= export_dropdown(current_component, budget.id) %> <% end %> <%= link_to t("actions.new", scope: "decidim.budgets", name: t("models.project.name", scope: "decidim.budgets.admin")), new_budget_project_path, class: "button tiny button--title new" if allowed_to? :create, :project %>

<%= th_resource_scope_label %> <% projects.each do |project| %> <%= td_resource_scope_for(project.scope) %> <% end %>
<%= t("models.project.fields.title", scope: "decidim.budgets") %> <%= t("index.confirmed_orders_count") %> <%= t(".selected") %><%= t("actions.title", scope: "decidim.budgets") %>
<%= 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 %> <%= 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 %>
<%= paginate projects, theme: "decidim" %>
<%= t ".finished_orders" %>: <%= finished_orders.count %>  |  <%= t ".pending_orders" %>: <%= pending_orders.count %>