phrasing 3.0.4 → 3.0.5

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: 2698d56a19db8b81f308afa938f0a1e7cc7af4cc
4
- data.tar.gz: c4ac5317b2d1c5e156d85c7258c581383b2a3c59
3
+ metadata.gz: da10ca9b5a5d7ae946efd609b7aadf0f0f98fb86
4
+ data.tar.gz: 36cb2471c9242a028f828b9d627c3d3c1fa639d4
5
5
  SHA512:
6
- metadata.gz: 1a622c18735bf5f33097ec71d564f5b2abf03bac7b428905fb201ae169e0d573b3c39f3e424c9ac186cf0bbc3c1c8b0556fca81201d6530a656874198402c40c
7
- data.tar.gz: 7ce4fbed341ffcf56085eea010ff3c68df673eafd56afc8f96b870e7e6b1d8f706b2bc2240410958a4cfa34c1fefa3fc23ce66b48aa5cb4feaf570360cc1f09b
6
+ metadata.gz: ce1fbeb0d883a58394cb01b9f3eba874840b158489735874aedcf337130538e2d60762fab6930402560b675ca3d24e12716c1da00a2683b05e0b8ad3d7e559b8
7
+ data.tar.gz: 5ea659b332d5923e3093cfadf278e643f7bb8fb9baf56a91a42873cc986786e152878a2a68a870921d1cd32ca2d10d32fb6ecdd1ff88654d44ccef0f8bba1b9a
@@ -20,10 +20,7 @@
20
20
  padding-top:10px;
21
21
  color:white;
22
22
  font-weight: bold;
23
- }
24
-
25
- p{
26
- margin: 0 0 10px;
23
+ margin: 0 0 10px;
27
24
  }
28
25
 
29
26
  // On/Off Switch
@@ -94,9 +91,11 @@
94
91
 
95
92
  #view-all-phrases{
96
93
  margin-top:10px;
97
- // background-color: black;
98
94
  text-align: center;
99
95
  font-weight: bold;
96
+ p{
97
+ margin:0px 0px 10px 0px;
98
+ }
100
99
  a{
101
100
  color: #0088cc;
102
101
  &:hover{
@@ -120,6 +119,7 @@
120
119
  p{
121
120
  font-size:12px;
122
121
  line-height:14px;
122
+ margin: 5px 0 10px 0;
123
123
  }
124
124
  color: #8c8c8c;
125
125
  &.phrasing-info-visible{
@@ -37,7 +37,7 @@ module InlineHelper
37
37
  def phrasing_phrase(key, options = {})
38
38
  key = key.to_s
39
39
  if can_edit_phrases?
40
- @record = PhrasingPhrase.where(key: key, locale: I18n.locale).first || PhrasingPhrase.create_phrase(key)
40
+ @record = PhrasingPhrase.where(key: key, locale: I18n.locale.to_s).first || PhrasingPhrase.create_phrase(key)
41
41
  inline(@record, :value, options || {})
42
42
  else
43
43
  options.try(:[], :interpolation) ? t(key, options[:interpolation]).html_safe : t(key).html_safe
@@ -58,4 +58,4 @@ module InlineHelper
58
58
  "#{root_url}#{resource}/remote_update_phrase?klass=#{record.class.to_s}&id=#{record.id}&attribute=#{attribute}"
59
59
  end
60
60
 
61
- end
61
+ end
@@ -10,7 +10,7 @@ class PhrasingPhrase < ActiveRecord::Base
10
10
 
11
11
  def self.create_phrase(key)
12
12
  phrasing_phrase = PhrasingPhrase.new
13
- phrasing_phrase.locale = I18n.locale
13
+ phrasing_phrase.locale = I18n.locale.to_s
14
14
  phrasing_phrase.key = key.to_s
15
15
  phrasing_phrase.value = key.to_s
16
16
  phrasing_phrase.save!
@@ -1,3 +1,3 @@
1
1
  module Phrasing
2
- VERSION = "3.0.4"
2
+ VERSION = "3.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phrasing
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.4
4
+ version: 3.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomislav Car
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-22 00:00:00.000000000 Z
12
+ date: 2013-11-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails