ecm_downloads2 2.0.3 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +1 -18
  3. data/app/controllers/ecm/downloads/download_categories_controller.rb +2 -2
  4. data/app/controllers/ecm/downloads/downloads_controller.rb +1 -1
  5. data/app/views/ecm/downloads/download_categories/_download_category.haml +5 -0
  6. data/app/views/ecm/downloads/download_categories/index.haml +9 -0
  7. data/app/views/ecm/downloads/download_categories/show.haml +11 -0
  8. data/app/views/ecm/downloads/downloads/_download.haml +6 -0
  9. data/app/views/ecm/downloads/downloads/index.haml +11 -0
  10. data/config/locales/ecm.downloads.de.yml +8 -2
  11. data/config/locales/ecm.downloads.en.yml +8 -2
  12. data/lib/ecm/downloads/configuration.rb +0 -8
  13. data/lib/ecm/downloads/version.rb +1 -1
  14. data/lib/generators/ecm/downloads/install/install_generator.rb +1 -1
  15. data/lib/generators/ecm/downloads/install/templates/initializer.rb +0 -12
  16. metadata +35 -16
  17. data/app/admin/ecm_downloads_download_categories.rb +0 -140
  18. data/app/admin/ecm_downloads_downloads.rb +0 -83
  19. data/app/views/ecm/downloads/download_categories/_download_category.html.erb +0 -20
  20. data/app/views/ecm/downloads/download_categories/_download_category_in_table.html.erb +0 -9
  21. data/app/views/ecm/downloads/download_categories/_table.html.erb +0 -7
  22. data/app/views/ecm/downloads/download_categories/index.html.erb +0 -7
  23. data/app/views/ecm/downloads/download_categories/show.html.erb +0 -9
  24. data/app/views/ecm/downloads/downloads/_download.html.erb +0 -11
  25. data/app/views/ecm/downloads/downloads/_download_in_table.html.erb +0 -10
  26. data/app/views/ecm/downloads/downloads/_table.html.erb +0 -7
  27. data/app/views/ecm/downloads/downloads/_table_in_download_category.html.erb +0 -12
  28. data/app/views/ecm/downloads/downloads/index.html.erb +0 -7
  29. data/app/views/ecm/downloads/downloads/show.html.erb +0 -7
  30. data/config/locales/active_admin.patch.de.yml +0 -29
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d47472f5565eceae05f35443c22e5245e4bfc66
4
- data.tar.gz: 442a6fe726406de758a83c964aefb79743e4c89b
3
+ metadata.gz: a011ee69e20f13fe57f0e51ca4cd34822c40c3b1
4
+ data.tar.gz: a87b07226aec17fa1c0df0a85fcf34ef8e33c499
5
5
  SHA512:
6
- metadata.gz: 294bb226fce68837ef93f3d8546014e9e839bbcde4f5ed87f640fa23b6bd2859caa4dec56d48b63aec1375e9b7ba1899209fd5bb1b70270674c0f414c44ac9d4
7
- data.tar.gz: 3f06f1450caba890f7dfdc2fc116407e5fd0ab7f4bf8b43cb45614d51f3939ce6ff5ad3c91c9d2d02e5e87b6d748655dea1a1231ca7ec9e222ecb34b901b4925
6
+ metadata.gz: 3057fd1be45b82fefda43033c065f90a8526476cf6f0adff4469fea959e699e1d1c8589804f602c1d7f00e2d0e48e61de04b330b7319c94335fc21f93fae55b6
7
+ data.tar.gz: 945db5099965448191c55258794af336a41883fe23b0b0004b4cec761ecd0bd5561bc79120254b4006a476d33f623c55eee45fc32e0ac59bd4f509358422efae
data/README.rdoc CHANGED
@@ -1,23 +1,6 @@
1
1
  = ECM Downloads 2
2
2
 
