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.
@@ -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
- 'vendor_discount_code' => model.discount_code,
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, :header => 'Variable 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, :header => 'Variable Help')
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, :header => 'Variable Help')
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 usable in short and long descriptions:</h3>
16
- <ul>
17
- <li>&#123;&#123;member_name&#125;&#125;</li>
18
- <li>&#123;&#123;member_nickname&#125;&#125;</li>
19
- <li>&#123;&#123;vendor_discount_code&#125;&#125;</li>
20
- <li>&#123;&#123;vendor_discount_percentage&#125;&#125;</li>
21
- <li>&#123;&#123;vendor_landing_page&#125;&#125;</li>
22
- <li>&#123;&#123;vendor_name&#125;&#125;</li>
23
- <li>&#123;&#123;vendor_nickname&#125;&#125;</li>
24
- <li>&#123;&#123;vendor_sales_email&#125;&#125;</li>
25
- <li>&#123;&#123;vendor_sales_full_name&#125;&#125;</li>
26
- <li>&#123;&#123;vendor_sales_phone&#125;&#125;</li>
27
- <li>&#123;&#123;vendor_sales_title&#125;&#125;</li>
28
- </ul>
15
+ <h3>Variables:</h3>
16
+ <p>You can insert the following to render variable data in the field</p>
17
+ <p>
18
+ &#123;&#123;member_name&#125;&#125;<br/>
19
+ &#123;&#123;vendor_tracking_code&#125;&#125;<br/>
20
+ &#123;&#123;vendor_name&#125;&#125;<br/>
21
+ &#123;&#123;vendor_nickname&#125;&#125;<br/>
22
+ &#123;&#123;vendor_landing_page&#125;&#125;<br/>
23
+ &#123;&#123;vendor_sales_email&#125;&#125;<br/>
24
+ &#123;&#123;vendor_sales_full_name&#125;&#125;<br/>
25
+ &#123;&#123;vendor_sales_phone&#125;&#125;<br/>
26
+ &#123;&#123;vendor_sales_title&#125;&#125;<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
+ &nbsp;&nbsp;&nbsp;&nbsp;* 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>![Image Alt Text](image url "Image Title")</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>&#92;&#09;backslash</p>
62
+ <p>*&#09;asterisk</p>
63
+ <p>&#09;_underscore</p>
64
+ <p>{}&#09;curly braces</p>
65
+ <p>[]&#09;square brackets</p>
66
+ <p>()&#09;parentheses</p>
67
+ <p>#&#09;hash mark</p>
68
+ <p>+&#09;plus sign</p>
69
+ <p>-&#09;minus sign (hyphen)</p>
70
+ <p>.&#09;dot</p>
71
+ <p>!&#09;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 usable in all fields:</h3>
40
- <ul>
41
- <li>&#123;&#123;member_name&#125;&#125;</li>
42
- <li>&#123;&#123;member_nickname&#125;&#125;</li>
43
- </ul>
82
+ <h3>Variables:</h3>
83
+ <p>You can insert the following to render variable data in the field</p>
84
+ <p>&#123;&#123;member_name&#125;&#125;</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
+ &nbsp;&nbsp;&nbsp;&nbsp;* 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>![Image Alt Text](image url "Image Title")</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>&#92;&#09;backslash</p>
119
+ <p>*&#09;asterisk</p>
120
+ <p>&#09;_underscore</p>
121
+ <p>{}&#09;curly braces</p>
122
+ <p>[]&#09;square brackets</p>
123
+ <p>()&#09;parentheses</p>
124
+ <p>#&#09;hash mark</p>
125
+ <p>+&#09;plus sign</p>
126
+ <p>-&#09;minus sign (hyphen)</p>
127
+ <p>.&#09;dot</p>
128
+ <p>!&#09;exclamation mark</p>
44
129
  vendor_proxy:
45
130
  discount_code: Tracking Code
46
131
  e9:
@@ -1,3 +1,3 @@
1
1
  module E9Vendors
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
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.6
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-26 00:00:00 -04:00
13
+ date: 2011-08-29 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies: []
16
16