Sha256: 4c94725f9f2c40e4d6e1264df566e4987f4f8c35290ea054ff38663cba165c15

Contents?: true

Size: 417 Bytes

Versions: 10

Compression:

Stored size: 417 Bytes

Contents

- page = (@question_group.previous_items.size + 1).to_i
- total_pages = @version.question_groups.size.to_i
- percent = ((page.to_f / total_pages.to_f)*100).round
#survey_progress
  .text-center
    = t '.count_page', page: page, total_pages: total_pages
  .progress
    .progress-bar aria-valuemax="100" aria-valuemin="0" aria-valuenow="#{percent}" role="progressbar" style="width: #{percent}%"
      = "#{percent}%"

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
helena-2.1.0 app/views/helena/sessions/_progressbar.html.slim
helena-2.0.2 app/views/helena/sessions/_progressbar.html.slim
helena-2.0.1 app/views/helena/sessions/_progressbar.html.slim
helena-2.0.0 app/views/helena/sessions/_progressbar.html.slim
helena-1.3.1 app/views/helena/sessions/_progressbar.html.slim
helena-1.3.0 app/views/helena/sessions/_progressbar.html.slim
helena-1.1.0 app/views/helena/sessions/_progressbar.html.slim
helena-1.0.3 app/views/helena/sessions/_progressbar.html.slim
helena-1.0.2 app/views/helena/sessions/_progressbar.html.slim
helena-1.0.1 app/views/helena/sessions/_progressbar.html.slim