3
- This version supports rails 4.x and twitter bootstrap 3. For legacy support use ecm_downloads
4
-
5
- = Migrating from 1.x.x to 2.0.0
6
-
7
- Add active_admin-awesome_nested_set and active_admin-acts_as_list to your gemfile, if you are using activeadmin:
8
-
9
- # Gemfile
10
- gem 'active_admin-awesome_nested_set'
11
- gem 'active_admin-acts_as_list'
12
-
13
- = Prerequisites
14
-
15
- if you are using activeadmin as backend, ecm_cms2 comes with admin files to provide a backend. In that case, you'll need active_admin-awesome_nested_set and active_admin-acts_as_list. Add it to your gemfile:
16
-
17
- # Gemfile
18
- gem 'active_admin-awesome_nested_set'
19
- gem 'active_admin-acts_as_list'
20
-
3
+ This version supports rails >= 4.0 and twitter bootstrap 3. For legacy support use ecm_downloads
21
4
 
22
5
  = Installation
23
6
 
@@ -1,9 +1,9 @@
1
1
  class Ecm::Downloads::DownloadCategoriesController < Ecm::Downloads::Configuration.base_controller.constantize
2
2
  def index
3
- @download_categories = Ecm::Downloads::DownloadCategory.all.decorate
3
+ @collection = Ecm::Downloads::DownloadCategory.all.decorate
4
4
  end
5
5
 
6
6
  def show
7
- @download_category = Ecm::Downloads::DownloadCategory.friendly.find(params[:id])
7
+ @resource = Ecm::Downloads::DownloadCategory.friendly.find(params[:id])
8
8
  end
9
9
  end
@@ -6,7 +6,7 @@ class Ecm::Downloads::DownloadsController < Ecm::Downloads::Configuration.base_c
6
6
  end
7
7
 
8
8
  def index
9
- @downloads = Ecm::Downloads::Download.published.all.decorate
9
+ @collection = Ecm::Downloads::Download.published.all.decorate
10
10
  end
11
11
 
12
12
  def show
@@ -0,0 +1,5 @@
1
+ %h2= download_category.name
2
+
3
+ %p= download_category.description
4
+
5
+ = render download_category.ecm_downloads_downloads.decorate
@@ -0,0 +1,9 @@
1
+ - content_for :title, Ecm::Downloads::DownloadCategory.model_name.human(count: :other)
2
+ - content_for :meta_description, Ecm::Downloads::DownloadCategory.model_name.human(count: :other)
3
+
4
+ %h1= Ecm::Downloads::DownloadCategory.model_name.human(count: :other)
5
+
6
+ = render @collection
7
+
8
+ = bootstrap_button(to: root_path, context: :default) do
9
+ = t('.back')
@@ -0,0 +1,11 @@
1
+ - content_for :title, @resource.name
2
+ - content_for :meta_description, @resource.name
3
+
4
+ %h1= @resource.name
5
+
6
+ %p= @resource.description
7
+
8
+ = render @resource.ecm_downloads_downloads.decorate
9
+
10
+ = bootstrap_button(to: :back, context: :default) do
11
+ = t('.back')
@@ -0,0 +1,6 @@
1
+ = bootstrap_responsive_media_object do
2
+ %h4= download.name
3
+ %p= download.description
4
+ = bootstrap_button(to: polymorphic_url([:download, download], only_path: true), context: :primary) do
5
+ = t('.download')
6
+ = "(#{download.filesize})"
@@ -0,0 +1,11 @@
1
+ - content_for :title, Ecm::Downloads::Download.model_name.human(count: :other)
2
+ - content_for :meta_description, Ecm::Downloads::Download.model_name.human(count: :other)
3
+
4
+ %h1= Ecm::Downloads::Download.model_name.human(count: :other)
5
+
6
+ - @collection.group_by{|d| d.ecm_downloads_download_category}.each do |category, collection|
7
+ %h2= category.name
8
+ = render collection
9
+
10
+ = bootstrap_button(to: :back, context: :default) do
11
+ = t('.back')
@@ -1,13 +1,19 @@
1
1
  de:
2
2
  ecm:
3
3
  downloads:
4
- active_admin:
5
- menu: "Downloads"
6
4
  download:
7
5
  actions:
