Sha256: 1e9bd5cc466cc42bab3f5ce44a659e338dfc48a916cdc86405122dc03eebf170

Contents?: true

Size: 997 Bytes

Versions: 8

Compression:

Stored size: 997 Bytes

Contents

-# In progress ballot
- ballot = Effective::Ballot.in_progress.where(user: current_user).first
- datatable = EffectiveResources.best('EffectivePollsAvailablePollsDatatable').new(self, namespace: :effective)

- if ballot.present?
  %h2 In Progress #{et(Effective::Ballot)}

  %p Your submission for #{ballot.poll} is incomplete

  %p
    Please
    = link_to("Continue #{ballot.poll}", effective_polls.poll_ballot_build_path(ballot.poll, ballot, ballot.next_step), 'data-turbolinks' => false, class: 'btn btn-primary')
    or you can
    = link_to('Abandon', effective_polls.poll_ballot_path(ballot.poll, ballot), 'data-confirm': "Really delete #{ballot}?", 'data-method': :delete, class: 'btn btn-danger')
    to begin again.

  %hr

%h2 #{et('effective_polls.name')}

- if datatable.present?
  %p The following #{etsd(Effective::Poll)} are available:
  = render_datatable(datatable, simple: true)
- else
  %p There are no available #{etsd(Effective::Poll)}. When there are, we'll show them here.

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
effective_polls-0.6.1 app/views/effective/polls/_dashboard.html.haml
effective_polls-0.6.0 app/views/effective/polls/_dashboard.html.haml
effective_polls-0.5.6 app/views/effective/polls/_dashboard.html.haml
effective_polls-0.5.5 app/views/effective/polls/_dashboard.html.haml
effective_polls-0.5.4 app/views/effective/polls/_dashboard.html.haml
effective_polls-0.5.3 app/views/effective/polls/_dashboard.html.haml
effective_polls-0.5.2 app/views/effective/polls/_dashboard.html.haml
effective_polls-0.5.1 app/views/effective/polls/_dashboard.html.haml