|
|
|
@ -33,17 +33,26 @@
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="info_font" style="width: 240px; color: #15bccf">高校课程实践社区</td>
|
|
|
|
|
<td style="width: auto; color: #15bccf"><strong><%= l(:label_user_location) %> : </strong></td>
|
|
|
|
|
|
|
|
|
|
<td style="width: auto; color: #15bccf">
|
|
|
|
|
<strong><%= l(:label_user_location) %> : </strong>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="padding-left: 8px">
|
|
|
|
|
<a><%= link_to request.host()+"/courses", :controller => 'courses', :action => 'index' %></a></td>
|
|
|
|
|
<td><p class="top-content-list-homework"><%= link_to "主页", home_path %>
|
|
|
|
|
> <%= link_to l(:label_course_practice), :controller => 'courses', :action => 'index' %> >
|
|
|
|
|
<span><%= link_to(course.name.to_s, homework_course_path(course)) if course %></span>
|
|
|
|
|
>
|
|
|
|
|
<%= link_to(@bid.name, respond_path(@bid)) %></p></td>
|
|
|
|
|
<a><%= link_to request.host()+"/courses", :controller => 'courses', :action => 'index' %></a>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<p class="top-content-list-homework"><%= link_to "主页", home_path %>
|
|
|
|
|
>
|
|
|
|
|
<%= link_to l(:label_course_practice), :controller => 'courses', :action => 'index' %>
|
|
|
|
|
>
|
|
|
|
|
<span>
|
|
|
|
|
<%= link_to(course.name.to_s, homework_course_path(course)) if course %>
|
|
|
|
|
</span>
|
|
|
|
|
>
|
|
|
|
|
<%= link_to(@bid.name, respond_path(@bid)) %>
|
|
|
|
|
</p>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
@ -93,26 +102,42 @@
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<td valign="top" colspan="2" style="font-size: 16px;padding-left: 8px;">
|
|
|
|
|
<strong><%= l(:label_new_course_description) %> :</strong></td>
|
|
|
|
|
<strong>
|
|
|
|
|
<%= l(:label_new_course_description) %> :
|
|
|
|
|
</strong>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="font_lighter_sidebar" colspan="2" style="padding-left: 8px;"><%= textilizable course.description %></td>
|
|
|
|
|
<td class="font_lighter_sidebar" colspan="2" style="padding-left: 8px;">
|
|
|
|
|
<%= textilizable course.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 valign="top" style="padding-left: 8px;">
|
|
|
|
|
<%= l(:label_create_time) %> :
|
|
|
|
|
</td>
|
|
|
|
|
<td class="font_lighter_sidebar">
|
|
|
|
|
<%= format_time course.created_at %>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td valign="top" style="padding-left: 8px; width:60px">主讲老师 :</td>
|
|
|
|
|
<td class="font_lighter_sidebar"><%= link_to(course.teacher.lastname+course.teacher.firstname, user_path(course.teacher)) %></td>
|
|
|
|
|
<td valign="top" style="padding-left: 8px; width:60px"><%= l(:lable_course_teacher) %> :</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>
|
|
|
|
|
<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>
|
|
|
|
@ -120,26 +145,34 @@
|
|
|
|
|
<td class="font_lighter_sidebar"><%= course.time.to_s %> <%= course.term %></td>
|
|
|
|
|
</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://course.trustie.net/?school_id=#{@user.user_extensions.school.id}" %></td>
|
|
|
|
|
<% end %>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
|
<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>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="user_underline"></div>
|
|
|
|
|
|
|
|
|
|
<!-- info -->
|
|
|
|
|
<div class="inf_user_image">
|
|
|
|
|
<table>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td><%= l(:label_limit_time) %>: <%= @bid.deadline %></td>
|
|
|
|
|
<td>
|
|
|
|
|
<%= l(:label_limit_time) %>:
|
|
|
|
|
<%= @bid.deadline %>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>作业类型: <%= @bid.homework_type==Bid::HomeworkFile ? "提交文件" : "提交项目" %></td>
|
|
|
|
|
<!--td>作业类型:
|
|
|
|
|
<%#= @bid.homework_type==Bid::HomeworkFile ? "提交文件" : "提交项目" %>
|
|
|
|
|
</td-->
|
|
|
|
|
</tr>
|
|
|
|
|
<% unless @bid.parent_id.nil? %>
|
|
|
|
|
<tr>
|
|
|
|
@ -160,7 +193,9 @@
|
|
|
|
|
<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>
|
|
|
|
|
<td><!-- added by william -for tag -->
|
|
|
|
|
<%= render :partial => 'tags/tag', :locals => {:obj => @bid, :object_flag => "4"} %>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
@ -238,7 +273,9 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="ajax-indicator" style="display:none;">
|
|
|
|
|
<span><%= l(:label_loading) %></span>
|
|
|
|
|
<span>
|
|
|
|
|
<%= l(:label_loading) %>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="ajax-modal" style="display:none;"></div>
|
|
|
|
|
|
|
|
|
|