administrate 0.1.5 → 0.2.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of administrate might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/administrate/version.rb +1 -1
- data/lib/generators/administrate/dashboard/templates/dashboard.rb.erb +4 -4
- metadata +5 -10
- data/app/views/fields/image/_form.html.erb +0 -23
- data/app/views/fields/image/_index.html.erb +0 -18
- data/app/views/fields/image/_show.html.erb +0 -18
- data/lib/administrate/field/image.rb +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c0c60906bdf3342ab0285ce6a887911691012de
|
4
|
+
data.tar.gz: 178da2fa126bd012cb254a14ab5e0a208f06d403
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97d65157139a5c2af25ae59b898974adfd6faa56884e53c96e21975e83bbd6a2df28e64b6042f4ed89b59978d597d62677594e900efd7a7cc844c15582ce3acb
|
7
|
+
data.tar.gz: b86e9ed0010127ec29aacf0d1dc440350804fa54ae05c68154b49de387410c2ea24ec97fb53ecbc920afa9080d024b0ea57b861a47fc45287c3deeec7b25875d
|
data/lib/administrate/version.rb
CHANGED
@@ -11,7 +11,7 @@ class <%= class_name %>Dashboard < Administrate::BaseDashboard
|
|
11
11
|
<% attributes.each do |attr| -%>
|
12
12
|
<%= attr %>: <%= field_type(attr) %>,
|
13
13
|
<% end -%>
|
14
|
-
}
|
14
|
+
}.freeze
|
15
15
|
|
16
16
|
# COLLECTION_ATTRIBUTES
|
17
17
|
# an array of attributes that will be displayed on the model's index page.
|
@@ -24,7 +24,7 @@ class <%= class_name %>Dashboard < Administrate::BaseDashboard
|
|
24
24
|
" :#{attr},"
|
25
25
|
end.join("\n")
|
26
26
|
%>
|
27
|
-
]
|
27
|
+
].freeze
|
28
28
|
|
29
29
|
# SHOW_PAGE_ATTRIBUTES
|
30
30
|
# an array of attributes that will be displayed on the model's show page.
|
@@ -34,7 +34,7 @@ class <%= class_name %>Dashboard < Administrate::BaseDashboard
|
|
34
34
|
" :#{attr},"
|
35
35
|
end.join("\n")
|
36
36
|
%>
|
37
|
-
]
|
37
|
+
].freeze
|
38
38
|
|
39
39
|
# FORM_ATTRIBUTES
|
40
40
|
# an array of attributes that will be displayed
|
@@ -45,7 +45,7 @@ class <%= class_name %>Dashboard < Administrate::BaseDashboard
|
|
45
45
|
" :#{attr},"
|
46
46
|
end.join("\n")
|
47
47
|
%>
|
48
|
-
]
|
48
|
+
].freeze
|
49
49
|
|
50
50
|
# Overwrite this method to customize how <%= file_name.pluralize.humanize.downcase %> are displayed
|
51
51
|
# across all pages of the admin dashboard.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: administrate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grayson Wright
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: autoprefixer-rails
|
@@ -230,9 +230,6 @@ files:
|
|
230
230
|
- app/views/fields/has_one/_form.html.erb
|
231
231
|
- app/views/fields/has_one/_index.html.erb
|
232
232
|
- app/views/fields/has_one/_show.html.erb
|
233
|
-
- app/views/fields/image/_form.html.erb
|
234
|
-
- app/views/fields/image/_index.html.erb
|
235
|
-
- app/views/fields/image/_show.html.erb
|
236
233
|
- app/views/fields/number/_form.html.erb
|
237
234
|
- app/views/fields/number/_index.html.erb
|
238
235
|
- app/views/fields/number/_show.html.erb
|
@@ -280,7 +277,6 @@ files:
|
|
280
277
|
- lib/administrate/field/email.rb
|
281
278
|
- lib/administrate/field/has_many.rb
|
282
279
|
- lib/administrate/field/has_one.rb
|
283
|
-
- lib/administrate/field/image.rb
|
284
280
|
- lib/administrate/field/number.rb
|
285
281
|
- lib/administrate/field/polymorphic.rb
|
286
282
|
- lib/administrate/field/select.rb
|
@@ -340,14 +336,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
340
336
|
version: '0'
|
341
337
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
342
338
|
requirements:
|
343
|
-
- - "
|
339
|
+
- - ">"
|
344
340
|
- !ruby/object:Gem::Version
|
345
|
-
version:
|
341
|
+
version: 1.3.1
|
346
342
|
requirements: []
|
347
343
|
rubyforge_project:
|
348
|
-
rubygems_version: 2.
|
344
|
+
rubygems_version: 2.4.5.1
|
349
345
|
signing_key:
|
350
346
|
specification_version: 4
|
351
347
|
summary: A Rails engine for creating super-flexible admin dashboards
|
352
348
|
test_files: []
|
353
|
-
has_rdoc:
|
@@ -1,23 +0,0 @@
|
|
1
|
-
<%#
|
2
|
-
# Image Form Partial
|
3
|
-
|
4
|
-
This partial renders an input element for image attributes.
|
5
|
-
By default, the input is a text field for the image's URL.
|
6
|
-
|
7
|
-
## Local variables:
|
8
|
-
|
9
|
-
- `f`:
|
10
|
-
A Rails form generator, used to help create the appropriate input fields.
|
11
|
-
- `field`:
|
12
|
-
An instance of [Administrate::Field::Image][1].
|
13
|
-
A wrapper around the image url pulled from the database.
|
14
|
-
|
15
|
-
[1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/Image
|
16
|
-
%>
|
17
|
-
|
18
|
-
<div class="field-unit__label">
|
19
|
-
<%= f.label field.attribute %>
|
20
|
-
</div>
|
21
|
-
<div class="field-unit__field">
|
22
|
-
<%= f.text_field field.attribute %>
|
23
|
-
</div>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<%#
|
2
|
-
# Image Index Partial
|
3
|
-
|
4
|
-
This partial renders an image attribute
|
5
|
-
to be displayed on a resource's index page.
|
6
|
-
|
7
|
-
By default, the attribute is rendered as an image tag.
|
8
|
-
|
9
|
-
## Local variables:
|
10
|
-
|
11
|
-
- `field`:
|
12
|
-
An instance of [Administrate::Field::Image][1].
|
13
|
-
A wrapper around the image url pulled from the database.
|
14
|
-
|
15
|
-
[1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/Image
|
16
|
-
%>
|
17
|
-
|
18
|
-
<%= image_tag field.data %>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<%#
|
2
|
-
# Image Show Partial
|
3
|
-
|
4
|
-
This partial renders an image attribute,
|
5
|
-
to be displayed on a resource's show page.
|
6
|
-
|
7
|
-
By default, the attribute is rendered as an image tag.
|
8
|
-
|
9
|
-
## Local variables:
|
10
|
-
|
11
|
-
- `field`:
|
12
|
-
An instance of [Administrate::Field::Image][1].
|
13
|
-
A wrapper around the image url pulled from the database.
|
14
|
-
|
15
|
-
[1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/Image
|
16
|
-
%>
|
17
|
-
|
18
|
-
<%= image_tag field.data %>
|