<%= t("models.voting.fields.title", scope: "decidim.votings.admin") %> | <%= sort_link(query, :created_at, t("models.voting.fields.created_at", scope: "decidim.votings.admin"), default_order: :desc) %> | <%= t("models.voting.fields.published", scope: "decidim.votings.admin") %> | |
---|---|---|---|
<% if voting.promoted? %>
">
<%= icon "star" %>
<% end %>
<% if allowed_to? :update, :voting, voting: voting %>
<%= link_to translated_attribute(voting.title), edit_voting_path(voting) %>
<% elsif allowed_to? :preview, :voting, voting: voting %> <%= link_to translated_attribute(voting.title), decidim_votings.voting_path(voting), target: "_blank" %> <% else %> <%= translated_attribute(voting.title) %> <% end %> |
<%= l voting.created_at, format: :short %> | <% if voting.published? %> <%= t("index.published", scope: "decidim.votings.admin") %> <% else %> <%= t("index.not_published", scope: "decidim.votings.admin") %> <% end %> | <% if allowed_to? :update, :voting, voting: voting %> <%= icon_link_to "pencil", edit_voting_path(voting), t("actions.configure", scope: "decidim.admin"), class: "action-icon--edit" %> <% else %> <% end %> <% if allowed_to? :preview, :voting, voting: voting %> <%= icon_link_to "eye", decidim_votings.voting_path(voting), t("actions.preview", scope: "decidim.admin"), class: "action-icon--preview", target: "_blank" %> <% else %> <% end %> |