File tree Expand file tree Collapse file tree 2 files changed +3
-21
lines changed Expand file tree Collapse file tree 2 files changed +3
-21
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ def index
30
30
def show
31
31
add_organization_breadcrumb
32
32
ordering = 'hidden, disabled_status, LOWER(courses.title)'
33
- @my_courses = Course . participated_courses ( current_user , @organization ) . order ( ordering ) . select { |c | c . visible_to? ( current_user ) }
34
33
@my_assisted_courses = Course . assisted_courses ( current_user , @organization ) . order ( ordering ) . select { |c | c . visible_to? ( current_user ) }
35
34
@ongoing_courses = @organization
36
35
. courses
@@ -56,11 +55,10 @@ def all_courses
56
55
add_organization_breadcrumb
57
56
add_breadcrumb 'All Courses'
58
57
ordering = 'hidden, disabled_status, LOWER(courses.title)'
59
- @my_courses = Course . participated_courses ( current_user , @organization ) . order ( ordering ) . select { | c | c . visible_to? ( current_user ) }
58
+
60
59
@my_assisted_courses = Course . assisted_courses ( current_user , @organization ) . order ( ordering ) . select { |c | c . visible_to? ( current_user ) }
61
60
@ongoing_courses = @organization . courses . ongoing . order ( ordering ) . select { |c | c . visible_to? ( current_user ) }
62
61
@expired_courses = @organization . courses . expired . order ( ordering ) . select { |c | c . visible_to? ( current_user ) }
63
- # @my_courses_percent_completed = percent_completed_hash(@my_courses, current_user)
64
62
authorize! :read , @ongoing_courses
65
63
authorize! :read , @expired_courses
66
64
end
Original file line number Diff line number Diff line change 1
1
< h2 > <%= title %> </ h2 >
2
- < table id ="my-courses-table " class ="course-list table table-striped table-bordered table-hover ">
3
- < thead >
4
- < tr >
5
- < th >
6
- Course
7
- </ th >
8
- </ tr >
9
- </ thead >
10
- < tbody >
11
- <% courses . each do |course | %>
12
- < tr class ="course <% if course . hidden? || course . disabled? %> hidden-course <% end %> ">
13
- < td >
14
- <%= link_to course . title , organization_course_path ( @organization , course ) %>
15
- </ td >
16
- </ tr >
17
- <% end %>
18
- </ tbody >
19
- </ table >
2
+
3
+ < p > For a list of the courses you've participated in please see your <%= link_to 'profile' , participant_path ( current_user ) %> .</ p >
You can’t perform that action at this time.
0 commit comments