ecm_courses2_backend 0.1.2 → 0.1.3

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: 3b0bdf7d80e07d2dfdbba02e28c7c5e8c3642503
4
- data.tar.gz: 9c3a53b2703b02ade45b06b83b83853434c87a22
3
+ metadata.gz: 728d1f9fa3e3d0feb05dfaeec95e0ea033434748
4
+ data.tar.gz: 926bb1f5b073e9f77ffc0ce46e753bd17374fe20
5
5
  SHA512:
6
- metadata.gz: 87be015a14e328c02e84c8f96163f7045636c348082c97241621f0c442475cc1cce3ba454f0b2d8cd3c02ef018220592ce13461356f3015bee8a42a01678b9a1
7
- data.tar.gz: 390620e5a862c9dc686d34ef17aa5e1ddc296bc994e3e48b27e851abd8d55c6c65080064ab50fb13f64585fa6d7949e612ef75cc1b084ba2e97e9382113f3afe
6
+ metadata.gz: e931199b583604580f6e88d144a6c9fdb2a3594eef40a5c29ce21d8d5ec156dd88b95f25b235cbcd885a869ed9667b5816576e845e23e19524628e14d98b3d5c
7
+ data.tar.gz: 64cc8c7b4ebbd377a301a726d9e7f0539a626a10d68fe134df524f991ce263df056578bc1931c0087b3fb961b176835b2e91c09d15adfb5af6049ec7a2bd1cbb
@@ -2,16 +2,14 @@ module Ecm
2
2
  module Courses
3
3
  module Backend
4
4
  class CourseCategoriesController < Itsf::Backend::Resource::BaseController
5
+ include Controller::FriendlyIdConcern
6
+
5
7
  def self.resource_class
6
8
  Ecm::Courses::CourseCategory
7
9
  end
8
10
 
9
11
  private
10
12
 
11
- def load_resource
12
- load_scope.friendly.find(params[:id])
13
- end
14
-
15
13
  def permitted_params
16
14
  params.require(:course_category).permit(:parent_id, :locale, :name, :description)
17
15
  end
@@ -3,6 +3,7 @@ module Ecm
3
3
  module Backend
4
4
  class CoursesController < Itsf::Backend::Resource::BaseController
5
5
  include Controller::ActsAsListConcern
6
+ include Controller::FriendlyIdConcern
6
7
 
7
8
  def self.resource_class
8
9
  Ecm::Courses::Course
@@ -10,14 +11,6 @@ module Ecm
10
11
 
11
12
  private
12
13
 
13
- def load_scope
14
- resource_class.friendly
15
- end
16
-
17
- # def load_resource
18
- # load_scope.friendly.find(params[:id])
19
- # end
20
-
21
14
  def permitted_params
22
15
  params.require(:course).permit(:course_category_id, :locale, :name, :description)
23
16
  end
@@ -1,5 +1,5 @@
1
- = table.column :parent, as: :association
2
- = table.column :locale
3
- = table.column :name
4
- = table.column :description, class: 'truncate-chars truncate-chars-30'
1
+ = table.column :parent, as: :association, sortable: :parent_name
2
+ = table.column :locale, sortable: true
3
+ = table.column :name, sortable: true
4
+ = table.column :description, sortable: true, class: 'truncate-chars truncate-chars-30'
5
5
  = table.timestamps
@@ -1,5 +1,5 @@
1
- = table.column :course, as: :association
2
- = table.column :description, class: 'truncate-chars truncate-chars-30'
3
- = table.column :start_at
4
- = table.column :end_at
1
+ = table.column :course, as: :association, sortable: true
2
+ = table.column :description, sortable: true, class: 'truncate-chars truncate-chars-30'
3
+ = table.column :start_at, sortable: true
4
+ = table.column :end_at, sortable: true
5
5
  = table.timestamps
@@ -1,6 +1,6 @@
1
- = table.column :course_category, as: :association
2
- = table.column :locale
3
- = table.column :name
4
- = table.column :description, class: 'truncate-chars truncate-chars-30'
1
+ = table.column :course_category, as: :association, sortable: true
2
+ = table.column :locale, sortable: true
3
+ = table.column :name, sortable: true
4
+ = table.column :description, sortable: true, class: 'truncate-chars truncate-chars-30'
5
5
  = table.acts_as_list_actions scope: 'course_category_id'
6
6
  = table.timestamps
@@ -2,5 +2,4 @@ de:
2
2
  classes:
3
3
  ecm/courses/backend/engine: 'Kurse'
4
4
  routes:
5
- mount:
6
- ecm_courses_backend: '/backend/courses'
5
+ ecm-courses-backend-engine: 'kurse'
@@ -0,0 +1,5 @@
1
+ en:
2
+ classes:
3
+ ecm/courses/backend/engine: 'Courses'
4
+ routes:
5
+ ecm-courses-backend-engine: 'courses'
@@ -1,7 +1,7 @@
1
1
  module Ecm
2
2
  module Courses
3
3
  module Backend
4
- VERSION = '0.1.2'.freeze
4
+ VERSION = '0.1.3'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_courses2_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
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: 2017-03-09 00:00:00.000000000 Z
11
+ date: 2017-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -69,6 +69,7 @@ files:
69
69
  - app/views/layouts/ecm/courses/backend/application.html.erb
70
70
  - config/initializers/assets.rb
71
71
  - config/locales/de.yml
72
+ - config/locales/en.yml
72
73
  - config/rbac.yml
73
74
  - config/routes.rb
74
75
  - lib/ecm/courses/backend.rb
@@ -100,9 +101,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
101
  version: '0'
101
102
  requirements: []
102
103
  rubyforge_project:
103
- rubygems_version: 2.4.8
104
+ rubygems_version: 2.6.11
104
105
  signing_key:
105
106
  specification_version: 4
106
107
  summary: Ecm::Courses::Backend.
107
108
  test_files: []
108
- has_rdoc: