Skip to content

Commit 8c888fe

Browse files
committed
Hide percent completed from when showing orgs
1 parent 71b4c34 commit 8c888fe

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

app/controllers/organizations_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def show
3131
@my_assisted_courses = Course.assisted_courses(current_user, @organization).order(ordering).select { |c| c.visible_to?(current_user) }
3232
@ongoing_courses = @organization.courses.ongoing.order(ordering).select { |c| c.visible_to?(current_user) }
3333
@expired_courses = @organization.courses.expired.order(ordering).select { |c| c.visible_to?(current_user) }
34-
@my_courses_percent_completed = percent_completed_hash(@my_courses, current_user)
34+
# @my_courses_percent_completed = percent_completed_hash(@my_courses, current_user)
3535
authorize! :read, @ongoing_courses
3636
authorize! :read, @expired_courses
3737
end

app/views/courses/_list_my_courses.html.erb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
<th>
66
Course
77
</th>
8-
<th>
9-
Completed
10-
</th>
118
</tr>
129
</thead>
1310
<tbody>
@@ -16,13 +13,6 @@
1613
<td>
1714
<%= link_to course.title, organization_course_path(@organization, course) %>
1815
</td>
19-
<td>
20-
<% if percent_completed[course.id] %>
21-
<%= sprintf('%.0f', percent_completed[course.id]) %>
22-
<% else %>
23-
hidden
24-
<% end %>
25-
</td>
2616
</tr>
2717
<% end %>
2818
</tbody>

0 commit comments

Comments
 (0)