iquest-simple_table 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c5ab455d758e9ac8c5d55c8c529abb08fb8765f
4
- data.tar.gz: 042b73f4e3a50d84cb0dd9ed845f143c9d967d94
3
+ metadata.gz: 65c81c5dadeaf52ded02413640c73a9fca8e6b5d
4
+ data.tar.gz: 39753d23cb42fdfdce886bf17aa761f17889b3da
5
5
  SHA512:
6
- metadata.gz: 24085fb0c6d04f4d5fa4d6f10d703cb760b94c9917869c0d542529c6aaa6ec5e07ec5b18212f94f10a32af07cbbb4102ade07dfe790517e5b118e87595a5f639
7
- data.tar.gz: f7daeeadc21940a17024027f4820f0bb5409ff1286ed240534c8038946abfbce6eadbe44a0594d4ca02a8049c5520f2524cdcee853975f8f5796962dfdd786f2
6
+ metadata.gz: 0749e3f512ab491bae1cd0db18f0c0abcf839827e7171ba54f9fbfa7783be5b9abc019bea0892adbe2386d149050a83ed9eeb2e17fa14116994a9d7568e4e776
7
+ data.tar.gz: f82bc1233f8fab071a4fa74e76b2f42eeb9548df376cdbe5bf3dd3745cbd5fcab4a5dc34603b24955e547c6fe47bdf3aaafea6857dce874cd54df8afa97d268b
@@ -74,9 +74,13 @@ module Iquest
74
74
 
75
75
  def to_s
76
76
  if @search
77
- render_table_with_search
77
+ content_tag :div, '', class: 'filter-table-block' do
78
+ render_table_with_search
79
+ end
78
80
  else
79
- render_table_without_search
81
+ content_tag :div, '', class: 'filter-table-block' do
82
+ render_table_without_search
83
+ end
80
84
  end
81
85
  end
82
86
 
@@ -86,13 +90,15 @@ module Iquest
86
90
  render_table_header + render_table_body + render_table_footer
87
91
  end
88
92
 
89
- if @options[:responsive]
93
+ out = if @options[:responsive]
90
94
  content_tag :div, class: 'table-responsive' do
91
95
  table
92
96
  end
93
97
  else
94
98
  table
95
99
  end
100
+
101
+ out + render_pagination + render_footer_actions
96
102
  end
97
103
 
98
104
  include RansackSimpleForm::FormHelper
@@ -255,20 +261,19 @@ module Iquest
255
261
  def render_table_footer
256
262
  content_tag :tfoot, class: '' do
257
263
  content_tag :tr, class: '' do
258
- render_pagination + render_footer_actions
259
264
  end
260
265
  end
261
266
  end
262
267
 
263
268
  def render_pagination
264
- content_tag :td, colspan: column_count do
269
+ content_tag :div, '', class: 'paginate-block' do
265
270
  paginate @collection if @collection.respond_to?(:current_page)
266
271
  end
267
272
 
268
273
  end
269
274
 
270
275
  def render_footer_actions
271
- content_tag :td, '', class: 'totals-block' do
276
+ content_tag :div, '', class: 'totals-block' do
272
277
  page_entries_info @collection, entry_name: @klass.model_name.human if @collection.respond_to?(:current_page)
273
278
  end
274
279
  end
@@ -1,5 +1,5 @@
1
1
  module Iquest
2
2
  module SimpleTable
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iquest-simple_table
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Dusanek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-10 00:00:00.000000000 Z
11
+ date: 2014-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ransack_simple_form