Sha256: 58abf440093294bb27c18a0a3697960cb58ef10b37ef4052150bf74d6f8d8681

Contents?: true

Size: 545 Bytes

Versions: 4

Compression:

Stored size: 545 Bytes

Contents

<% if signed_in? && Decidim::ActionDelegator::Delegation.granted_to?(current_user, question.consultation) %>
  <% if has_any_delegate_vote?(question) %>
    <div class="delegations-notice">
      <%= link_to t("action_delegator.delegations.has_delegations", scope: "decidim"), decidim_consultations.question_path(question) %>
    </div>
  <% else %>
    <div class="delegations-notice">
      <%= link_to t("action_delegator.delegations.link", scope: "decidim"), decidim_consultations.question_path(question) %>
    </div>
  <% end %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-action_delegator-0.8.1 app/views/decidim/action_delegator/consultations/_link_to_question.html.erb
decidim-action_delegator-0.7.2 app/views/decidim/action_delegator/consultations/_link_to_question.html.erb
decidim-action_delegator-0.7.1 app/views/decidim/action_delegator/consultations/_link_to_question.html.erb
decidim-action_delegator-0.7.0 app/views/decidim/action_delegator/consultations/_link_to_question.html.erb