administrate-field-jsontable 0.0.1 → 0.0.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b223c4f98474b6c7f8c4538def584f6140c5edfb
|
|
4
|
+
data.tar.gz: 5cc51b7e605c837c4b5be5d4df9d03c9cd27a439
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 53ad456e48a3364039791259442d04fa717d3c45f22595183e90213b02999794989684827872695e43d39d9f6e5610b08812eab4d24be419bc3d37fc1cb526c2
|
|
7
|
+
data.tar.gz: 3268585c747235f0d8a770ec2119bc0de035ed91d3cf640e73bd810d220dcc793ca2a62c75f262c10e774d76f0ef57dcf6482a9ca75b58194780aea333946972
|
|
@@ -2,7 +2,7 @@ $:.push File.expand_path('../lib', __FILE__)
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = 'administrate-field-jsontable'
|
|
5
|
-
s.version = '0.0.
|
|
5
|
+
s.version = '0.0.2'
|
|
6
6
|
s.authors = ['Enrique Barragan', 'Esteban Arocha']
|
|
7
7
|
s.email = ['enrique@disruptiveangels.com','esteban@disruptiveangels.com']
|
|
8
8
|
s.homepage = 'https://github.com/DisruptiveAngels/administrate-field-jsontable'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<%#
|
|
2
|
-
#
|
|
2
|
+
# Enum Show Partial
|
|
3
3
|
|
|
4
|
-
This partial renders an
|
|
4
|
+
This partial renders an enum attribute,
|
|
5
5
|
to be displayed on a resource's show page.
|
|
6
6
|
|
|
7
7
|
By default, the attribute is rendered as a text tag.
|
|
@@ -9,8 +9,8 @@ By default, the attribute is rendered as a text tag.
|
|
|
9
9
|
## Local variables:
|
|
10
10
|
|
|
11
11
|
- `field`:
|
|
12
|
-
An instance of [Administrate::Field::
|
|
13
|
-
A wrapper around the
|
|
12
|
+
An instance of [Administrate::Field::Enum][1].
|
|
13
|
+
A wrapper around the enum attributes pulled from the model.
|
|
14
14
|
|
|
15
15
|
%>
|
|
16
16
|
|
|
@@ -18,7 +18,7 @@ By default, the attribute is rendered as a text tag.
|
|
|
18
18
|
<thead>
|
|
19
19
|
<tr>
|
|
20
20
|
<% field.data.each do |k,v| %>
|
|
21
|
-
<th><%= k %></th>
|
|
21
|
+
<th><%= t(k) %></th>
|
|
22
22
|
<% end %>
|
|
23
23
|
</tr>
|
|
24
24
|
</thead>
|