8
6
  start_download: "Jetzt herunterladen"
9
7
  messages:
10
8
  not_found: "Download \"%{name}\" nicht gefunden."
9
+ downloads:
10
+ download:
11
+ download: 'Herunterladen'
12
+ index:
13
+ back: 'Zurück'
14
+ download_categories:
15
+ index:
16
+ back: Zurück
11
17
  download_category:
12
18
  actions:
13
19
  back_to_index: "Zurück zur Übersicht"
@@ -1,13 +1,19 @@
1
1
  en:
2
2
  ecm:
3
3
  downloads:
4
- active_admin:
5
- menu: "Downloads"
6
4
  download:
7
5
  actions:
8
6
  start_download: "Download now"
9
7
  messages:
10
8
  not_found: "Download \"%{name}\" not found."
9
+ downloads:
10
+ download:
11
+ download: 'Download'
12
+ index:
13
+ back: 'Zurück'
14
+ download_categories:
15
+ index:
16
+ back: Back
11
17
  download_category:
12
18
  actions:
13
19
  back_to_index: "Back to the index"
@@ -17,14 +17,6 @@ module Ecm
17
17
  'ApplicationController'
18
18
  end
19
19
 
20
- mattr_accessor :downloads_table_classes do
21
- 'table table-striped table-hover'
22
- end
23
-
24
- mattr_accessor :download_categories_table_classes do
25
- 'table table-striped table-hover'
26
- end
27
-
28
20
  mattr_accessor :prevent_textile_rendering_in_html do
29
21
  true
30
22
  end
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module Downloads
3
- VERSION = '2.0.3'
3
+ VERSION = '3.0.0'
4
4
  end
5
5
  end
@@ -2,7 +2,7 @@ module Ecm
2
2
  module Downloads
3
3
  module Generators
4
4
  class InstallGenerator < Rails::Generators::Base
5
- desc 'Generates the intializer'
5
+ desc 'Generates the initializer'
6
6
 
7
7
  source_root File.expand_path('../templates', __FILE__)
8
8
 
@@ -12,18 +12,6 @@ Ecm::Downloads.configure do |config|
12
12
  #
13
13
  config.base_controller = 'ApplicationController'
14
14
 
15
- # Set the css classes for the download categories table
16
- #
17
- # Default: config.download_categories_table_classes = 'table table-striped table-hover'
18
- #
19
- config.download_categories_table_classes = 'table table-striped table-hover'
20
-
21
- # Set the css classes for the downloads table
22
- #
23
- # Default: config.downloads_table_classes = 'table table-striped table-hover'
24
- #
25
- config.downloads_table_classes = 'table table-striped table-hover'
26
-
27
15
  # Adds <notextile> tags around the to fix html output.
28
16
  #
29
17
  # Default: config.prevent_textile_rendering_in_html = true
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: 2.0.3
4
+ version: 3.0.0
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: 2016-04-02 00:00:00.000000000 Z
11
+ date: 2017-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -122,6 +122,34 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: twitter-bootstrap-components-rails
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: haml-rails
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
125
153
  - !ruby/object:Gem::Dependency
126
154
  name: sqlite3
127
155
  requirement: !ruby/object:Gem::Requirement
@@ -440,8 +468,6 @@ files:
440
468
  - MIT-LICENSE
441
469
  - README.rdoc
442
470
  - Rakefile
443
- - app/admin/ecm_downloads_download_categories.rb
444
- - app/admin/ecm_downloads_downloads.rb
445
471
  - app/assets/images/ecm_downloads/download_categories/last_node.png
446
472
  - app/assets/images/ecm_downloads/download_categories/node.png
447
473
  - app/assets/images/ecm_downloads/download_categories/vertical_line.png
@@ -455,19 +481,12 @@ files:
455
481
  - app/helpers/ecm/downloads/download_helper.rb
456
482
  - app/models/ecm/downloads/download.rb
457
483
  - app/models/ecm/downloads/download_category.rb
