Sha256: 2f3b101bf5dfc56e7847ba40d2571e250901d81897201c84eed7d6881c88bd43

Contents?: true

Size: 1.54 KB

Versions: 62

Compression:

Stored size: 1.54 KB

Contents

- @page_title = t('workarea.admin.data_files.errors.page_title', name: @data_file.name, type: @data_file.type)

.view
  .view__header
    .view__heading
      = link_to "↑ #{t('workarea.admin.data_files.errors.dashboard_link')}", data_files_path(type: params[:type]), class: 'view__dashboard-button'
      %h1= t('workarea.admin.data_files.errors.title', name: @data_file.name, type: @data_file.type)


  .view__container.view__container--narrow
    .browsing-controls.browsing-controls--with-divider.browsing-controls--center
      %p.browsing-controls__count
        = pluralize(@data_file.error_count, t('workarea.admin.data_files.errors.error'))

    - if @data_file.error_count.positive?

      - if @data_file.error_message.present?
        .align-center
          %h2= @data_file.error_type.presence || t('workarea.admin.data_files.errors.unknown_type')
          %p= @data_file.error_message

      - if @data_file.file_errors.present?
        %table
          %thead
            %tr
              - if @data_file.errors_with_line_numbers?
                %th= t('workarea.admin.data_files.errors.table.id_or_line')
              - else
                %th= t('workarea.admin.fields.id')
              %th= t('workarea.admin.data_files.errors.table.field')
              %th= t('workarea.admin.data_files.errors.table.message')
          %tbody
            - @data_file.file_errors.each do |key, errors|
              - errors.each do |field, values|
                %tr
                  %td= key
                  %td= field
                  %td= values.to_sentence

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-admin-3.4.27 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.5.4 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.4.26 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.5.3 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.4.25 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.5.2 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.4.24 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.5.1 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.4.23 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.4.22 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.5.0 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.4.21 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.5.0.beta.1 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.4.20 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.4.19 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.4.18 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.4.17 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.4.16 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.4.15 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.4.14 app/views/workarea/admin/data_files/errors.html.haml