effective_style_guide 1.3.1 → 1.3.2
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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/models/effective/datatables/style_guide.rb +8 -6
- data/lib/effective_style_guide/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 94b427cdcef51cc3acbb8c90554099c1f13bed06
|
|
4
|
+
data.tar.gz: 91fc691397bf610178360b8573c7c509743d4d77
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f3534db8756db30a321bebe3f8c0c99dbbff5634bcf82d14323eb284a43fbd2598a0d1355cc1e7310a55ec8d6b420c889f238a6031131c95628c6808a83464cd
|
|
7
|
+
data.tar.gz: 5225ad02977bdc909790abafd1c88c75df761b4b93048cc1e4390689f5314602411da34143b0eb2ce2b69b389fa75f9a66e7ba3c99c7994bda3233884a06883a
|
data/README.md
CHANGED
|
@@ -37,7 +37,7 @@ You must include the Twitter Bootstrap3 Javascript and CSS assets on your own.
|
|
|
37
37
|
|
|
38
38
|
## Usage
|
|
39
39
|
|
|
40
|
-
Visit
|
|
40
|
+
Visit `/styleguide` to test how the bootstrap3 components look with your site's design (css theme).
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
### Add Custom Components
|
|
@@ -2,12 +2,14 @@ if defined?(EffectiveDatatables)
|
|
|
2
2
|
module Effective
|
|
3
3
|
module Datatables
|
|
4
4
|
class StyleGuide < Effective::Datatable
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
datatable do
|
|
6
|
+
array_column :id, :width => '10%'
|
|
7
|
+
array_column :material, :filter => {:type => :select, :values => ['Stainless Steel', 'Copper', 'Cast Iron', 'Composite']}
|
|
8
|
+
array_column :bowl, :filter => {:type => :select, :values => ['Single Bowl', 'Double Bowl', 'Triple Bowl']}
|
|
9
|
+
array_column :name
|
|
10
|
+
array_column :actions, :filter => false, :sortable => false do
|
|
11
|
+
[link_to('View', '#'), link_to('Edit', '#')].join(' - ').html_safe
|
|
12
|
+
end
|
|
11
13
|
end
|
|
12
14
|
|
|
13
15
|
def collection
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: effective_style_guide
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Code and Effect
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-07-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|