ecm_downloads2 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/ecm/downloads/download_category_helper.rb +2 -2
- data/app/helpers/ecm/downloads/download_helper.rb +2 -2
- data/lib/ecm/downloads/configuration.rb +4 -0
- data/lib/ecm/downloads/version.rb +1 -1
- data/lib/generators/ecm/downloads/install/templates/ecm_downloads.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc09ff1371c4f85e2c45f8c46fb8b7f8e5a2c56c
|
4
|
+
data.tar.gz: 3ec23c0045ba559083c5b59614398279b992f0b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11057c4fe276cdc654fb14f6628d6f785fe40fc8c915299085a7d2a88f7968b72f216b22f0ca4c227212229fc2879cb26bc4e1fc0248997e310336339b384268
|
7
|
+
data.tar.gz: c2f3a59c4c3846dc5a3a322fdd4ad453d1e801c4997011748a77a7912a8e35b303881fd5d458435ad9331412a7c4a161da32dc4a5a54f36bfbe69001ac8a8a94
|
@@ -6,9 +6,9 @@ module Ecm::Downloads
|
|
6
6
|
I18n.t('ecm.downloads.download_category.messages.not_found', :name => download_category_name)
|
7
7
|
else
|
8
8
|
begin
|
9
|
-
o = '<notextile>'
|
9
|
+
o = Ecm::Downloads::Configuration.prevent_textile_rendering_in_html ? '<notextile>' : ''
|
10
10
|
o << render(download_category)
|
11
|
-
o << '</notextile>'
|
11
|
+
o << '</notextile>' if Ecm::Downloads::Configuration.prevent_textile_rendering_in_html
|
12
12
|
return o.html_safe
|
13
13
|
rescue => e
|
14
14
|
raise e
|
@@ -6,9 +6,9 @@ module Ecm::Downloads
|
|
6
6
|
I18n.t('ecm.downloads.download.messages.not_found', :name => download_name)
|
7
7
|
else
|
8
8
|
begin
|
9
|
-
o = '<notextile>'
|
9
|
+
o = Ecm::Downloads::Configuration.prevent_textile_rendering_in_html ? '<notextile>' : ''
|
10
10
|
o << render(download)
|
11
|
-
o << '</notextile>'
|
11
|
+
o << '</notextile>' if Ecm::Downloads::Configuration.prevent_textile_rendering_in_html
|
12
12
|
return o.html_safe
|
13
13
|
rescue => e
|
14
14
|
raise e
|
@@ -23,4 +23,10 @@ Ecm::Downloads.configure do |config|
|
|
23
23
|
# Default: config.downloads_table_classes = 'table table-striped table-hover'
|
24
24
|
#
|
25
25
|
config.downloads_table_classes = 'table table-striped table-hover'
|
26
|
+
|
27
|
+
# Adds <notextile> tags around the to fix html output.
|
28
|
+
#
|
29
|
+
# Default: config.prevent_textile_rendering_in_html = true
|
30
|
+
#
|
31
|
+
config.prevent_textile_rendering_in_html = true
|
26
32
|
end
|