scaffold_pico 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/templates/pico/views/materialize/slim/edit.html.slim.erb +3 -3
- data/lib/templates/pico/views/materialize/slim/new.html.slim.erb +2 -2
- data/lib/templates/pico/views/materialize/slim/show.html.slim.erb +5 -5
- data/lib/templates/pico/views/zurb/slim/edit.html.slim.erb +4 -4
- data/lib/templates/pico/views/zurb/slim/new.html.slim.erb +2 -2
- data/lib/templates/pico/views/zurb/slim/show.html.slim.erb +5 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6252d7d37ef3137b59bca56ca783c27a189ad02
|
4
|
+
data.tar.gz: c22de7e4559f054972670417c304863612a896d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb7107ddd6cf2075ab3ad3942279104aed0c5cd6b6fc922151fd0d42f6fc17d794fe9e530a08eaaf676ca6831340950f05672cd862356118f6670a685ed85722
|
7
|
+
data.tar.gz: 3d91bf047b15ac72f1adb6f5fddc11e31e1eca9cb156ba32943975c43fa06ecd39e3ee9549ebca3c6728aa2e97046e68aa38826ce5e27152a728ed19eddbe329
|
@@ -1,16 +1,16 @@
|
|
1
|
-
h1 = t('scaffold.edit.title', model: <%= @rails.resource.
|
1
|
+
h1 = t('scaffold.edit.title', model: <%= @rails.resource.class_name_with_modules %>.model_name.human(count: 1).mb_chars.downcase)
|
2
2
|
|
3
3
|
.section
|
4
4
|
.left
|
5
5
|
= link_to <%= @rails.path.collection %>, class: 'waves-effect waves-light btn' do
|
6
6
|
i.material-icons.right view_list
|
7
|
-
= t('scaffold.show.actions.index', model: <%= @rails.resource.
|
7
|
+
= t('scaffold.show.actions.index', model: <%= @rails.resource.class_name_with_modules %>.model_name.human(count: 2).mb_chars.downcase)
|
8
8
|
|
9
9
|
|
10
10
|
.right
|
11
11
|
= link_to <%= @rails.path.new_resource %>, class: 'btn waves-effect waves-light' do
|
12
12
|
i.material-icons.right add
|
13
|
-
= t('scaffold.actions.new', model: <%= @rails.resource.
|
13
|
+
= t('scaffold.actions.new', model: <%= @rails.resource.class_name_with_modules %>.model_name.human(count: 1).mb_chars.downcase)
|
14
14
|
|
15
15
|
.clearfix
|
16
16
|
|
@@ -1,10 +1,10 @@
|
|
1
|
-
h1 = t('scaffold.new.title', model: <%= @rails.resource.
|
1
|
+
h1 = t('scaffold.new.title', model: <%= @rails.resource.class_name_with_modules %>.model_name.human(count: 1).mb_chars.downcase)
|
2
2
|
|
3
3
|
.section
|
4
4
|
.left
|
5
5
|
= link_to <%= @rails.path.collection %>, class: 'waves-effect waves-light btn' do
|
6
6
|
i.material-icons.right view_list
|
7
|
-
= t('scaffold.show.actions.index', model: <%= @rails.resource.
|
7
|
+
= t('scaffold.show.actions.index', model: <%= @rails.resource.class_name_with_modules %>.model_name.human(count: 2).mb_chars.downcase)
|
8
8
|
|
9
9
|
.clearfix
|
10
10
|
|
@@ -1,17 +1,17 @@
|
|
1
|
-
h1 = t('scaffold.show.title', model: <%= @rails.resource.
|
1
|
+
h1 = t('scaffold.show.title', model: <%= @rails.resource.class_name_with_modules %>.model_name.human(count: 1).mb_chars.downcase)
|
2
2
|
|
3
3
|
.section
|
4
4
|
.left
|
5
5
|
= link_to <%= @rails.path.collection %>, class: 'waves-effect waves-light btn' do
|
6
6
|
i.material-icons.right view_list
|
7
|
-
= t('scaffold.actions.index', model: <%= @rails.resource.
|
7
|
+
= t('scaffold.actions.index', model: <%= @rails.resource.class_name_with_modules %>.model_name.human(count: 2).mb_chars.downcase)
|
8
8
|
.right
|
9
9
|
= link_to <%= @rails.path.edit_instance_resource %>, class: 'btn waves-effect waves-light' do
|
10
10
|
i.material-icons.right mode_edit
|
11
|
-
= t('scaffold.actions.edit', model: <%= @rails.resource.
|
11
|
+
= t('scaffold.actions.edit', model: <%= @rails.resource.class_name_with_modules %>.model_name.human(count: 1).mb_chars.downcase)
|
12
12
|
= link_to <%= @rails.path.new_resource %>, class: 'btn waves-effect waves-light' do
|
13
13
|
i.material-icons.right add
|
14
|
-
= t('scaffold.actions.new', model: <%= @rails.resource.
|
14
|
+
= t('scaffold.actions.new', model: <%= @rails.resource.class_name_with_modules %>.model_name.human(count: 1).mb_chars.downcase)
|
15
15
|
|
16
16
|
.clearfix
|
17
17
|
|
@@ -21,6 +21,6 @@ h1 = t('scaffold.show.title', model: <%= @rails.resource.class_name %>.model_nam
|
|
21
21
|
tbody
|
22
22
|
<% @rails.resource.fields.keys.each do |field_name| %>
|
23
23
|
tr
|
24
|
-
td = <%= @rails.resource.
|
24
|
+
td = <%= @rails.resource.class_name_with_modules -%>.human_attribute_name(:<%= field_name -%>)
|
25
25
|
td = @<%= @rails.resource.name %>.<%= field_name -%>
|
26
26
|
<% end %>
|
@@ -1,11 +1,11 @@
|
|
1
|
-
h1 = t('scaffold.edit.title', model: <%= @rails.resource.
|
1
|
+
h1 = t('scaffold.edit.title', model: <%= @rails.resource.class_name_with_modules %>.model_name.human(count: 1).mb_chars.downcase)
|
2
2
|
|
3
3
|
.callout.clearfix
|
4
4
|
.float-left
|
5
|
-
= link_to t('scaffold.show.actions.index', model: <%= @rails.resource.
|
5
|
+
= link_to t('scaffold.show.actions.index', model: <%= @rails.resource.class_name_with_modules %>.model_name.human(count: 2).mb_chars.downcase), <%= @rails.path.collection %>, class: 'button small primary'
|
6
6
|
.float-right
|
7
|
-
= link_to t('scaffold.actions.edit', model: <%= @rails.resource.
|
8
|
-
= link_to t('scaffold.actions.new', model: <%= @rails.resource.
|
7
|
+
= link_to t('scaffold.actions.edit', model: <%= @rails.resource.class_name_with_modules %>.model_name.human(count: 1).mb_chars.downcase), <%= @rails.path.edit_instance_resource %>, class: 'button small warning'
|
8
|
+
= link_to t('scaffold.actions.new', model: <%= @rails.resource.class_name_with_modules %>.model_name.human(count: 1).mb_chars.downcase), <%= @rails.path.new_resource %>, class: 'button small secondary'
|
9
9
|
|
10
10
|
= simple_form_for <%= @rails.path.instance_resource %> do |form|
|
11
11
|
= render 'form', form: form
|
@@ -1,8 +1,8 @@
|
|
1
|
-
h1 = t('scaffold.new.title', model: <%= @rails.resource.
|
1
|
+
h1 = t('scaffold.new.title', model: <%= @rails.resource.class_name_with_modules %>.model_name.human(count: 1).mb_chars.downcase)
|
2
2
|
|
3
3
|
.callout.clearfix
|
4
4
|
.float-left
|
5
|
-
= link_to t('scaffold.show.actions.index', model: <%= @rails.resource.
|
5
|
+
= link_to t('scaffold.show.actions.index', model: <%= @rails.resource.class_name_with_modules %>.model_name.human(count: 2).mb_chars.downcase), <%= @rails.path.collection %>, class: 'button small primary'
|
6
6
|
|
7
7
|
= simple_form_for <%= @rails.path.instance_resource %> do |form|
|
8
8
|
= render 'form', form: form
|
@@ -1,16 +1,16 @@
|
|
1
|
-
h1 = t('scaffold.show.title', model: <%= @rails.resource.
|
1
|
+
h1 = t('scaffold.show.title', model: <%= @rails.resource.class_name_with_modules %>.model_name.human(count: 1).mb_chars.downcase)
|
2
2
|
|
3
3
|
.callout.clearfix
|
4
4
|
.float-left
|
5
|
-
= link_to t('scaffold.show.actions.index', model: <%= @rails.resource.
|
5
|
+
= link_to t('scaffold.show.actions.index', model: <%= @rails.resource.class_name_with_modules %>.model_name.human(count: 2).mb_chars.downcase), <%= @rails.path.collection %>, class: 'button small primary'
|
6
6
|
.float-right
|
7
|
-
= link_to t('scaffold.actions.edit', model: <%= @rails.resource.
|
8
|
-
= link_to t('scaffold.actions.new', model: <%= @rails.resource.
|
7
|
+
= link_to t('scaffold.actions.edit', model: <%= @rails.resource.class_name_with_modules %>.model_name.human(count: 1).mb_chars.downcase), <%= @rails.path.edit_instance_resource %>, class: 'button small warning'
|
8
|
+
= link_to t('scaffold.actions.new', model: <%= @rails.resource.class_name_with_modules %>.model_name.human(count: 1).mb_chars.downcase), <%= @rails.path.new_resource %>, class: 'button small secondary'
|
9
9
|
|
10
10
|
table
|
11
11
|
tbody
|
12
12
|
<% @rails.resource.fields.keys.each do |field_name| %>
|
13
13
|
tr
|
14
|
-
td = <%= @rails.resource.
|
14
|
+
td = <%= @rails.resource.class_name_with_modules -%>.human_attribute_name(:<%= field_name -%>)
|
15
15
|
td = @<%= @rails.resource.name %>.<%= field_name -%>
|
16
16
|
<% end %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scaffold_pico
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- gudata
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
148
|
version: '0'
|
149
149
|
requirements: []
|
150
150
|
rubyforge_project:
|
151
|
-
rubygems_version: 2.
|
151
|
+
rubygems_version: 2.6.14
|
152
152
|
signing_key:
|
153
153
|
specification_version: 4
|
154
154
|
summary: Scaffold should be simple
|