2014-10-23 11:30:34 +08:00
|
|
|
<% @nav_dispaly_course_all_label = 1
|
|
|
|
@nav_dispaly_forum_label = 1
|
|
|
|
@nav_dispaly_course_label = nil
|
|
|
|
@nav_dispaly_store_all_label = 1 %>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta name="description" content="<%= Redmine::Info.app_name %>" />
|
|
|
|
<meta name="keywords" content="issue,bug,tracker" />
|
|
|
|
<title>
|
|
|
|
<%=h html_title %>
|
|
|
|
</title>
|
|
|
|
|
|
|
|
<%= csrf_meta_tag %>
|
|
|
|
<%= favicon %>
|
|
|
|
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2', 'application', 'nyan', :media => 'all' %>
|
|
|
|
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
|
|
|
|
<%= javascript_heads %>
|
|
|
|
<%= heads_for_theme %>
|
2015-04-28 12:21:35 +08:00
|
|
|
<%= javascript_include_tag "attachments" %>
|
2014-10-23 11:30:34 +08:00
|
|
|
<%= call_hook :view_layouts_base_html_head %>
|
|
|
|
<!-- page specific tags -->
|
|
|
|
<%= yield :header_tags -%>
|
2014-11-22 12:40:53 +08:00
|
|
|
|
|
|
|
<style>
|
|
|
|
.span_wping{}
|
|
|
|
.span_wping a{
|
|
|
|
margin-bottom: 3px;
|
|
|
|
background: #15bccf;
|
|
|
|
color: #fff;
|
|
|
|
text-align: center;
|
2014-11-26 15:24:41 +08:00
|
|
|
padding-left: 5px !important;
|
|
|
|
padding-right: 5px !important;
|
2015-01-29 16:22:26 +08:00
|
|
|
line-height: 1.9;
|
2015-04-09 11:38:13 +08:00
|
|
|
float: left;
|
2014-11-22 12:40:53 +08:00
|
|
|
}
|
|
|
|
.span_wping a:hover{ background-color:#03a1b3;}
|
2015-04-09 11:38:13 +08:00
|
|
|
.span_wping_background{background: #CCC !important;}
|
2015-04-10 15:43:37 +08:00
|
|
|
.font_lighter_sidebar img{max-width: 100%}
|
2015-04-15 10:06:52 +08:00
|
|
|
/*上传图片处理*/
|
|
|
|
.upload_img img{max-width: 100%;}
|
2014-11-22 12:40:53 +08:00
|
|
|
</style>
|
2014-10-23 11:30:34 +08:00
|
|
|
</head>
|
|
|
|
<body class="<%= h body_css_classes %>">
|
|
|
|
<% course = @bid.courses.first %>
|
|
|
|
<% if course %>
|
|
|
|
<div id="wrapper">
|
|
|
|
<div id="wrapper2">
|
|
|
|
<div id="wrapper3">
|
|
|
|
<%= render :partial => 'layouts/base_header' %>
|
|
|
|
<div id="main">
|
|
|
|
<!--added by huang-->
|
|
|
|
<div class="top-content">
|
|
|
|
<table>
|
|
|
|
<tr>
|
2014-11-26 14:46:08 +08:00
|
|
|
<td class="info_font" style="width: 240px;" rowspan="2">
|
|
|
|
<a href="http://<%= Setting.host_course%>" style="color: #15bccf;">
|
2015-03-10 09:45:36 +08:00
|
|
|
<%= l(:label_courses_community)%>
|
2014-11-26 14:46:08 +08:00
|
|
|
</a>
|
|
|
|
</td>
|
2014-10-23 11:30:34 +08:00
|
|
|
<td style="width: auto; color: #15bccf">
|
|
|
|
<strong><%= l(:label_user_location) %> : </strong>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<p class="top-content-list-homework"><%= link_to "主页", home_path %>
|
|
|
|
>
|
2014-12-11 15:25:18 +08:00
|
|
|
<a href="http://<%= Setting.host_course%>" style="color: #15bccf;">
|
|
|
|
<%=l(:label_course_practice) %>
|
|
|
|
</a>
|
2014-10-23 11:30:34 +08:00
|
|
|
>
|
|
|
|
<span>
|
|
|
|
<%= link_to(course.name.to_s, homework_course_path(course)) if course %>
|
|
|
|
</span>
|
|
|
|
>
|
2014-11-01 15:06:03 +08:00
|
|
|
<%= link_to(@bid.name, course_for_bid_path(@bid)) %>
|
2014-10-23 11:30:34 +08:00
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<!--end-->
|
|
|
|
|
|
|
|
<div id="sidebar">
|
|
|
|
<div class="main_context">
|
|
|
|
<div class="spaceleft">
|
|
|
|
<div>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td style="padding-left:8px ">
|
|
|
|
<% if get_avatar?(course) %>
|
|
|
|
<%= image_tag(url_to_avatar(course), :style => "width:80px;height:80px") %>
|
|
|
|
<% else %>
|
|
|
|
<%= image_tag('../images/avatars/course/course.jpg', :style => "width:80px;height:80px") %>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<table>
|
|
|
|
<tr>
|
2014-11-04 16:15:36 +08:00
|
|
|
<td style="vertical-align: top;font-size: 15px;">
|
2014-10-23 11:30:34 +08:00
|
|
|
<span style=" word-wrap: break-word; word-break: break-all">
|
|
|
|
<strong>
|
2014-11-06 11:47:28 +08:00
|
|
|
<%= link_to "返回课程主页", homework_course_path(course) if course %>
|
2014-10-23 11:30:34 +08:00
|
|
|
</strong>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2014-11-04 16:15:36 +08:00
|
|
|
<td style=" word-wrap: break-word; word-break: break-all;font-size: 15px;">
|
2014-10-23 11:30:34 +08:00
|
|
|
<span style=" color:#ed8924">
|
2014-11-06 11:47:28 +08:00
|
|
|
<strong>
|
|
|
|
<%=link_to("第#{course.homeworks.index(@bid) + 1}次作业", course_for_bid_path(@bid)) %>
|
|
|
|
</strong>
|
2014-10-23 11:30:34 +08:00
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
<!--count-->
|
|
|
|
|
|
|
|
<div class="inf_user_image">
|
2015-04-15 10:06:52 +08:00
|
|
|
<table style="width: 100%;">
|
2014-12-01 16:45:03 +08:00
|
|
|
<% if (User.current.admin?||User.current.allowed_to?(:as_teacher,course)) %>
|
2014-11-04 16:15:36 +08:00
|
|
|
<tr>
|
|
|
|
<td valign="top" style="padding-left: 8px; font-size: 15px" colspan="2">
|
2014-11-22 15:56:42 +08:00
|
|
|
<% if @bid.open_anonymous_evaluation == 1 && @bid.homeworks.count >= 2%>
|
2014-11-22 12:40:53 +08:00
|
|
|
<span id="<%=@bid.id %>_anonymous_comment" class="span_wping">
|
2014-11-07 10:39:17 +08:00
|
|
|
<% case @bid.comment_status %>
|
2014-11-07 10:37:10 +08:00
|
|
|
<% when 0 %>
|
2014-11-07 10:39:17 +08:00
|
|
|
<%= link_to '启动匿评', alert_anonymous_comment_bid_path(@bid), id: "#{@bid.id}_start_anonymous_comment", remote: true, disable_with: '加载中...' %>
|
2014-11-07 10:37:10 +08:00
|
|
|
<% when 1 %>
|
2014-11-07 10:39:17 +08:00
|
|
|
<%= link_to '关闭匿评', alert_anonymous_comment_bid_path(@bid), id: "#{@bid.id}_stop_anonymous_comment", remote: true %>
|
2014-11-07 10:37:10 +08:00
|
|
|
<% when 2 %>
|
2015-04-15 14:53:07 +08:00
|
|
|
<a href="javascript:void(0)" style="background:#8e8e8e;">匿评结束</a>
|
2014-11-07 10:37:10 +08:00
|
|
|
<% end %>
|
|
|
|
</span>
|
2014-11-19 11:28:54 +08:00
|
|
|
<%end%>
|
2014-11-04 16:15:36 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
|
2014-10-23 11:30:34 +08:00
|
|
|
<tr>
|
2014-11-04 16:15:36 +08:00
|
|
|
<td valign="top" colspan="2" style="font-size: 15px;padding-left: 8px;">
|
2014-10-23 11:30:34 +08:00
|
|
|
<strong>
|
2014-10-31 09:16:49 +08:00
|
|
|
<%= l(:label_homework_description) %> :
|
2014-10-23 11:30:34 +08:00
|
|
|
</strong>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
2015-04-15 10:06:52 +08:00
|
|
|
<td class="font_lighter_sidebar" colspan="2" style="padding-left: 8px;">
|
|
|
|
<div class="upload_img" style="width: 210px;"><%= @bid.description.html_safe %></div>
|
2014-10-23 11:30:34 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
2014-10-28 17:28:18 +08:00
|
|
|
<td valign="top" style="padding-left: 8px; width:62px;">
|
2014-10-31 09:16:49 +08:00
|
|
|
<%= l(:label_limit_time) %>:
|
2014-10-23 11:30:34 +08:00
|
|
|
</td>
|
|
|
|
<td class="font_lighter_sidebar">
|
2014-10-31 09:16:49 +08:00
|
|
|
<%= @bid.deadline %>
|
2014-10-23 11:30:34 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
|
|
|
|
<!-- info -->
|
2014-11-22 12:43:42 +08:00
|
|
|
<% unless @bid.attachments.empty? %>
|
|
|
|
<div class="inf_user_image">
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td valign="top" colspan="2" style="font-size: 16px;padding-left: 8px;">
|
|
|
|
<strong>
|
|
|
|
<%= l(:label_attachment) %> :
|
|
|
|
</strong>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td valign="top" colspan="2">
|
2015-03-27 17:00:23 +08:00
|
|
|
<% options = {:author => true,:deletable => (@bid.author.id == User.current.id || User.current.admin? ? true : false),:wrap => true,:length => 15} %>
|
2014-10-31 09:16:49 +08:00
|
|
|
<%= render :partial => 'attachments/links', :locals => {:attachments => @bid.attachments, :options => options} %>
|
2014-11-22 12:43:42 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<!--td>作业类型:
|
2014-10-23 11:30:34 +08:00
|
|
|
<%#= @bid.homework_type==Bid::HomeworkFile ? "提交文件" : "提交项目" %>
|
|
|
|
</td-->
|
2014-11-22 12:43:42 +08:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<% end%>
|
2014-10-23 11:30:34 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- end -->
|
|
|
|
</div>
|
|
|
|
<div id="content">
|
|
|
|
<%= yield %>
|
|
|
|
<%= call_hook :view_layouts_base_content %>
|
|
|
|
<div style="clear:both;"></div>
|
|
|
|
</div>
|
|
|
|
<%= render :partial => 'layouts/base_footer' %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="ajax-indicator" style="display:none;">
|
|
|
|
<span>
|
|
|
|
<%= l(:label_loading) %>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div id="ajax-modal" style="display:none;"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<%= call_hook :view_layouts_base_body_bottom %>
|
|
|
|
<% end %>
|
|
|
|
</body>
|
|
|
|
</html>
|