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.5.27 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.5.26 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.4.45 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.5.25 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.5.23 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.4.44 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.5.22 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.4.43 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.5.21 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.4.42 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.5.20 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.4.41 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.5.19 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.4.40 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.5.18 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.4.39 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.5.17 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.4.38 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.5.16 app/views/workarea/admin/data_files/errors.html.haml
workarea-admin-3.4.37 app/views/workarea/admin/data_files/errors.html.haml