diff --git a/app/views/users/_work_opr.html.erb b/app/views/users/_work_opr.html.erb index eb5355246..e35ff1de2 100644 --- a/app/views/users/_work_opr.html.erb +++ b/app/views/users/_work_opr.html.erb @@ -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? %>
<%=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=> '请各组长关联项目' %>
- <% elsif work.nil? && activity.work_status == 1 %> + <% elsif work.nil? %>
<%=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=> '取消关联项目' %>