rows_controller 1.0.1 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8350895106158002e0b1bd6319c3867cc66f4f1d
4
- data.tar.gz: a83f127435c76d5541c453101fc8f3e372694e64
3
+ metadata.gz: 632ae87c650e00705ccec294b440e61ab21306a4
4
+ data.tar.gz: 87b2ba52c89033fa05f37342aeaedfcac53697f9
5
5
  SHA512:
6
- metadata.gz: 3ff1628935d87ebc1537af200bab7b9dc45b91cae95d51659bca0f2e4d26ffd3611de29f7fabf94ae0b8df279d922dd38f65bb3c91162883a24b891931d4ce75
7
- data.tar.gz: 54244a7a196a7d540138dec17a1c12805af50f2026d634ee8eb2aac0296fa5909bd22d057357a56197b928497396532d72d065fe9a1e83b024f721ebf3de7a2e
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 }
@@ -1,4 +1,4 @@
1
1
  = content_for(content)
2
2
  - (names || []).each do |name|
3
3
  button.button type="submit" name="commit" value=name
4
- = t(name, scope: :button)
4
+ = t(name, scope: :button).html_safe
@@ -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
@@ -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'
@@ -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
@@ -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|
@@ -15,9 +15,9 @@ de:
15
15
 
16
16
  button:
17
17
  back: "Zur&uuml;ck"
18
- create: 'Neu'
18
+ create: 'Erstelle'
19
19
  update: 'Speichern'
20
20
  delete: 'L&ouml;sche'
21
- edit: 'Edititeren'
21
+ edit: 'Editieren'
22
22
  show: 'Zeige'
23
23
  clone: 'Klonen'
@@ -1,3 +1,3 @@
1
1
  module Rows
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.3'
3
3
  end
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.1
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-06-20 00:00:00.000000000 Z
11
+ date: 2013-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3