Sha256: 8e67bc36b6bf8ba1c986e4f65df1a87a7fe8a3f3da5a6a248981d7910a887432
Contents?: true
Size: 1.62 KB
Versions: 3
Compression:
Stored size: 1.62 KB
Contents
<tr data-id="<%= plan.id %>"> <td> <%= plan.id %><br /> </td> <td> <%= translated_attribute(plan.title) %><br /> </td> <td> <% if plan.category %> <%= translated_attribute plan.category.name %> <% end %> </td> <% if current_participatory_space.scopes_enabled? %> <td> <% if plan.scope %> <%= translated_attribute plan.scope.name %> <% else %> <%= t("decidim.scopes.global") %> <% end %> </td> <% end %> <td> <strong class="<%= plan_state_css_class plan.state %>"> <%= humanize_plan_state plan.state %> </strong> </td> <% if current_component.settings.comments_enabled? and !current_settings.comments_blocked? %> <td> <%= plan.comments.count %> </td> <% end %> <td> <%= l plan.created_at, format: :decidim_short %> </td> <td class="table-list__actions"> <% if allowed_to? :edit, :plan, plan: plan %> <%= icon_link_to "pencil", edit_plan_path(plan), t("actions.edit_plan", scope: "decidim.plans"), class: "action-icon--edit-plan" %> <% end %> <% if allowed_to? :create, :plan_answer %> <%= icon_link_to "comment-square", edit_plan_plan_answer_path(plan_id: plan.id, id: plan.id), t("actions.answer", scope: "decidim.plans"), class: " icon--small" %> <% else %> <%= icon "comment-square", scope: "decidim.plans.admin", class: "action-icon action-icon--disabled" %> <% end %> <%= resource_permissions_link(plan) %> <%= icon_link_to "eye", resource_locator(plan).path, t("actions.preview", scope: "decidim.plans.admin"), class: "action-icon--preview", target: :blank %> </td> </tr>
Version data entries
3 entries across 3 versions & 1 rubygems