<% is_teacher = User.current.admin_of_contest?(activity.contest) %>
<%= link_to image_tag(url_to_avatar(activity.user), :width => "50", :height => "50"), user_path(activity.user), :alt => "用户头像" %> <%#= render :partial => 'users/show_detail_info', :locals => {:user => activity.user} %>
<%= link_to activity.user.show_name, user_path(activity.user,:host=>Setting.host_user), :class => "newsBlue mr15" %> TO <% if hw_status == 3 || hw_status == 2 %> <%= link_to "作品", works_path(:contest => activity.contest.id), :class => "newsBlue ml15"%> <% else %> <%= link_to activity.contest.name.to_s+" | 竞赛作品", works_path(:contest => activity.contest.id), :class => "newsBlue ml15"%> <% end %>
<%=get_cw_status(activity).html_safe %>
<% if activity.work_type == 3 && activity.work_detail_group.base_on_project %> 系统提示:该题目要求各组长<%=link_to "创建项目", new_project_path(:host=>Setting.host_name),:class=>"linkBlue",:title=>"新建项目",:style=>"text-decoration:underline;"%>,组成员加入项目,然后由组长关联项目。谢谢配合! <% elsif activity.work_type == 3 && !activity.work_detail_group.base_on_project%> 系统提示:该题目要求各组长提交作品,提交作品时请添加组成员。谢谢配合! <% end %>
<%= render :partial => 'users/work_opr', :locals => {:activity => activity, :is_teacher => is_teacher, :hw_status => hw_status, :user_activity_id => user_activity_id} %> <% if !activity.end_time.nil? %>
提交截止时间:<%= activity.end_time.to_s %> 23:59
<% end %> <% if activity.work_status == 0 && !activity.publish_time.nil? %>
<%= l(:label_publish_time)%>:<%= activity.publish_time%> 00:00
<% end %>
<%=render :partial =>"users/intro_content", :locals=>{:user_activity_id =>user_activity_id, :content=>activity.description} %>
<%= render :partial=>"attachments/activity_attach", :locals=>{:activity => activity} %>
<%= render :partial => "users/contest_work_base_info", :locals =>{:activity => activity, :user_activity_id =>user_activity_id, :is_teacher => is_teacher, :hw_status => hw_status} %>
<%= render :partial => 'users/contest_work_post_reply', :locals => {:activity => activity, :user_activity_id => user_activity_id, :is_teacher => is_teacher} %>