Sha256: f597816009d69e31b9c791dda2d8eff3ef9662fe5838e4dd254bcc261496b949

Contents?: true

Size: 1.34 KB

Versions: 1

Compression:

Stored size: 1.34 KB

Contents

.helena-admin
  %h2
    = Helena::Version.model_name.human(count: 2)
    = "(#{@versions.count})"
  - if @versions.empty?
    .alert.alert-warning
      = t('.empty')
  - else
    .table-responsive
      %table.table.versions
        %thead
          %tr
            %th.version= Helena::Version.human_attribute_name(:version)
            %th.notes= Helena::Version.human_attribute_name(:notes)
            %th.sessions= Helena::Session.model_name.human(count: 2)
            %th.created_at= Helena::Version.human_attribute_name(:created_at)
            %th
        %tbody
          - @versions.each do |version|
            %tr[version]
              %td.version
                = version.version
              %td.notes
                = version.notes
              %td.sessions
                = Helena::Session.where(version: version).count
              %td.created_at
                = time_ago_in_words(version.created_at)
              %td
                .btn-group
                  = link_to t('shared.edit'), edit_admin_survey_version_path(@survey, version), class: 'btn btn-success'
                  = link_to t('shared.delete'), admin_survey_version_path(@survey, version), method: :delete, class: 'btn btn-danger', data: { confirm: t('shared.delete_question') }

  %a.btn.btn-success{ href:  new_admin_survey_version_path(@survey)}
    = t 'shared.add'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
helena-0.3.3 app/views/helena/admin/versions/index.html.haml