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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da10ca9b5a5d7ae946efd609b7aadf0f0f98fb86
|
4
|
+
data.tar.gz: 36cb2471c9242a028f828b9d627c3d3c1fa639d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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!
|
data/lib/phrasing/version.rb
CHANGED
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
|
+
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-
|
12
|
+
date: 2013-11-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|