parent
cc69b06616
commit
13c362b08d
|
@ -99,7 +99,7 @@ module WatchersHelper
|
||||||
# 主讲教师不允许退出课程
|
# 主讲教师不允许退出课程
|
||||||
return '' if user.id == course.tea_id || course.is_public == 0
|
return '' if user.id == course.tea_id || course.is_public == 0
|
||||||
joined = user.member_of_course?(course)
|
joined = user.member_of_course?(course)
|
||||||
text = joined ? l(:label_exit_course) : l(:label_join_course)
|
text = joined ? l(:label_exit_course) : l(:label_new_join)
|
||||||
url_t = join_path(:object_id => course.id)
|
url_t = join_path(:object_id => course.id)
|
||||||
url_f = try_join_path(:object_id => course.id)
|
url_f = try_join_path(:object_id => course.id)
|
||||||
method = joined ? 'delete' : 'post'
|
method = joined ? 'delete' : 'post'
|
||||||
|
|
|
@ -9,14 +9,15 @@
|
||||||
(<font color="#CC0000">
|
(<font color="#CC0000">
|
||||||
<%= homework_count%>
|
<%= homework_count%>
|
||||||
</font>)
|
</font>)
|
||||||
</span><span class="fr">
|
</span>
|
||||||
|
<span class="fr">
|
||||||
按
|
按
|
||||||
<%= link_to l(:label_teacher_score), sort_homework_path(@bid, 't_socre', @direction), {:remote => true}%>
|
<%= link_to l(:label_anonymous_comments), sort_homework_path(@bid, 's_socre', @direction), {:remote => true}%>
|
||||||
/
|
/
|
||||||
<%= link_to l(:label_anonymous_comments), sort_homework_path(@bid, 's_socre', @direction), {:remote => true}%>
|
<%= link_to l(:label_teacher_score), sort_homework_path(@bid, 't_socre', @direction), {:remote => true}%>
|
||||||
/
|
/
|
||||||
<%= link_to l(:label_time), sort_homework_path(@bid, 'time', @direction), {:remote => true}%>
|
<%= link_to l(:label_time), sort_homework_path(@bid, 'time', @direction), {:remote => true}%>
|
||||||
<%= l(:label_sort) %>
|
<%= l(:label_sort) %>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -88,7 +88,7 @@
|
||||||
<div id="join_in_course">
|
<div id="join_in_course">
|
||||||
<% if User.current.logged? %>
|
<% if User.current.logged? %>
|
||||||
<% if User.current.allowed_to?(:as_teacher,@course) %>
|
<% if User.current.allowed_to?(:as_teacher,@course) %>
|
||||||
<%= link_to l(:label_course_modify_settings), {:controller => 'courses', :action => 'settings', :id => @course} %>
|
<%= link_to l(:button_configure), {:controller => 'courses', :action => 'settings', :id => @course} %>
|
||||||
<%= render :partial => 'courses/set_course_time', :locals => {:course => @course} %>
|
<%= render :partial => 'courses/set_course_time', :locals => {:course => @course} %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= join_in_course(@course, User.current) %>
|
<%= join_in_course(@course, User.current) %>
|
||||||
|
|
|
@ -1886,7 +1886,7 @@ zh:
|
||||||
|
|
||||||
label_bids_task_list: 作业列表
|
label_bids_task_list: 作业列表
|
||||||
label_join_course: 加入课程
|
label_join_course: 加入课程
|
||||||
label_exit_course: 退出课程
|
label_exit_course: 退出
|
||||||
label_new_join: 加入
|
label_new_join: 加入
|
||||||
label_new_course_password: 课程密码
|
label_new_course_password: 课程密码
|
||||||
label_new_course_school: 开课学校
|
label_new_course_school: 开课学校
|
||||||
|
|
Loading…
Reference in New Issue