458
- - app/views/ecm/downloads/download_categories/_download_category.html.erb
459
- - app/views/ecm/downloads/download_categories/_download_category_in_table.html.erb
460
- - app/views/ecm/downloads/download_categories/_table.html.erb
461
- - app/views/ecm/downloads/download_categories/index.html.erb
462
- - app/views/ecm/downloads/download_categories/show.html.erb
463
- - app/views/ecm/downloads/downloads/_download.html.erb
464
- - app/views/ecm/downloads/downloads/_download_in_table.html.erb
465
- - app/views/ecm/downloads/downloads/_table.html.erb
466
- - app/views/ecm/downloads/downloads/_table_in_download_category.html.erb
467
- - app/views/ecm/downloads/downloads/index.html.erb
468
- - app/views/ecm/downloads/downloads/show.html.erb
484
+ - app/views/ecm/downloads/download_categories/_download_category.haml
485
+ - app/views/ecm/downloads/download_categories/index.haml
486
+ - app/views/ecm/downloads/download_categories/show.haml
487
+ - app/views/ecm/downloads/downloads/_download.haml
488
+ - app/views/ecm/downloads/downloads/index.haml
469
489
  - config/initializers/assets.rb
470
- - config/locales/active_admin.patch.de.yml
471
490
  - config/locales/ecm.downloads.de.yml
472
491
  - config/locales/ecm.downloads.download.de.yml
473
492
  - config/locales/ecm.downloads.download.en.yml
