ecm_courses2 1.1.2 → 1.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 23e37aad68451d4f7eea065d36f6a082b299bbde
|
|
4
|
+
data.tar.gz: d1a50b0bb9a911c99610c80d449e85e1f7595d08
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 94158eef61f8db31def1767dc56a0712b63e78dc7b1cf3fffd29dd7fbf57023fc6b83c7beaec446817a93fad322b53501544e7cfed27ef8f1209f94e46a6cfa7
|
|
7
|
+
data.tar.gz: fc94c93f984b96396ac7e2735e5f44326e5556d062860aab68d2b6f604bed3c032723c30f1080bcd32d56f2db5052201c1335156b2a9d162ed022df333f5b31c
|
|
@@ -4,26 +4,25 @@
|
|
|
4
4
|
- else
|
|
5
5
|
%h2.courses_category-name= course_category.name
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
.course-calendar.bottom-margin-2
|
|
9
|
-
= month_calendar_pagination(date)
|
|
10
|
-
= month_calendar date, course_dates, display_method: :course, start_day: :monday
|
|
11
|
-
.bottom-margin-4
|
|
12
|
-
= link_to(url_for(format: :ics, nocache: true), class: 'btn btn-default') do
|
|
13
|
-
%span.glyphicon.glyphicon-calendar
|
|
14
|
-
= url_for(format: :ics)
|
|
15
|
-
|
|
16
|
-
.course_categories-tree
|
|
7
|
+
.course_categories-tree.bottom-margin-4
|
|
17
8
|
= nested_li(course_category.descendants, {}) do |course_category, level|
|
|
18
9
|
= link_to course_category.tree_name, course_category
|
|
19
10
|
- unless course_category.description.blank?
|
|
20
11
|
.course_categories-description
|
|
21
12
|
%p= course_category.description
|
|
22
13
|
|
|
23
|
-
.course_category-courses
|
|
24
|
-
/ %h2= Ecm::Courses::CourseCategory.human_attribute_name(:courses)
|
|
14
|
+
.course_category-courses.bottom-margin-4
|
|
25
15
|
- if course_category.courses_count == 0
|
|
26
16
|
= t('ecm.courses.course_category.messages.no_courses_available')
|
|
27
17
|
%hr/
|
|
28
18
|
- else
|
|
29
|
-
= render course_category.courses
|
|
19
|
+
= render course_category.courses
|
|
20
|
+
|
|
21
|
+
- if action_name == 'show'
|
|
22
|
+
.course-calendar.bottom-margin-4
|
|
23
|
+
= month_calendar_pagination(date)
|
|
24
|
+
= month_calendar date, course_dates, display_method: :course, start_day: :monday
|
|
25
|
+
.bottom-margin-4
|
|
26
|
+
= link_to(url_for(format: :ics, nocache: true), class: 'btn btn-default') do
|
|
27
|
+
%span.glyphicon.glyphicon-calendar
|
|
28
|
+
= url_for(format: :ics)
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
- content_for(:title) { @course_category.name }
|
|
2
|
-
= render partial: 'course_category', locals: { course_category: @course_category, date: @date, course_dates: @course_dates }
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
- if @course_category.courses.any?
|
|
6
|
-
/ %h2= t('.calendar_heading', month: l(@date, format: :month_with_year))
|
|
7
|
-
/ = month_calendar_pagination(@date)
|
|
8
|
-
/ = month_calendar @date, @course_dates, display_method: :course, start_day: :monday
|
|
3
|
+
= render partial: 'course_category', locals: { course_category: @course_category, date: @date, course_dates: @course_dates }
|
|
9
4
|
|
|
10
|
-
|
|
11
|
-
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
.row
|
|
6
|
+
.col-lg-12
|
|
7
|
+
- if @course_category.root?
|
|
8
|
+
= link_to(t('ecm.courses.course_category.actions.back_to_index'), course_categories_path) if respond_to?(:course_categories_path)
|
|
9
|
+
- else
|
|
10
|
+
= link_to(Ecm::Courses::CourseCategory.human_attribute_name(:parent), @course_category.parent)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
class InitializeSeatsColumnsInEcmCoursesCourses < ActiveRecord::Migration[4.2]
|
|
2
|
-
class Ecm::Courses::
|
|
2
|
+
class Ecm::Courses::Course < ActiveRecord::Base; end
|
|
3
3
|
|
|
4
4
|
def up
|
|
5
|
-
Ecm::Courses::
|
|
5
|
+
Ecm::Courses::Course.update_all(seats: 0, used_seats: 0, free_seats: 0)
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
def down
|
|
9
|
-
Ecm::Courses::
|
|
9
|
+
Ecm::Courses::Course.update_all(seats: nil, used_seats: nil, free_seats: nil)
|
|
10
10
|
end
|
|
11
11
|
end
|
data/lib/ecm/courses/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ecm_courses2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.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: 2018-
|
|
11
|
+
date: 2018-03-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|