|
|
@ -110,13 +110,13 @@ module UsersHelper
|
|
|
|
else
|
|
|
|
else
|
|
|
|
case state
|
|
|
|
case state
|
|
|
|
when 0
|
|
|
|
when 0
|
|
|
|
s = content_tag('span', '我加入的课程', :class => "current-page")
|
|
|
|
s = content_tag('span', l(:label_my_course), :class => "current-page")
|
|
|
|
content << content_tag('li', s)
|
|
|
|
content << content_tag('li', s)
|
|
|
|
content << content_tag('li', link_to('我的作业', {:controller => 'users', :action => 'user_courses', :type => 1}))
|
|
|
|
content << content_tag('li', link_to('我的作业', {:controller => 'users', :action => 'user_courses', :type => 1}))
|
|
|
|
content_tag('div', content, :class => "pagination")
|
|
|
|
content_tag('div', content, :class => "pagination")
|
|
|
|
when 1
|
|
|
|
when 1
|
|
|
|
s = content_tag('span', '我的作业', :class => "current-page")
|
|
|
|
s = content_tag('span', '我的作业', :class => "current-page")
|
|
|
|
content << content_tag('li', link_to('我加入的课程', {:controller => 'users', :action => 'user_courses', :type => 0}))
|
|
|
|
content << content_tag('li', link_to(l(:label_my_course), {:controller => 'users', :action => 'user_courses', :type => 0}))
|
|
|
|
content << content_tag('li', s, :class => "current-page")
|
|
|
|
content << content_tag('li', s, :class => "current-page")
|
|
|
|
content_tag('div', content, :class => "pagination")
|
|
|
|
content_tag('div', content, :class => "pagination")
|
|
|
|
end
|
|
|
|
end
|
|
|
|