ecm_downloads2 5.0.1 → 5.0.2
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_helper.rb +4 -8
- data/app/views/ecm/downloads/downloads/_download.haml +1 -1
- data/config/locales/ecm.downloads.de.yml +3 -0
- data/config/locales/ecm.downloads.download.de.yml +1 -0
- data/config/locales/ecm.downloads.download.en.yml +1 -0
- data/config/locales/ecm.downloads.en.yml +3 -0
- data/db/migrate/20170505183226_remove_ecm_downloads_downloads_count.rb +2 -1
- data/lib/ecm/downloads/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08ab8c9c3c9d8744fe647eaec2c898a8c0ae1e32'
|
4
|
+
data.tar.gz: 7e755d9a352be6eccb5ac804bb1e384ff2f5ae29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ea697df4b710ece2428856fbda3fabd922687b2a945806e84f0314758deeb241d7b480f1915c199550f928bfbe3875e5aa0fe6cceda8736c298fb8bcbf36eb5
|
7
|
+
data.tar.gz: ffc46274a8de31d52ac9c71c95fb690d4f1b32c7b6aad4eb7dc1b9c30b9159562e246f0a2bcb91fa4fda0df38715d807692fc054c21e8f129d85949b1b5736f8
|
@@ -5,14 +5,10 @@ module Ecm::Downloads
|
|
5
5
|
if download.nil?
|
6
6
|
I18n.t('ecm.downloads.download.messages.not_found', name: download_name)
|
7
7
|
else
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
return o.html_safe
|
13
|
-
rescue => e
|
14
|
-
raise e
|
15
|
-
end
|
8
|
+
o = Ecm::Downloads::Configuration.prevent_textile_rendering_in_html ? '<notextile>' : ''
|
9
|
+
o << render(download)
|
10
|
+
o << '</notextile>' if Ecm::Downloads::Configuration.prevent_textile_rendering_in_html
|
11
|
+
return o.html_safe
|
16
12
|
end
|
17
13
|
end
|
18
14
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
= bootstrap_responsive_media_object do
|
2
2
|
%h4= download.name
|
3
3
|
%p= download.description
|
4
|
-
= bootstrap_button(to: polymorphic_url([:download, download], only_path: true), context: :primary) do
|
4
|
+
= bootstrap_button(to: ecm_downloads.polymorphic_url([:download, download], only_path: true), context: :primary) do
|
5
5
|
= t('.download')
|
6
6
|
= "(#{download.filesize})"
|
@@ -1,5 +1,6 @@
|
|
1
1
|
class RemoveEcmDownloadsDownloadsCount < ActiveRecord::Migration[4.2]
|
2
2
|
def change
|
3
|
-
remove_column :ecm_downloads_download_categories, :ecm_downloads_downloads_count
|
3
|
+
remove_column :ecm_downloads_download_categories, :ecm_downloads_downloads_count, :integer
|
4
|
+
end
|
4
5
|
end
|
5
6
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecm_downloads2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|