|
|
@ -105,66 +105,26 @@
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td valign="top" colspan="2" style="font-size: 16px;padding-left: 8px;">
|
|
|
|
<td valign="top" colspan="2" style="font-size: 16px;padding-left: 8px;">
|
|
|
|
<strong>
|
|
|
|
<strong>
|
|
|
|
<%= l(:label_new_course_description) %> :
|
|
|
|
<%= l(:label_homework_description) %> :
|
|
|
|
</strong>
|
|
|
|
</strong>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td class="font_lighter_sidebar" colspan="2" style="padding-left: 8px;">
|
|
|
|
<td class="font_lighter_sidebar" colspan="2" style="padding-left: 8px;">
|
|
|
|
<%= textilizable course.description %>
|
|
|
|
<%= textilizable @bid.description %>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td valign="top" style="padding-left: 8px;">
|
|
|
|
|
|
|
|
<%= l(:label_create_time) %> :
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td class="font_lighter_sidebar">
|
|
|
|
|
|
|
|
<%= format_time course.created_at %>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td valign="top" style="padding-left: 8px; width:62px;">
|
|
|
|
<td valign="top" style="padding-left: 8px; width:62px;">
|
|
|
|
<%= l(:lable_course_teacher) %> :
|
|
|
|
<%= l(:label_limit_time) %>:
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td class="font_lighter_sidebar">
|
|
|
|
|
|
|
|
<%= link_to(course.teacher.lastname+course.teacher.firstname, user_path(course.teacher)) %>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td valign="top" style="padding-left: 8px;">
|
|
|
|
|
|
|
|
<%= l(:label_class_period) %> :
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td class="font_lighter_sidebar">
|
|
|
|
|
|
|
|
<%= course.class_period.to_s %>
|
|
|
|
|
|
|
|
<%= l(:label_class_hour) %>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td valign="top" style="padding-left: 8px;">
|
|
|
|
|
|
|
|
<%= l(:label_main_term) %> :
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td class="font_lighter_sidebar">
|
|
|
|
<td class="font_lighter_sidebar">
|
|
|
|
<%= course.time.to_s %>
|
|
|
|
<%= @bid.deadline %>
|
|
|
|
<%= course.term %>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td valign="top" style="padding-left: 8px;">
|
|
|
|
|
|
|
|
<%= l(:label_teacher_work_unit) %> :
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<!-- modified by zjc 有@user.user_extensions.occupation改为 @user.user_extensions.school 并添加超链接 -->
|
|
|
|
|
|
|
|
<% unless @user.user_extensions.nil? || @user.user_extensions.school.nil? %>
|
|
|
|
|
|
|
|
<td class="font_lighter_sidebar">
|
|
|
|
|
|
|
|
<%= link_to @user.user_extensions.school,"http://#{Setting.host_course}/?school_id=#{@user.user_extensions.school.id}" %>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
<div class="user_underline"></div>
|
|
|
@ -174,8 +134,10 @@
|
|
|
|
<table>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<%= l(:label_limit_time) %>:
|
|
|
|
<% if @bid.attachments.any?%>
|
|
|
|
<%= @bid.deadline %>
|
|
|
|
<% options = {:author => true,:deletable => (@bid.author.id == User.current.id || User.current.admin? ? true : false)} %>
|
|
|
|
|
|
|
|
<%= render :partial => 'attachments/links', :locals => {:attachments => @bid.attachments, :options => options} %>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
@ -183,33 +145,9 @@
|
|
|
|
<%#= @bid.homework_type==Bid::HomeworkFile ? "提交文件" : "提交项目" %>
|
|
|
|
<%#= @bid.homework_type==Bid::HomeworkFile ? "提交文件" : "提交项目" %>
|
|
|
|
</td-->
|
|
|
|
</td-->
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<% unless @bid.parent_id.nil? %>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<div style=" color: rgb(255, 0, 0); width:200px">
|
|
|
|
|
|
|
|
<% author=Bid.find(@bid.parent_id).author %>
|
|
|
|
|
|
|
|
作业来源于<%= link_to(author.lastname+author.firstname, user_path(Bid.find(@bid.parent_id).author)) %>
|
|
|
|
|
|
|
|
的需求:<%= link_to(Bid.find(@bid.parent_id).name, respond_path(Bid.find(@bid.parent_id))) %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- tags -->
|
|
|
|
|
|
|
|
<div class="user_fans">
|
|
|
|
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
|
|
|
|
<table style="font-family:'微软雅黑'; padding-left: 8px">
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td><!-- added by william -for tag -->
|
|
|
|
|
|
|
|
<%= render :partial => 'tags/tag', :locals => {:obj => @bid, :object_flag => "4"} %>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!--homework-->
|
|
|
|
<!--homework-->
|
|
|
|
<div class="user_fans">
|
|
|
|
<div class="user_fans">
|
|
|
|
|
|
|
|
|
|
|
|