-
-
- - <%= link_to l(:label_question_student), {:controller => 'bids', :action => 'show' },:class => link_class(:respond)%> - - <% if User.current.member_of? @bid.courses.first%> -
- - <% if User.current.logged? && @bid.courses.first && (!Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.nil? && (Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.roles&Role.where('id = ? or id = ? or id =?',5, 10, 7)).size >0) %> - <%= link_to l(:label_homework_commit), {:controller => 'bids', :action => 'show_project' },:class => link_class(:project)%> - <% else %> - <%= link_to l(:label_homework_info), {:controller => 'bids', :action => 'show_project' },:class => link_class(:project)%> - - <% end %> - +
高校课程实践社区 | -<%= l(:label_user_location) %> : | - -
<%= link_to request.host()+"/courses", :controller => 'projects', :action => 'course'%> | -<%=link_to "主页", home_path %> > <%=link_to l(:label_course_practice), :controller => 'projects', :action => 'course' %> > - <%= link_to(@bid.courses.first.name.to_s, homework_project_path(@bid.courses.first)) if @bid.courses.first%> > - <%=link_to(@bid.name, respond_path(@bid)) %> |
-
- <% if get_avatar?(project) %> - <%= image_tag(url_to_avatar(project),:style => "width:80px;height:80px" ) %> - <% else %> - <%= image_tag('../images/avatars/Project/course.jpg', :style => "width:80px;height:80px") %> - <% end %> - | -
-
|
+
+ <%= l(:label_new_course_description) %> : | +|
<%= textilizable course.description %> | +|
<%= l(:label_create_time) %> : | +<%= format_time course.created_at %> | +
主讲老师 : | +<%= link_to(@user.lastname+@user.firstname, user_path(@user)) %> | +
<%= l(:label_class_period) %> : | +<%= course.class_period.to_s %> <%= l(:label_class_hour) %> | +
<%= l(:label_main_term) %> : | +<%= course.time.to_s %> <%= course.term %> | +
<%= l(:label_teacher_work_unit) %> : | +<%= @user.user_extensions.occupation %> | +
<%= l(:label_limit_time) %>: <%= @bid.deadline %> | +
作业类型: <%= @bid.homework_type==Bid::HomeworkFile ? "提交文件" : "提交项目" %> | +
+
+ <% 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))) %>
+
+ |
+
<%= render :partial => 'tags/tag', :locals => {:obj => @bid, :object_flag => "4"} %> | +
+ <% if @bid.homework_type == 1 %>
+ <% if @bid.homeworks.size>0 %>
+ <% for homework in @bid.homeworks.eager_load(:user) %>
+ <%= link_to image_tag(url_to_avatar(homework.user), :class => "avatar", :title => homework.user.name), user_path(homework.user), :class => "avatar" %>
+ <% end %>
+ <% else %>
+ + <%= l(:label_no_course_project) %> + <% end %> - - + +
+
+
- <%= render :partial => 'layouts/base_footer'%>
-
-
-
-
-
+
-
- <%= yield %>
- <%= call_hook :view_layouts_base_content %>
-
-
- <%= l(:label_loading) %>
-
-
-
-
- <%= call_hook :view_layouts_base_body_bottom %>
+
+
+ <%= yield %>
+ <%= call_hook :view_layouts_base_content %>
+
+
+ <%= render :partial => 'layouts/base_footer' %>
+
+
+
+
+
+ <%= l(:label_loading) %>
+
+
+
+
+ <%= call_hook :view_layouts_base_body_bottom %>
+ <% end %>
|