app/views/decidim/plans/admin/plans/_plan-tr.html.erb in decidim-plans-0.16.6 vs app/views/decidim/plans/admin/plans/_plan-tr.html.erb in decidim-plans-0.16.7
- old
+ new
@@ -18,10 +18,17 @@
<%= t("decidim.scopes.global") %>
<% end %>
</td>
<% end %>
<td>
+ <% plan.tags.each do |tag| %>
+ <span class="label secondary">
+ <%= translated_attribute(tag.name) %>
+ </span>
+ <% end %>
+ </td>
+ <td>
<strong class="<%= plan_state_css_class plan.state %>">
<%= humanize_plan_state plan.state %>
</strong>
</td>
@@ -30,23 +37,27 @@
<%= plan.comments.count %>
</td>
<% end %>
<td>
- <%= l plan.created_at, format: :decidim_short %>
+ <%= l plan.published_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? :close, :plan, plan: plan %>
+ <% if !plan.answered? && allowed_to?(:close, :plan, plan: plan) %>
<% if plan.closed? %>
<%= icon_link_to "action-undo", reopen_plan_path(plan), t("actions.reopen_plan", scope: "decidim.plans"), method: :post, class: "action-icon--reopen-plan" %>
<% else %>
<%= icon_link_to "check", close_plan_path(plan), t("actions.close_plan", scope: "decidim.plans"), method: :post, class: "action-icon--close-plan" %>
<% end %>
+ <% end %>
+
+ <% if allowed_to? :edit_taggings, :plan, plan: plan %>
+ <%= icon_link_to "tag", taggings_plan_path(plan), t("actions.plan_taggings", scope: "decidim.plans"), class: "action-icon--plan-taggings" %>
<% 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 %>