ecm_videos_backend 1.0.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/ecm/videos/backend/categories_controller.rb +2 -1
- data/app/controllers/ecm/videos/backend/videos_controller.rb +7 -2
- data/app/views/ecm/videos/backend/categories/_form.haml +1 -1
- data/app/views/ecm/videos/backend/categories/_table.haml +4 -4
- data/app/views/ecm/videos/backend/videos/_form.haml +1 -1
- data/app/views/ecm/videos/backend/videos/_table.haml +5 -5
- data/config/locales/de.yml +3 -1
- data/config/locales/en.yml +5 -0
- data/lib/ecm/videos/backend/version.rb +1 -1
- data/lib/ecm_videos_backend.rb +2 -0
- data/lib/generators/ecm/videos/backend/install/templates/initializer.rb +1 -1
- data/lib/generators/ecm/videos/backend/install/templates/routes.source +1 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45c78b88ca99482f75805225940a23c935d12b2a
|
4
|
+
data.tar.gz: 7fdfdfded7f11833c770f4479f7ce4f104c1f468
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
6
|
-
include
|
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':
|
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':
|
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
|
data/config/locales/de.yml
CHANGED
data/lib/ecm_videos_backend.rb
CHANGED
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:
|
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:
|
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.
|
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:
|