团队竞赛补交作品
This commit is contained in:
parent
bb5522332c
commit
931022c7b1
|
@ -1,11 +1,11 @@
|
|||
<% work = cur_user_works_for_work activity %>
|
||||
<% if activity.work_type == 3 && User.current.contestant_of_contest?(activity.contest) && activity.work_detail_group.base_on_project %>
|
||||
<% projects = cur_user_projects_for_work activity %>
|
||||
<% if work.nil? && projects.nil? && activity.work_status == 1 %>
|
||||
<% if work.nil? && projects.nil? %>
|
||||
<div class="homepagePostSubmit">
|
||||
<%=link_to "关联项目",new_student_work_project_contestant_works_path(:work => activity.id,:hw_status=>hw_status,:user_activity_id=>user_activity_id),remote: true,:class=> 'c_blue', :title=> '请各组长关联项目' %>
|
||||
</div>
|
||||
<% elsif work.nil? && activity.work_status == 1 %>
|
||||
<% elsif work.nil? %>
|
||||
<div class="homepagePostSubmit">
|
||||
<%=link_to "取消关联",cancel_relate_project_contestant_works_path(:work => activity.id,:hw_status=>hw_status,:user_activity_id=>user_activity_id), :confirm => "您确定要取消关联吗?", remote: true,:class => "c_blue", :title=> '取消关联项目' %>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue