1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
- breadcrumb :imports, @workbench
/ PageHeader
= pageheader 'importer',
t('.title'),
'',
'',
link_to(t('imports.actions.new'), new_workbench_import_path(workbench_id: @workbench), class: 'btn btn-primary')
/ PageContent
.page_content
.container-fluid
- if params[:q].present? or @imports.any?
.row
.col-lg-12
= render 'filters'
- if @imports.any?
.row
.col-lg-12
= table_builder_2 @imports,
[ \
TableBuilderHelper::Column.new( \
key: :status, \
attribute: Proc.new { |n| import_status(n.status) }, \
), \
TableBuilderHelper::Column.new( \
key: :started_at, \
attribute: Proc.new { |n| l(n.started_at, format: :long) if n.started_at }, \
), \
TableBuilderHelper::Column.new( \
key: :name, \
attribute: 'name', \
link_to: lambda do |import| \
workbench_import_path(@workbench, import) \
end \
), \
TableBuilderHelper::Column.new( \
key: :creator, \
attribute: 'creator' \
) \
],
links: [],
cls: 'table has-search'
= new_pagination @imports, 'pull-right'
- unless @imports.any?
.row.mt-xs
.col-lg-12
= replacement_msg t('imports.search_no_results')
= javascript_pack_tag 'date_filters'
|