ecm_videos_backend 1.0.1 → 2.0.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 083591f4fa4eccd23a7702cdf610ea225a1b46fd
4
- data.tar.gz: 1602f72254bfed8e2ffaf8916a761cc2a70e3f8e
3
+ metadata.gz: 45c78b88ca99482f75805225940a23c935d12b2a
4
+ data.tar.gz: 7fdfdfded7f11833c770f4479f7ce4f104c1f468
5
5
  SHA512:
6
- metadata.gz: 25a977b9dda43625f4737e17de86c70576d201ed6361ecac303363ea8d28b98304977a1612d8a9d4b1c00ba6aed7524860b6362b85111b0bbc5acba264434fda
7
- data.tar.gz: 7cd7882ca68e5d2069768c4564099d4973cbd0d8237b33edce5ed1c83c77846d098b923040b18646e1adcfccdebb26e7801b910ad6d4367b704386dcdd0e19bc
6
+ metadata.gz: 51786ac77feb7079c4c0c94fc6b42b8f00a9192882906aa548c2e1452ca4f0c52000663c64c2ae04b7648a2fa4bd388454a49efd815df3a2c051f0676da1f2e1
7
+ data.tar.gz: 9cdea742d333760b488b04478c5a37850bb2ffb46e15b0d40579fc7d4a07ca094ea0b5e2509e3f458c5545d2a5fda128539d48e5a84b4102e4f68dcd37ffd083
@@ -2,7 +2,8 @@ module Ecm
2
2
  module Videos
3
3
  module Backend
4
4
  class CategoriesController < Itsf::Backend::Resource::BaseController
5
- include Controller::ActsAsPublishedConcern
5
+ include ResourcesController::Sorting
6
+ include ResourcesController::ActsAsPublishedConcern
6
7
 
7
8
  def self.resource_class
8
9
  Ecm::Videos::Category
@@ -2,8 +2,9 @@ module Ecm
2
2
  module Videos
3
3
  module Backend
4
4
  class VideosController < Itsf::Backend::Resource::BaseController
5
- include Controller::ActsAsListConcern
6
- include Controller::ActsAsPublishedConcern
5
+ include ResourcesController::Sorting
6
+ include ResourcesController::ActsAsListConcern
7
+ include ResourcesController::ActsAsPublishedConcern
7
8
 
8
9
  def self.resource_class
9
10
  Ecm::Videos::Video
@@ -11,6 +12,10 @@ module Ecm
11
12
 
12
13
  private
13
14
 
15
+ def load_collection_scope
16
+ super.includes(:category)
17
+ end
18
+
14
19
  def permitted_params
15
20
  params.require(:video).permit(*%w(category_id clip description name markup_language published))
16
21
  end
@@ -4,7 +4,7 @@
4
4
 
5
5
  .well
6
6
  = form.input :markup_language, collection: Ecm::Videos::Configuration.markup_languages, include_blank: false
7
- = form.input :description, input_html: { 'data-add-editor': true, 'data-editor-syntax': form.object.markup_language }
7
+ = form.input :description, input_html: { 'data-add-editor': Itsf::Backend.features?(:'ace-rails-ap'), 'data-editor-syntax': form.object.markup_language }
8
8
 
9
9
  .well
10
10
  = form.input :published, as: :boolean
@@ -1,7 +1,7 @@
1
1
  = table.column :preview_image, as: :thumbnail, style: :default_thumb, link_to_url: Proc.new { |resource| url_for(resource) }
2
- = table.column :locale
3
- = table.column :name
2
+ = table.column :locale, sort: true
3
+ = table.column :name, sort: true
4
4
  = table.column :videos_count
5
- = table.column :description
6
- = table.timestamps
5
+ = table.column :description, sort: true
6
+ = table.timestamps sort: true
7
7
  = table.acts_as_published_actions
@@ -7,7 +7,7 @@
7
7
 
8
8
  .well
9
9
  = form.input :markup_language, collection: Ecm::Videos::Configuration.markup_languages, include_blank: false
10
- = form.input :description, input_html: { 'data-add-editor': true, 'data-editor-syntax': form.object.markup_language }
10
+ = form.input :description, input_html: { 'data-add-editor': Itsf::Backend.features?(:'ace-rails-ap'), 'data-editor-syntax': form.object.markup_language }
11
11
 
12
12
  .well
13
13
  = form.input :published, as: :boolean
@@ -1,7 +1,7 @@
1
- = table.column :preview_image, as: :thumbnail, style: :default_thumb, link_to_url: Proc.new { |resource| url_for(resource) }
2
- = table.association :category, label_method: :name
3
- = table.column :name
4
- = table.column :description
5
- = table.timestamps
6
1
  = table.acts_as_list_actions
2
+ = table.column :preview_image, as: :thumbnail, style: :default_thumb, link_to_url: Proc.new { |resource| url_for(resource) }
3
+ = table.association :category, sort: { column_name: 'ecm_videos_categories.name' }, label_method: :name
4
+ = table.column :name, sort: true
5
+ = table.column :description, sort: true
6
+ = table.timestamps(sort: true)
7
7
  = table.acts_as_published_actions
@@ -1,3 +1,5 @@
1
1
  de:
2
2
  classes:
3
- ecm/videos/backend/engine: Videos
3
+ ecm/videos/backend/engine: Videos
4
+ routes:
5
+ ecm-videos-backend-engine: 'videos'
@@ -0,0 +1,5 @@
1
+ en:
2
+ classes:
3
+ ecm/videos/backend/engine: Videos
4
+ routes:
5
+ ecm-videos-backend-engine: 'videos'
@@ -1,7 +1,7 @@
1
1
  module Ecm
2
2
  module Videos
3
3
  module Backend
4
- VERSION = "1.0.1".freeze
4
+ VERSION = "2.0.0".freeze
5
5
  end
6
6
  end
7
7
  end
@@ -1,2 +1,4 @@
1
+ require "ecm_core"
2
+
1
3
  require "ecm/videos/backend"
2
4
  require "ecm/videos/backend/engine"
@@ -1,4 +1,4 @@
1
- Ecm::UserArea::Backend.configure do |config|
1
+ Ecm::Videos::Backend.configure do |config|
2
2
  # Set the resources, that will be shown in the backend menu.
3
3
  #
4
4
  # Default: config.registered_controllers = -> {[
@@ -1,4 +1,4 @@
1
1
 
2
2
  localized do
3
- mount Ecm::Videos::Backend::Engine => '/backend/ecm/videos'
3
+ mount Ecm::Videos::Backend::Engine, at: '/backend/ecm-videos-backend-engine'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_videos_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 2.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-02-20 00:00:00.000000000 Z
11
+ date: 2018-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: ecm_core
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  description: Ecm::Videos::Backend Module.
28
42
  email:
29
43
  - roberto@vasquez-angel.de
@@ -58,6 +72,7 @@ files:
58
72
  - app/views/layouts/ecm/videos/backend/application.html.erb
59
73
  - config/initializers/assets.rb
60
74
  - config/locales/de.yml
75
+ - config/locales/en.yml
61
76
  - config/routes.rb
62
77
  - lib/ecm/videos/backend.rb
63
78
  - lib/ecm/videos/backend/configuration.rb
@@ -88,9 +103,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
103
  version: '0'
89
104
  requirements: []
90
105
  rubyforge_project:
91
- rubygems_version: 2.4.8
106
+ rubygems_version: 2.6.11
92
107
  signing_key:
93
108
  specification_version: 4
94
109
  summary: Ecm::Videos::Backend.
95
110
  test_files: []
96
- has_rdoc: