% add_decidim_page_title(t(".title")) %>
<%= t("models.budget.fields.name", scope: "decidim.budgets") %> | <%= t("models.budget.fields.total_budget", scope: "decidim.budgets") %> | <%= t("models.budget.fields.projects_count", scope: "decidim.budgets") %> | <%= th_resource_scope_label %><%= t("actions.title", scope: "decidim.budgets") %> |
---|---|---|---|
<%= link_to translated_attribute(budget.title), resource_locator(budget).path %> | <%= number_to_currency budget.total_budget, unit: Decidim.currency_unit, precision: 0 %> | <%= link_to budget.projects.count, budget_projects_path(budget) %> | <%= td_resource_scope_for(budget.scope) %><%= icon_link_to "eye", resource_locator(budget).path, t("actions.preview", scope: "decidim.budgets"), class: "action-icon--preview", target: :blank %> <%= icon_link_to "list", budget_projects_path(budget), t("actions.edit_projects", scope: "decidim.budgets"), class: "action-icon--edit-projects" %> <% if allowed_to? :update, :budget, budget: budget %> <%= icon_link_to "pencil", edit_budget_path(budget), t("actions.edit", scope: "decidim.budgets"), class: "action-icon--edit" %> <% else %> <%= icon "pencil", class: "action-icon action-icon--disabled", role: "img", aria_label: t("actions.edit", scope: "decidim.budgets") %> <% end %> <% if allowed_to? :delete, :budget, budget: budget %> <%= icon_link_to "circle-x", budget_path(budget), 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 %> |