@@ -1,140 +0,0 @@
1
- if Gem::Specification.find_all_by_name('activeadmin').any?
2
- include ActiveAdmin::ActsAsList::Helper
3
- include ActiveAdmin::AwesomeNestedSet::Helper
4
-
5
- ActiveAdmin.register Ecm::Downloads::DownloadCategory do
6
- decorate_with Ecm::Downloads::DownloadCategoryDecorator
7
-
8
- # menu entry settings
9
- menu parent: I18n.t('ecm.downloads.active_admin.menu')
10
-
11
- permit_params :description,
12
- :ecm_downloads_downloads_count,
13
- :locale,
14
- :name,
15
- :parent_id,
16
- :position,
17
- :slug,
18
- ecm_downloads_downloads_attributes: [
19
- :asset,
20
- :description,
21
- :ecm_downloads_download_category_id,
22
- :name,
23
- :published
24
- ]
25
-
26
- # sorting
27
- config.sort_order = 'lft_asc'
28
-
29
- # awesome nested set
30
- sortable_tree_member_actions
31
-
32
- # scopes
33
- scope :all
34
- scope :roots
35
- I18n.available_locales.each do |locale|
36
- send(:scope, locale.to_s) do |klass|
37
- klass.where(locale: locale)
38
- # klass.where(klass.arel_table[:locale].eq(locale).or(klass.arel_table[:locale].eq(nil)))
39
- end
40
- end
41
-
42
- form do |f|
43
- f.inputs do
44
- f.semantic_errors *f.object.errors.keys
45
- end
46
-
47
- f.inputs do
48
- f.input :parent, as: :select,
49
- collection: nested_set_options(Ecm::Downloads::DownloadCategory, f.object) { |dc| "#{'-' * dc.depth} #{dc.name}" }
50
- f.input :locale, as: :select,
51
- collection: I18n.available_locales.map(&:to_s)
52
- f.input :name
53
- f.input :description
54
- end
55
-
56
- f.inputs do
57
- f.has_many :ecm_downloads_downloads do |d|
58
- if d.object.persisted?
59
- d.input :_destroy, as: :boolean, label: I18n.t('active_admin.delete')
60
- end
61
- d.input :asset, as: :file
62
- d.input :name
63
- d.input :published, as: :boolean
64
- d.input :description
65
- end
66
- end
67
-
68
- f.actions
69
- end
70
-
71
- index do
72
- selectable_column
73
- sortable_tree_columns
74
- column :locale
75
- column :name do |dc|
76
- span(style: "margin-left: #{25 * dc.level}px") { dc.name }
77
- end
78
- column(:description) do |dc|
79
- truncate(dc.description, length: 100, separator: ' ')
80
- end
81
- column :ecm_downloads_downloads_count
82
- actions
83
- end
84
-
85
- show title: :to_s do
86
- attributes_table do
87
- row :parent
88
- row :locale
89
- row :name
90
- row :ecm_downloads_downloads_count
91
- row :created_at
92
- row :updated_at
93
- end
94
-
95
- panel Ecm::Downloads::DownloadCategory.human_attribute_name(:description) do
96
- div do
97
- ecm_downloads_download_category.description
98
- end
99
- end
100
-
101
- panel Ecm::Downloads::DownloadCategory.human_attribute_name(:display_code) do
102
- div do
103
- ecm_downloads_download_category.display_code
104
- end
105
- end
106
-
107
- panel Ecm::Downloads::DownloadCategory.human_attribute_name(:link) do
108
- div do
109
- ecm_downloads_download_category_path(ecm_downloads_download_category)
110
- end
111
- end
112
-
113
- panel Ecm::Downloads::DownloadCategory.human_attribute_name(:children) do
114
- table_for ecm_downloads_download_category.children, i18n: Ecm::Downloads::DownloadCategory do
115
- sortable_tree_columns
116
- column(:index_name) do |ecm_downloads_download_category|
117
- link_to ecm_downloads_download_category, [:admin, ecm_downloads_download_category]
118
- end
119
- column :description
120
- column :ecm_downloads_downloads_count
121
- end
122
- end
123
-
124
- panel Ecm::Downloads::DownloadCategory.human_attribute_name(:ecm_downloads_downloads) do
125
- table_for ecm_downloads_download_category.ecm_downloads_downloads, i18n: Ecm::Downloads::Download do
126
- sortable_columns
127
- column(:name) do |ecm_downloads_download|
128
- link_to ecm_downloads_download, [:admin, ecm_downloads_download]
129
- end
130
- acts_as_published_columns
131
- column :asset_file_name
132
- column :asset_file_size, sortable: :asset_file_size do |download|
133
- number_to_human_size(download.asset_file_size)
134
- end
135
- column :created_at
136
- end
137
- end
138
- end
139
- end
140
- end
@@ -1,83 +0,0 @@
1
- include ActiveAdmin::ActsAsList::Helper if Gem::Specification.find_all_by_name('activeadmin').any?
2
- include ActsAsPublished::ActiveAdminHelper if Gem::Specification.find_all_by_name('activeadmin').any?
3
-
4
- ActiveAdmin.register Ecm::Downloads::Download do
5
- decorate_with Ecm::Downloads::DownloadDecorator
6
-
7
- # acts as list
8
- sortable_member_actions
9
-
10
- # acts as published
11
- acts_as_published_actions
12
-
13
- # config
14
- menu parent: I18n.t('ecm.downloads.active_admin.menu')
15
-
16
- permit_params :asset,
17
- :description,
18
- :ecm_downloads_download_category_id,
19
- :name
20
-
21
- # scopes
22
- scope :all
23
- scope :published
24
- scope :unpublished
25
-
26
- form html: { enctype: 'multipart/form-data' } do |f|
27
- f.inputs do
28
- f.input :ecm_downloads_download_category, as: :select,
29
- collection: nested_set_options(Ecm::Downloads::DownloadCategory) { |dc| "#{'-' * dc.level} #{dc.name}" }
30
- f.input :asset, as: :file
31
- f.input :name
32
- f.input :published, as: :boolean
33
- f.input :description
34
- end
35
-
36
- f.actions
37
- end
38
-
39
- index do
40
- selectable_column
41
- column :ecm_downloads_download_category
42
- column :name
43
- acts_as_published_columns
44
- column :asset_file_name
45
- column :asset_file_size, sortable: :asset_file_size do |download|
46
- number_to_human_size(download.asset_file_size)
47
- end
48
- column :created_at
49
- actions
50
- end
51
-
52
- show title: :to_s do
53
- attributes_table do
54
- row :ecm_downloads_download_category
55
- row :name
56
- row :published_at
57
- row :asset_file_name
58
- row :filesize
59
- row :asset_content_type
60
- row :asset_fingerprint
61
- row :created_at
62
- row :updated_at
63
- end
64
-
65
- panel Ecm::Downloads::Download.human_attribute_name(:description) do
66
- div do
67
- ecm_downloads_download.description
68
- end
69
- end
70
-
71
- panel Ecm::Downloads::Download.human_attribute_name(:display_code) do
72
- div do
73
- ecm_downloads_download.display_code
74
- end
75
- end
76
-
77
- panel Ecm::Downloads::Download.human_attribute_name(:link) do
78
- div do
79
- ecm_downloads_download_path(ecm_downloads_download)
80
- end
81
- end
82
- end
83
- end if Gem::Specification.find_all_by_name('activeadmin').any?
@@ -1,20 +0,0 @@
1
- <div class="download_category category" id="download_category-<%= download_category.id %>">
2
- <h1 class="downloads_category-name"><%= download_category.name %></h1>
3
-
4
- <% unless download_category.description.blank? %>
5
- <div class="download_categories-description">
6
- <p><%= download_category.description %></p>
7
- </div>
8
- <% end %>
9
-
10
- <div class="download_category-downloads item_list">
11
-
12
- <% if download_category.ecm_downloads_downloads.published.count == 0 %>
13
- <p><%= t('ecm.downloads.download_category.messages.no_downloads_available') %></p>
14
- <% else %>
15
- <%= render partial: 'ecm/downloads/downloads/table_in_download_category', locals: { downloads: download_category.ecm_downloads_downloads.published } %>
16
- <% end %>
17
- </div>
18
-
19
- <%= render partial: 'ecm/downloads/download_categories/table', locals: { download_categories: Ecm::Downloads::DownloadCategoryDecorator.decorate_collection(download_category.descendants) } %>
20
- </div>
@@ -1,9 +0,0 @@
1
- <tr class="<%= download_category.class.name.underscore.gsub('/', ' ') %>" id="<%= "#{download_category.class.name.underscore.gsub('/', '-')}-#{download_category.to_param}" %>">
2
- <td>
3
- <%= link_to(download_category.tree_name, download_category, class: "left-padding-#{download_category.depth * 3}", title: download_category.description) %>
4
- <%= download_category.locale_label %>
5
- </td>
6
- <td class="text-right">
7
- <%= download_category.ecm_downloads_downloads_count_label %>
8
- </td>
9
- </tr>
@@ -1,7 +0,0 @@
1
- <div class="table-responsive">
2
- <table class="<%= Ecm::Downloads::Configuration.download_categories_table_classes %>">
3
- <tbody>
4
- <%= render partial: 'ecm/downloads/download_categories/download_category_in_table', collection: download_categories, as: :download_category %>
5
- </tbody>
6
- </table>
7
- </div>
@@ -1,7 +0,0 @@
1
- <h1><%= Ecm::Downloads::DownloadCategory.model_name.human(:count => :other) %></h1>
2
-
3
- <%= render partial: 'table', locals: { download_categories: @download_categories } %>
4
-
5
- <div class="well page-actions">
6
- <%= link_to(t('ecm.downloads.views.actions.back'), root_path, class: 'btn btn-default') %>
7
- </div>
@@ -1,9 +0,0 @@
1
- <%= render @download_category %>
2
-
3
- <div class="well page-actions">
4
- <% if @download_category.root? %>
5
- <%= link_to(t('ecm.downloads.download_category.actions.back_to_index'), ecm_downloads_download_categories_path, class: 'btn btn-default') if respond_to?(:ecm_downloads_download_categories_path) %>
6
- <% else %>
7
- <%= link_to(t('ecm.downloads.views.actions.back'), @download_category.parent, class: 'btn btn-default') %>
8
- <% end %>
9
- </div>
@@ -1,11 +0,0 @@
1
- <h3><%= download.human %></h3>
2
-
3
- <div class="description bottom-margin-1">
4
- <%= download.description %>
5
- </div>
6
-
7
- <div class="item-actions well">
8
- <%= link_to([:download, download], { :class => 'btn btn-primary' }) do %>
9
- <span class="glyphicon glyphicon-save" aria-hidden="true"></span> <%= t('ecm.downloads.download.actions.start_download') %> (<%= download.filesize %>)
10
- <% end %>
11
- </div>
@@ -1,10 +0,0 @@
1
- <tr class="<%= download.class.name.underscore.gsub('/', ' ') %>" id="<%= "#{download.class.name.underscore.gsub('/', '-')}-#{download.to_param}" %>">
2
- <td title="<%= download.description %>"><%= link_to download.name, download %></td>
3
- <td><%= link_to download.ecm_downloads_download_category.human, download.ecm_downloads_download_category %></td>
4
- <td><%= number_to_human_size(download.asset_file_size) %></td>
5
- <td>
6
- <%= link_to([:download, download], { :class => 'btn btn-primary btn-xs pull-right' }) do %>
7
- <span class="glyphicon glyphicon-save" aria-hidden="true"></span> <%= t('ecm.downloads.download.actions.start_download') %>
8
- <% end %>
9
- </td>
10
- </tr>
@@ -1,7 +0,0 @@
1
- <div class="table-responsive">
2
- <table class="<%= Ecm::Downloads::Configuration.downloads_table_classes %>">
3
- <tbody>
4
- <%= render partial: 'ecm/downloads/downloads/download_in_table', collection: downloads, as: :download %>
5
- </tbody>
6
- </table>
7
- </div>
@@ -1,12 +0,0 @@
1
- <div class="panel panel-primary">
2
- <div class="panel-heading">
3
- <h3 class="panel-title"><%= Ecm::Downloads::DownloadCategory.human_attribute_name(:ecm_downloads_downloads) %></h3>
4
- </div>
5
- <div class="table-responsive">
6
- <table class="<%= Ecm::Downloads::Configuration.downloads_table_classes %>">
7
- <tbody>
8
- <%= render partial: 'ecm/downloads/downloads/download_in_table', collection: downloads, as: :download %>
9
- </tbody>
10
- </table>
11
- </div>
12
- </div>
@@ -1,7 +0,0 @@
1
- <h1><%= Ecm::Downloads::Download.model_name.human(:count => :other).humanize %></h1>
2
-
3
- <%= render partial: 'table', locals: { downloads: @downloads } %>
4
-
5
- <div class="well page-actions">
6
- <%= link_to(t('ecm.downloads.views.actions.back'), root_path, class: 'btn btn-default') %>
7
- </div>
@@ -1,7 +0,0 @@
1
- <h1>Downloads</h1>
2
-
3
- <%= render @download %>
4
-
5
- <div class="well page-actions">
6
- <%= link_to @download.ecm_downloads_download_category, @download.ecm_downloads_download_category, class: 'btn btn-default' %>
7
- </div>
@@ -1,29 +0,0 @@
1
- de:
2
- activerecord:
3
- attributes:
4
- admin_user:
5
- id: ID
6
- email: E-Mail
7
- encrypted_Password: Verschlüsseltes Passwort
8
- reset_password_token: Passwort Reset Token
9
- reset_password_sent_at: Passwort Reset Anweisungen gesendet am
10
- remember_created_at: Passwort merken seit
11
- sign_in_count: Anzahl Logins
12
- current_sign_in_at: Aktuell angemeldet seit
13
- last_sign_in_at: Letzter Login am
14
- current_sign_in_ip: Aktuelle IP-Adresse
15
- last_sign_in_ip: Letzte IP-Adresse
16
- created_at: Erstellt am
17
- updated_at: Aktualisiert am
18
- models:
19
- admin_user:
20
- one: Administrator
21
- other: Administratoren
22
- devise:
23
- failure:
24
- admin_user:
25
- invalid: Benutzername oder Kennwort nicht korrekt.
26
- unauthenticated: Bitte melden Sie sich als Administrator an.
27
- sessions:
28
- admin_user:
29
- signed_in: Erfolgreich als Administrator angemeldet.