给排序设置正确的路径
This commit is contained in:
parent
f45a9cc6fb
commit
f3d8aebfe4
|
@ -1892,5 +1892,16 @@ module ApplicationHelper
|
||||||
content_tag(:ul, logos.join("").html_safe, :class => ul_class.to_s).html_safe
|
content_tag(:ul, logos.join("").html_safe, :class => ul_class.to_s).html_safe
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def sort_homework_path(bid, sort)
|
||||||
|
case self.action_name
|
||||||
|
when 'get_not_batch_homework', 'show_courseEx'
|
||||||
|
get_not_batch_homework_homework_attach_path(bid, sort: sort)
|
||||||
|
when 'get_batch_homeworks'
|
||||||
|
get_batch_homeworks_homework_attach_path(bid, sort: sort)
|
||||||
|
when 'get_homeworks'
|
||||||
|
get_homeworks_homework_attach_path(bid, sort: sort)
|
||||||
|
else
|
||||||
|
'#'
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -7,14 +7,10 @@
|
||||||
</font>)
|
</font>)
|
||||||
</span><span class="fr">
|
</span><span class="fr">
|
||||||
按
|
按
|
||||||
<a href="#">
|
<%= link_to l(:label_work_rating), sort_homework_path(@bid, 'socre'), {:remote => true}%>
|
||||||
<%= l(:label_work_rating)%>
|
|
||||||
</a>
|
|
||||||
/
|
/
|
||||||
<a href="#">
|
<%= link_to l(:label_time), sort_homework_path(@bid, 'time'), {:remote => true}%>
|
||||||
<%= l(:label_time) %>
|
<%= l(:label_sort) %>
|
||||||
</a>
|
|
||||||
<%= l(:label_sort) %>
|
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue