<%= t "decidim.admin.titles.conferences" %> <%= link_to t("actions.new_conference", scope: "decidim.admin"), new_conference_path, class: "button tiny button--title" if allowed_to? :create, :conference %>

<% @conferences.each do |conference| %> <% end %>
<%= t("models.conference.fields.title", scope: "decidim.admin") %> <%= t("models.conference.fields.created_at", scope: "decidim.admin") %> <%= t("models.conference.fields.published", scope: "decidim.admin") %>
<% if conference.promoted? %> "> <%= icon "star" %> <% end %> <% if allowed_to? :update, :conference, conference: conference %> <%= link_to translated_attribute(conference.title), edit_conference_path(conference) %>
<% elsif allowed_to? :preview, :conference, conference: conference %> <%= link_to translated_attribute(conference.title), decidim_conferences.conference_path(conference) %>
<% elsif allowed_to? :read, :moderation, conference: conference %> <%= link_to translated_attribute(conference.title), moderations_path(conference) %>
<% else %> <%= translated_attribute(conference.title) %> <% end %>
<%= l conference.created_at, format: :short %> <% if conference.published? %> <%= t("conferences.index.published", scope: "decidim.admin") %> <% else %> <%= t("conferences.index.not_published", scope: "decidim.admin") %> <% end %> <% if allowed_to? :create, :conference, conference: conference %> <%= icon_link_to "clipboard", new_conference_copy_path(conference), t("actions.duplicate", scope: "decidim.admin"), class: "action-icon--copy" %> <% end %> <% if allowed_to? :update, :conference, conference: conference %> <%= icon_link_to "pencil", edit_conference_path(conference), t("actions.configure", scope: "decidim.admin"), class: "action-icon--new" %> <% end %> <% if allowed_to? :preview, :conference, conference: conference %> <%= icon_link_to "eye", decidim_conferences.conference_path(conference), t("actions.preview", scope: "decidim.admin"), class: "action-icon--preview" %> <% end %>