课程列表中,自己的课程没星号标志问题
This commit is contained in:
parent
ef15c15605
commit
0a1713da20
|
@ -219,7 +219,7 @@ module CoursesHelper
|
||||||
|
|
||||||
def render_course_hierarchy(courses)
|
def render_course_hierarchy(courses)
|
||||||
render_course_nested_lists(courses) do |course|
|
render_course_nested_lists(courses) do |course|
|
||||||
s = link_to_course(course, {}, :class => "#{course.css_classes} #{User.current.member_of?(course) ? 'my-course' : nil}").html_safe
|
s = link_to_course(course, {}, :class => "#{course.css_classes} #{User.current.member_of_course?(course) ? 'my-course' : nil}").html_safe
|
||||||
s
|
s
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<%= l(:label_private) %>
|
<%= l(:label_private) %>
|
||||||
</span>
|
</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
<%= content_tag('span', link_to("#{@course.name}", course_path(@course), :class => "info"))%>
|
<%= content_tag('span', link_to("#{@course.name}", course_path(@course), :class => "info #{User.current.member_of_course?(@course) ? 'my-project' : nil}"))%>
|
||||||
</p>
|
</p>
|
||||||
<p >
|
<p >
|
||||||
<%= content_tag('span', "#{l(:label_institution_name)}:", :class => "course-font")%>
|
<%= content_tag('span', "#{l(:label_institution_name)}:", :class => "course-font")%>
|
||||||
|
|
Loading…
Reference in New Issue