jquery-datatables-rails 0.0.2 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Readme.md
CHANGED
@@ -4,7 +4,10 @@ This is a gem for Rails >= 3.1 applications. It provides all the basic DataTable
|
|
4
4
|
|
5
5
|
First, put the gem in your Gemfile (`gem 'jquery-datatables-rails'`) and run `bundle install`
|
6
6
|
|
7
|
-
After installing it you can require it in your _application.js_ file with `\\= require jquery.dataTables.min`, or use the images and stylesheets in the _dataTables_ directory: `<%= image_tag 'dataTables/sortBoth.png'
|
7
|
+
After installing it you can require it in your _application.js_ file with `\\= require jquery.dataTables.min`, or use the images and stylesheets in the _dataTables_ directory: `<%= image_tag 'dataTables/sortBoth.png' %>`.
|
8
|
+
|
9
|
+
However, if you use the stylesheets include them separately and not compiled in the application.css.
|
10
|
+
This is because images in the stylesheets are referenced to without a path. So if you include the stylesheet `dataTables/demo_table_jui` it works, because the images are also under `dataTables`. But if you include the stylesheet in the application.css, it won't work.
|
8
11
|
|
9
12
|
# Plugins
|
10
13
|
|
@@ -86,19 +86,19 @@
|
|
86
86
|
}
|
87
87
|
|
88
88
|
.paginate_disabled_previous {
|
89
|
-
background-image: url('
|
89
|
+
background-image: url('back_disabled.jpg');
|
90
90
|
}
|
91
91
|
|
92
92
|
.paginate_enabled_previous {
|
93
|
-
background-image: url('
|
93
|
+
background-image: url('back_enabled.jpg');
|
94
94
|
}
|
95
95
|
|
96
96
|
.paginate_disabled_next {
|
97
|
-
background-image: url('
|
97
|
+
background-image: url('forward_disabled.jpg');
|
98
98
|
}
|
99
99
|
|
100
100
|
.paginate_enabled_next {
|
101
|
-
background-image: url('
|
101
|
+
background-image: url('forward_enabled.jpg');
|
102
102
|
}
|
103
103
|
|
104
104
|
|
@@ -158,23 +158,23 @@ table.display td.center {
|
|
158
158
|
*/
|
159
159
|
|
160
160
|
.sorting_asc {
|
161
|
-
background: url('
|
161
|
+
background: url('sort_asc.png') no-repeat center right;
|
162
162
|
}
|
163
163
|
|
164
164
|
.sorting_desc {
|
165
|
-
background: url('
|
165
|
+
background: url('sort_desc.png') no-repeat center right;
|
166
166
|
}
|
167
167
|
|
168
168
|
.sorting {
|
169
|
-
background: url('
|
169
|
+
background: url('sort_both.png') no-repeat center right;
|
170
170
|
}
|
171
171
|
|
172
172
|
.sorting_asc_disabled {
|
173
|
-
background: url('
|
173
|
+
background: url('sort_asc_disabled.png') no-repeat center right;
|
174
174
|
}
|
175
175
|
|
176
176
|
.sorting_desc_disabled {
|
177
|
-
background: url('
|
177
|
+
background: url('sort_desc_disabled.png') no-repeat center right;
|
178
178
|
}
|
179
179
|
|
180
180
|
|
@@ -157,19 +157,19 @@ table.display thead th div.DataTables_sort_wrapper span {
|
|
157
157
|
}
|
158
158
|
|
159
159
|
.paginate_disabled_previous {
|
160
|
-
background-image: url('
|
160
|
+
background-image: url('back_disabled.jpg');
|
161
161
|
}
|
162
162
|
|
163
163
|
.paginate_enabled_previous {
|
164
|
-
background-image: url('
|
164
|
+
background-image: url('back_enabled.jpg');
|
165
165
|
}
|
166
166
|
|
167
167
|
.paginate_disabled_next {
|
168
|
-
background-image: url('
|
168
|
+
background-image: url('forward_disabled.jpg');
|
169
169
|
}
|
170
170
|
|
171
171
|
.paginate_enabled_next {
|
172
|
-
background-image: url('
|
172
|
+
background-image: url('forward_enabled.jpg');
|
173
173
|
}
|
174
174
|
|
175
175
|
|
@@ -209,23 +209,23 @@ table.display td.center {
|
|
209
209
|
*/
|
210
210
|
|
211
211
|
.sorting_asc {
|
212
|
-
background: url('
|
212
|
+
background: url('sort_asc.png') no-repeat center right;
|
213
213
|
}
|
214
214
|
|
215
215
|
.sorting_desc {
|
216
|
-
background: url('
|
216
|
+
background: url('sort_desc.png') no-repeat center right;
|
217
217
|
}
|
218
218
|
|
219
219
|
.sorting {
|
220
|
-
background: url('
|
220
|
+
background: url('sort_both.png') no-repeat center right;
|
221
221
|
}
|
222
222
|
|
223
223
|
.sorting_asc_disabled {
|
224
|
-
background: url('
|
224
|
+
background: url('sort_asc_disabled.png') no-repeat center right;
|
225
225
|
}
|
226
226
|
|
227
227
|
.sorting_desc_disabled {
|
228
|
-
background: url('
|
228
|
+
background: url('sort_desc_disabled.png') no-repeat center right;
|
229
229
|
}
|
230
230
|
|
231
231
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery-datatables-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-09-
|
12
|
+
date: 2011-09-14 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jquery-rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70203628521920 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70203628521920
|
25
25
|
description: ''
|
26
26
|
email:
|
27
27
|
- robin@wenglewski.de
|
@@ -52,7 +52,6 @@ files:
|
|
52
52
|
- vendor/assets/javascripts/jquery.dataTables.min.js
|
53
53
|
- vendor/assets/javascripts/jquery.dataTables.min.js.gz
|
54
54
|
- vendor/assets/stylesheets/dataTables/.DS_Store
|
55
|
-
- vendor/assets/stylesheets/dataTables/demo_page.css
|
56
55
|
- vendor/assets/stylesheets/dataTables/demo_table.css
|
57
56
|
- vendor/assets/stylesheets/dataTables/demo_table_jui.css
|
58
57
|
homepage: https://github.com/rweng/jquery-datatables-rails
|
@@ -1,99 +0,0 @@
|
|
1
|
-
|
2
|
-
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
3
|
-
* General page setup
|
4
|
-
*/
|
5
|
-
#dt_example {
|
6
|
-
font: 80%/1.45em "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
|
7
|
-
margin: 0;
|
8
|
-
padding: 0;
|
9
|
-
color: #333;
|
10
|
-
background-color: #fff;
|
11
|
-
}
|
12
|
-
|
13
|
-
|
14
|
-
#dt_example #container {
|
15
|
-
width: 800px;
|
16
|
-
margin: 30px auto;
|
17
|
-
padding: 0;
|
18
|
-
}
|
19
|
-
|
20
|
-
|
21
|
-
#dt_example #footer {
|
22
|
-
margin: 50px auto 0 auto;
|
23
|
-
padding: 0;
|
24
|
-
}
|
25
|
-
|
26
|
-
#dt_example #demo {
|
27
|
-
margin: 30px auto 0 auto;
|
28
|
-
}
|
29
|
-
|
30
|
-
#dt_example .demo_jui {
|
31
|
-
margin: 30px auto 0 auto;
|
32
|
-
}
|
33
|
-
|
34
|
-
#dt_example .big {
|
35
|
-
font-size: 1.3em;
|
36
|
-
font-weight: bold;
|
37
|
-
line-height: 1.6em;
|
38
|
-
color: #4E6CA3;
|
39
|
-
}
|
40
|
-
|
41
|
-
#dt_example .spacer {
|
42
|
-
height: 20px;
|
43
|
-
clear: both;
|
44
|
-
}
|
45
|
-
|
46
|
-
#dt_example .clear {
|
47
|
-
clear: both;
|
48
|
-
}
|
49
|
-
|
50
|
-
#dt_example pre {
|
51
|
-
padding: 15px;
|
52
|
-
background-color: #F5F5F5;
|
53
|
-
border: 1px solid #CCCCCC;
|
54
|
-
}
|
55
|
-
|
56
|
-
#dt_example h1 {
|
57
|
-
margin-top: 2em;
|
58
|
-
font-size: 1.3em;
|
59
|
-
font-weight: normal;
|
60
|
-
line-height: 1.6em;
|
61
|
-
color: #4E6CA3;
|
62
|
-
border-bottom: 1px solid #B0BED9;
|
63
|
-
clear: both;
|
64
|
-
}
|
65
|
-
|
66
|
-
#dt_example h2 {
|
67
|
-
font-size: 1.2em;
|
68
|
-
font-weight: normal;
|
69
|
-
line-height: 1.6em;
|
70
|
-
color: #4E6CA3;
|
71
|
-
clear: both;
|
72
|
-
}
|
73
|
-
|
74
|
-
#dt_example a {
|
75
|
-
color: #0063DC;
|
76
|
-
text-decoration: none;
|
77
|
-
}
|
78
|
-
|
79
|
-
#dt_example a:hover {
|
80
|
-
text-decoration: underline;
|
81
|
-
}
|
82
|
-
|
83
|
-
#dt_example ul {
|
84
|
-
color: #4E6CA3;
|
85
|
-
}
|
86
|
-
|
87
|
-
.css_right {
|
88
|
-
float: right;
|
89
|
-
}
|
90
|
-
|
91
|
-
.css_left {
|
92
|
-
float: left;
|
93
|
-
}
|
94
|
-
|
95
|
-
.demo_links {
|
96
|
-
float: left;
|
97
|
-
width: 50%;
|
98
|
-
margin-bottom: 1em;
|
99
|
-
}
|