rows_controller 1.0.1 → 1.0.3
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/app/controllers/rows_controller.rb +3 -4
- data/app/views/rows/_submit_part.slim +1 -1
- data/app/views/rows/edit.slim +1 -1
- data/app/views/rows/index.slim +2 -2
- data/app/views/rows/new.slim +1 -1
- data/app/views/rows/show.slim +1 -1
- data/lib/rows_controller/locales/de.yml +2 -2
- data/lib/rows_controller/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: 632ae87c650e00705ccec294b440e61ab21306a4
|
4
|
+
data.tar.gz: 87b2ba52c89033fa05f37342aeaedfcac53697f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28ae2e9544ad101dd01ceeee9e7d08000ccb3337b6f3eb25fe593503eb1b21c002f320c721bac060cd17185e98311f032ae45163d00f82d2f03a6fcc88cd5fa8
|
7
|
+
data.tar.gz: 13b78c739970d70892a15ecc2eb85fa1bf2a9c0db3e8376254980b461ac1e86c6fef27b4bc057b4c21d89d67aea1f0c67cf7056ad51bd2cdfc7b62cc27f7a287
|
@@ -29,7 +29,7 @@ class RowsController < ApplicationController
|
|
29
29
|
respond_to do |format|
|
30
30
|
if resource_create
|
31
31
|
flash[:notice] = t('ui.created', model: model_name,
|
32
|
-
default: "%{model} created.")
|
32
|
+
default: "%{model} created.").html_safe
|
33
33
|
format.html {
|
34
34
|
if params[:commit] == 'OK'
|
35
35
|
redirect_to_index
|
@@ -50,8 +50,7 @@ class RowsController < ApplicationController
|
|
50
50
|
set_resource
|
51
51
|
respond_to do |format|
|
52
52
|
if resource_update
|
53
|
-
flash[:notice] = t('ui.updated', model: model_name
|
54
|
-
default: "%{model} updated.")
|
53
|
+
flash[:notice] = t('ui.updated', model: model_name).html_safe
|
55
54
|
format.html {
|
56
55
|
if params[:commit] == 'OK'
|
57
56
|
redirect_to_index
|
@@ -71,7 +70,7 @@ class RowsController < ApplicationController
|
|
71
70
|
def destroy
|
72
71
|
set_resource
|
73
72
|
resource_destroy
|
74
|
-
flash[:notice] = t('ui.destroyed', model: model_name) unless request.xhr?
|
73
|
+
flash[:notice] = t('ui.destroyed', model: model_name).html_safe unless request.xhr?
|
75
74
|
respond_to do |format|
|
76
75
|
format.html { redirect_to_index }
|
77
76
|
format.js { render template: 'rows/destroy', layout: false }
|
data/app/views/rows/edit.slim
CHANGED
@@ -7,7 +7,7 @@ ruby:
|
|
7
7
|
link_to t('button.back').html_safe, "/#{controller_name}", class: 'button' }
|
8
8
|
|
9
9
|
fieldset class="wide mask" id=model_symbol
|
10
|
-
legend = t('ui.editing', model: model_name)
|
10
|
+
legend = t('ui.editing', model: model_name).html_safe
|
11
11
|
= render '/shared/error_explanation'
|
12
12
|
|
13
13
|
- @multipart ||= false
|
data/app/views/rows/index.slim
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
- # Requires resources model_name resource_columns
|
3
3
|
|
4
4
|
- if resources.length > 0
|
5
|
-
h1 = t('ui.listing', model: model_name)
|
5
|
+
h1 = t('ui.listing', model: model_name).html_safe
|
6
6
|
= render '/rows/list', resources: resources, columns: resource_columns
|
7
7
|
- else
|
8
|
-
h1 = t('ui.empty_list', model: model_name)
|
8
|
+
h1 = t('ui.empty_list', model: model_name).html_safe
|
9
9
|
|
10
10
|
= render 'list_footer'
|
data/app/views/rows/new.slim
CHANGED
@@ -7,7 +7,7 @@ ruby:
|
|
7
7
|
link_to t('button.back').html_safe, "/#{controller_name}", class: 'button' }
|
8
8
|
|
9
9
|
fieldset.wide class="mask" id=model_symbol
|
10
|
-
legend = t('ui.new', model: model_name)
|
10
|
+
legend = t('ui.new', model: model_name).html_safe
|
11
11
|
= render '/shared/error_explanation'
|
12
12
|
|
13
13
|
- @multipart ||= false
|
data/app/views/rows/show.slim
CHANGED
@@ -9,7 +9,7 @@ ruby:
|
|
9
9
|
link_to t('button.edit').html_safe, url_for(action: :edit), class: 'button' }
|
10
10
|
|
11
11
|
fieldset.show class="wide mask" id=model_symbol
|
12
|
-
legend = t('ui.showing', model: model_name)
|
12
|
+
legend = t('ui.showing', model: model_name).html_safe
|
13
13
|
= render '/shared/error_explanation'
|
14
14
|
|
15
15
|
= form_for resource do |f|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rows_controller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dittmar Krall
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sqlite3
|