diff --git a/app/views/homework_attach/new.html.erb b/app/views/homework_attach/new.html.erb
index 8fa0eab02..618fc15a1 100644
--- a/app/views/homework_attach/new.html.erb
+++ b/app/views/homework_attach/new.html.erb
@@ -1,3 +1,19 @@
+
+
+
+ 高校课程实践社区 |
+ <%= 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)) %> > <%= link_to "创建作业", new_homework_attach_path(@bid)%> |
+
+
+
+
<%=h l(:label_new_homework)%>
<%= form_for('new_form', :method => :post,
diff --git a/app/views/homework_attach/show.html.erb b/app/views/homework_attach/show.html.erb
index 7df12032f..31377c609 100644
--- a/app/views/homework_attach/show.html.erb
+++ b/app/views/homework_attach/show.html.erb
@@ -23,16 +23,9 @@
发布人员:<%= link_to @homework.user, user_path(@homework.user)%>
|
-
- 参与人员:
- <% @homework.users.each do |homework_user| %>
- <%= link_to homework_user, user_path(homework_user)%>
- <% if @homework.users.count > 1 && homework_user != @homework.users.last %>
-
- <% end %>
- <% end %>
+ |
+ 所属任务:<%= link_to(@homework.bid.name, project_for_bid_path(@homework.bid))%>
|
-
@@ -44,15 +37,21 @@
<%= l(:label_cant_download) %>
<% end %>
|
-
- 所属任务:<%= link_to(@homework.bid.name, project_for_bid_path(@homework.bid))%>
+ |
+ 参与人员:
+ <% @homework.users.each do |homework_user| %>
+ <%= link_to homework_user, user_path(homework_user)%>
+ <% if @homework.users.count > 1 && homework_user != @homework.users.last %>
+
+ <% end %>
+ <% end %>
|
平均评分:
<%= rating_for @homework, :static => true, dimension: :quality, class: 'rateable div_inline' %>
|
- 发布时间:<%=format_time @homework.created_at %> |
+ 发布时间:<%=format_time @homework.created_at %> |
@@ -142,32 +141,36 @@
-
-
作业评论:
- <% if is_student %>
- <% if @is_evaluation %>
- <% if @has_evaluation %>
+
+<% if User.current != @homework.user %>
+
+
作业评论:
+ <% if is_student %>
+ <% if @is_evaluation %>
+ <% if @has_evaluation %>
+
+ <%= l(:lable_has_evaluation)%>
+
+ <% else %>
+ <%= render :partial => 'evaluation', :locals => {:homework => @homework} %>
+ <% end %>
+ <% else %>
- <%= l(:lable_has_evaluation)%>
+ <%= l(:lable_close_evaluation)%>
- <% else %>
- <%= render :partial => 'evaluation', :locals => {:homework => @homework} %>
<% end %>
- <% else %>
-
- <%= l(:lable_close_evaluation)%>
-
<% end %>
- <% end %>
-
+
+<% end %>
<% if !is_teacher %>
-
-
- <%= render :partial => 'addjour', :locals => {:homework_attach => @homework, :sta => 0, :is_comprehensive_evaluation => nil} %>
-
+
+
+ <%= render :partial => 'addjour', :locals => {:homework_attach => @homework, :sta => 0, :is_comprehensive_evaluation => nil} %>
+
<% end %>
+
<%= render :partial => 'showjour', :locals => {:jour => @jour,:homework => @homework} %>