Sha256: 58827e045da99e6e23c61eb3c8153fa5fd911bab210943416ab2432bb88fb5e7

Contents?: true

Size: 1.01 KB

Versions: 6

Compression:

Stored size: 1.01 KB

Contents

<% extra_classes = local_assigns.fetch(:mobile, false) ? " block md:hidden" : " hidden md:block" %>
<% if meeting.poll&.has_questions? %>
  <section class="layout-aside__section layout-aside__buttons<%= extra_classes %>">
    <%= action_authorized_link_to :reply_poll, meeting_polls_answers_path(meeting), class: "button button__xl button__secondary w-full", data: { "redirect_url" => meeting_polls_answers_path(meeting) }, resource: meeting do %>
      <span>
        <%= meeting.poll.has_open_questions? ? t("reply_poll", scope: "decidim.meetings.meetings.meeting") : t("view_poll", scope: "decidim.meetings.meetings.meeting") %>
      </span>
    <% end %>
    <% if !allowed_to?(:reply_poll, :meeting, meeting:) && allowed_to?(:update, :poll, meeting:) %>
      <%= link_to admin_meeting_polls_answers_path(meeting), class: "button button__sm button__transparent-secondary w-full" do %>
        <span><%= t("administrate", scope: "decidim.meetings.polls.answers.index") %></span>
      <% end %>
    <% end %>
  </section>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-meetings-0.29.1 app/views/decidim/meetings/meetings/_meeting_poll_actions.html.erb
decidim-meetings-0.29.0 app/views/decidim/meetings/meetings/_meeting_poll_actions.html.erb
decidim-meetings-0.29.0.rc4 app/views/decidim/meetings/meetings/_meeting_poll_actions.html.erb
decidim-meetings-0.29.0.rc3 app/views/decidim/meetings/meetings/_meeting_poll_actions.html.erb
decidim-meetings-0.29.0.rc2 app/views/decidim/meetings/meetings/_meeting_poll_actions.html.erb
decidim-meetings-0.29.0.rc1 app/views/decidim/meetings/meetings/_meeting_poll_actions.html.erb