promethee 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -0
- data/lib/promethee/rails/engine.rb +4 -0
- data/lib/promethee/rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87447152a196f9d440bb8a897f1f5d34cb96b7d6
|
4
|
+
data.tar.gz: 0f2a338585966bc9f0dda26d26ff2fbeb56ce445
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e00269f37693d8997915471a5f6f6e46be05973bb766f0e3bbbcfb57516f9757bf3b6e60ab6d1cb2c42504bfacef54104ec3d92ce7ddd6dc3471efa4b92a9656
|
7
|
+
data.tar.gz: a973602e6cbfe1394d6abe0a96e3145e655b0ed54a92dbd42922d7bd1bd08b734a780e5308a63f873a2abf7e8e4b28e20fd7e195f4ec0637d2c3db7dc944b1c8
|
data/README.md
CHANGED
@@ -114,6 +114,11 @@ Which renders to:
|
|
114
114
|
</div>
|
115
115
|
```
|
116
116
|
|
117
|
+
With stylesheets set:
|
118
|
+
```
|
119
|
+
@import promethee
|
120
|
+
```
|
121
|
+
|
117
122
|
### Editor
|
118
123
|
|
119
124
|
This would allow editing for a page model, with a jsonb data attribute:
|
@@ -134,6 +139,17 @@ This would do quite the same thing:
|
|
134
139
|
</form>
|
135
140
|
```
|
136
141
|
|
142
|
+
With javascript set:
|
143
|
+
```
|
144
|
+
//= require promethee
|
145
|
+
```
|
146
|
+
|
147
|
+
With stylesheets set:
|
148
|
+
```
|
149
|
+
@import promethee
|
150
|
+
@import promethee-editor
|
151
|
+
```
|
152
|
+
|
137
153
|
#### The editor has components
|
138
154
|
|
139
155
|
The component is made of a show and and edit.
|
@@ -4,4 +4,8 @@ class Promethee::Rails::Engine < ::Rails::Engine
|
|
4
4
|
include Promethee::Rails::Helper
|
5
5
|
end
|
6
6
|
end
|
7
|
+
initializer 'assets' do |app|
|
8
|
+
Rails.application.config.assets.precompile += %w( logo-promethee-vertical.svg logo-promethee-horizontal.svg icon-promethee.png )
|
9
|
+
Rails.application.config.assets.paths << Rails.root.join('vendors')
|
10
|
+
end
|
7
11
|
end
|