e9_vendors 0.0.6 → 0.0.7
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.
- data/app/decorators/vendor_member_decorator.rb +3 -4
- data/app/decorators/vendor_proxy_decorator.rb +3 -3
- data/app/views/e9_vendors/settings/_form.html.haml +1 -1
- data/app/views/e9_vendors/vendors/_form.html.haml +2 -2
- data/config/locales/e9_vendors.en.yml +104 -19
- data/lib/e9_vendors/version.rb +1 -1
- metadata +2 -2
@@ -14,14 +14,13 @@ class VendorMemberDecorator < VendorsDecorator
|
|
14
14
|
:contact_phone => model.contact_phone,
|
15
15
|
:contact_title => model.contact_title,
|
16
16
|
:country => model.country,
|
17
|
-
:logo => model.logo_url,
|
18
17
|
:nickname => model.nickname,
|
19
18
|
:state => model.state,
|
20
19
|
:vendors => VendorProxyDecorator.decorate(model.vendor_proxies.widget_visible),
|
21
20
|
:website => model.website,
|
22
|
-
:widget_form_text => config_render(:e9_vendors_widget_form_text),
|
23
|
-
:widget_form_title => config_render(:e9_vendors_widget_form_title),
|
24
|
-
:widget_title => config_render(:e9_vendors_widget_title),
|
21
|
+
:widget_form_text => h.kramdown(config_render(:e9_vendors_widget_form_text)),
|
22
|
+
:widget_form_title => h.kramdown(config_render(:e9_vendors_widget_form_title)),
|
23
|
+
:widget_title => h.kramdown(config_render(:e9_vendors_widget_title)),
|
25
24
|
:zipcode => model.zipcode
|
26
25
|
}
|
27
26
|
end
|
@@ -21,7 +21,7 @@ class VendorProxyDecorator < VendorsDecorator
|
|
21
21
|
:display_on_widget_contact_form => vendor.display_on_widget_contact_form,
|
22
22
|
:landing_page => self.landing_page,
|
23
23
|
:logo => vendor.logo_url,
|
24
|
-
:long_description => liquid_render(vendor.long_description),
|
24
|
+
:long_description => h.kramdown(liquid_render(vendor.long_description)),
|
25
25
|
:member_compensation => vendor.member_compensation,
|
26
26
|
:name => vendor.name,
|
27
27
|
:nickname => vendor.nickname,
|
@@ -30,7 +30,7 @@ class VendorProxyDecorator < VendorsDecorator
|
|
30
30
|
:sales_full_name => self.sales_full_name,
|
31
31
|
:sales_phone => self.sales_phone,
|
32
32
|
:sales_title => self.sales_title,
|
33
|
-
:short_description => liquid_render(vendor.short_description),
|
33
|
+
:short_description => h.kramdown(liquid_render(vendor.short_description)),
|
34
34
|
:state => vendor.state,
|
35
35
|
:website => vendor.website,
|
36
36
|
:zipcode => vendor.zipcode
|
@@ -58,7 +58,7 @@ class VendorProxyDecorator < VendorsDecorator
|
|
58
58
|
|
59
59
|
def liquid_context
|
60
60
|
super.merge({
|
61
|
-
'
|
61
|
+
'vendor_tracking_code' => model.discount_code,
|
62
62
|
'vendor_sales_full_name' => model.sales_full_name,
|
63
63
|
'vendor_sales_title' => model.sales_title,
|
64
64
|
'vendor_sales_phone' => model.sales_phone,
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
%fieldset#widget_settings
|
5
5
|
%legend
|
6
|
-
= help_label(:widget_settings, :e9_vendors_widget_settings, :key => :e9_vendors_widget_help
|
6
|
+
= help_label(:widget_settings, :e9_vendors_widget_settings, :key => :e9_vendors_widget_help)
|
7
7
|
.field
|
8
8
|
= f.label :e9_vendors_widget_title
|
9
9
|
= f.text_field :e9_vendors_widget_title
|
@@ -32,10 +32,10 @@
|
|
32
32
|
= f.label :sales_phone
|
33
33
|
= f.text_field :sales_phone
|
34
34
|
.field
|
35
|
-
= help_label(f, :short_description, :key => :interpolation_instructions
|
35
|
+
= help_label(f, :short_description, :key => :interpolation_instructions)
|
36
36
|
= f.text_area :short_description
|
37
37
|
.field
|
38
|
-
= help_label(f, :long_description, :key => :interpolation_instructions
|
38
|
+
= help_label(f, :long_description, :key => :interpolation_instructions)
|
39
39
|
= f.text_area :long_description
|
40
40
|
.field
|
41
41
|
= f.label :landing_page, nil, :class => :req
|
@@ -12,20 +12,63 @@ en:
|
|
12
12
|
vendor_category: Category
|
13
13
|
discount_percentage: Default Member Discount
|
14
14
|
interpolation_instructions: |
|
15
|
-
<h3>Variables
|
16
|
-
<
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
15
|
+
<h3>Variables:</h3>
|
16
|
+
<p>You can insert the following to render variable data in the field</p>
|
17
|
+
<p>
|
18
|
+
{{member_name}}<br/>
|
19
|
+
{{vendor_tracking_code}}<br/>
|
20
|
+
{{vendor_name}}<br/>
|
21
|
+
{{vendor_nickname}}<br/>
|
22
|
+
{{vendor_landing_page}}<br/>
|
23
|
+
{{vendor_sales_email}}<br/>
|
24
|
+
{{vendor_sales_full_name}}<br/>
|
25
|
+
{{vendor_sales_phone}}<br/>
|
26
|
+
{{vendor_sales_title}}<br/>
|
27
|
+
</p>
|
28
|
+
<h3>Markdown:</h3>
|
29
|
+
<p>You can style the text in this field using the Markdown syntax as follows:</p>
|
30
|
+
<p>A line break is created by putting 2 spaces at the end of the line above and then a return.</p>
|
31
|
+
<p>A paragraph is created by putting a blank line between the first paragraph and the second paragraph.</p>
|
32
|
+
<p>*italics*</p>
|
33
|
+
<p>**bold**</p>
|
34
|
+
<p>***bold and italic text***</p>
|
35
|
+
<p>
|
36
|
+
* Item in a bulleted list<br/>
|
37
|
+
* A sub-item, indented with 4 spaces<br/>
|
38
|
+
* Another item in a bulleted list
|
39
|
+
</p>
|
40
|
+
<p>
|
41
|
+
1. Item in numbered list<br/>
|
42
|
+
2. Another Item in numbered list<br/>
|
43
|
+
3. Another Item in numbered list
|
44
|
+
</p>
|
45
|
+
<p># First-level heading</p>
|
46
|
+
<p>## Second-level heading</p>
|
47
|
+
<p>### Third-level heading</p>
|
48
|
+
<p>#### Fourth-level heading</p>
|
49
|
+
<p>
|
50
|
+
> This is a blockquote.<br/>
|
51
|
+
> Blockquote with hard wrap<br/>
|
52
|
+
><br/>
|
53
|
+
> This is the second paragraph in the blockquote.<br/>
|
54
|
+
><br/>
|
55
|
+
> ## This is an H2 in a blockquote
|
56
|
+
</p>
|
57
|
+
<p>[This is a link](http://www.google.com "Google")</p>
|
58
|
+
<p></p>
|
59
|
+
<p>--- Horizontal rules are created by 3 hyphens</p>
|
60
|
+
<p>If you need to actually render the following characters AND they are NOT rendering, place a backslash before the character like \*italics\* will actually render with the asterisks instead of italicizing the word.</p>
|
61
|
+
<p>\	backslash</p>
|
62
|
+
<p>*	asterisk</p>
|
63
|
+
<p>	_underscore</p>
|
64
|
+
<p>{}	curly braces</p>
|
65
|
+
<p>[]	square brackets</p>
|
66
|
+
<p>()	parentheses</p>
|
67
|
+
<p>#	hash mark</p>
|
68
|
+
<p>+	plus sign</p>
|
69
|
+
<p>-	minus sign (hyphen)</p>
|
70
|
+
<p>.	dot</p>
|
71
|
+
<p>!	exclamation mark</p>
|
29
72
|
settings:
|
30
73
|
e9_vendors_email_to: Email To
|
31
74
|
e9_vendors_email_from: Email From
|
@@ -36,11 +79,53 @@ en:
|
|
36
79
|
e9_vendors_widget_form_text: Widget Description
|
37
80
|
e9_vendors_widget_settings: Widget Settings
|
38
81
|
e9_vendors_widget_help: |
|
39
|
-
<h3>Variables
|
40
|
-
<
|
41
|
-
|
42
|
-
|
43
|
-
|
82
|
+
<h3>Variables:</h3>
|
83
|
+
<p>You can insert the following to render variable data in the field</p>
|
84
|
+
<p>{{member_name}}</p>
|
85
|
+
<h3>Markdown:</h3>
|
86
|
+
<p>You can style the text in this field using the Markdown syntax as follows:</p>
|
87
|
+
<p>A line break is created by putting 2 spaces at the end of the line above and then a return.</p>
|
88
|
+
<p>A paragraph is created by putting a blank line between the first paragraph and the second paragraph.</p>
|
89
|
+
<p>*italics*</p>
|
90
|
+
<p>**bold**</p>
|
91
|
+
<p>***bold and italic text***</p>
|
92
|
+
<p>
|
93
|
+
* Item in a bulleted list<br/>
|
94
|
+
* A sub-item, indented with 4 spaces<br/>
|
95
|
+
* Another item in a bulleted list
|
96
|
+
</p>
|
97
|
+
<p>
|
98
|
+
1. Item in numbered list<br/>
|
99
|
+
2. Another Item in numbered list<br/>
|
100
|
+
3. Another Item in numbered list
|
101
|
+
</p>
|
102
|
+
<p># First-level heading</p>
|
103
|
+
<p>## Second-level heading</p>
|
104
|
+
<p>### Third-level heading</p>
|
105
|
+
<p>#### Fourth-level heading</p>
|
106
|
+
<p>
|
107
|
+
> This is a blockquote.<br/>
|
108
|
+
> Blockquote with hard wrap<br/>
|
109
|
+
><br/>
|
110
|
+
> This is the second paragraph in the blockquote.<br/>
|
111
|
+
><br/>
|
112
|
+
> ## This is an H2 in a blockquote
|
113
|
+
</p>
|
114
|
+
<p>[This is a link](http://www.google.com "Google")</p>
|
115
|
+
<p></p>
|
116
|
+
<p>--- Horizontal rules are created by 3 hyphens</p>
|
117
|
+
<p>If you need to actually render the following characters AND they are NOT rendering, place a backslash before the character like \*italics\* will actually render with the asterisks instead of italicizing the word.</p>
|
118
|
+
<p>\	backslash</p>
|
119
|
+
<p>*	asterisk</p>
|
120
|
+
<p>	_underscore</p>
|
121
|
+
<p>{}	curly braces</p>
|
122
|
+
<p>[]	square brackets</p>
|
123
|
+
<p>()	parentheses</p>
|
124
|
+
<p>#	hash mark</p>
|
125
|
+
<p>+	plus sign</p>
|
126
|
+
<p>-	minus sign (hyphen)</p>
|
127
|
+
<p>.	dot</p>
|
128
|
+
<p>!	exclamation mark</p>
|
44
129
|
vendor_proxy:
|
45
130
|
discount_code: Tracking Code
|
46
131
|
e9:
|
data/lib/e9_vendors/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: e9_vendors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.7
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Travis Cox
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-08-
|
13
|
+
date: 2011-08-29 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|