@@ -33,12 +34,7 @@ padding: 10px 16px; line-height: 1.33;" target="_blank">立即查收邮件
- - 没收到邮件? - -<%= f.text_field :login, :size => 25, :required => true %> <%= l(:label_max_number) %>
-<%= f.password_field :password, :size => 25, :required => true %> +
<%= f.password_field :password, :size => 25, :required => true %> <%= l(:text_caracters_minimum, :count => Setting.password_min_length) %>
<%= f.password_field :password_confirmation, :size => 25, :required => true %>
@@ -56,10 +56,12 @@<%= custom_field_tag_with_label :user, value %>
<% end %>共有 <%= User.current.member_of_course?(course) ? all_attachments.count : 0 %> 个资源
- + <#% end %>--> + 资源列表的多样化排序将在下周上线... +文件大小:<%= number_to_human_size(file.filesize) %>
+文件大小:<%= number_to_human_size(file.filesize) %>
<%= link_to( l(:button_delete), attachment_path(file), - :data => {:confirm => l(:text_are_you_sure)}, :method => :delete,:class => "f_r re_de") if delete_allowed %> -<%= time_tag(file.created_on).html_safe %><%= l(:label_bids_published_ago) %> | 下载<%= file.downloads %> | 引用0
+ :data => {:confirm => l(:text_are_you_sure)}, :method => :delete,:class => "f_r re_de") if delete_allowed && file.container_id == @course.id && file.container_type == "Course"%> +<%= time_tag(file.created_on).html_safe %><%= l(:label_bids_published_ago) %> | 下载<%= file.downloads %>
-
diff --git a/app/views/homework_attach/show.html.erb b/app/views/homework_attach/show.html.erb index 5f631c26a..d2f096bae 100644 --- a/app/views/homework_attach/show.html.erb +++ b/app/views/homework_attach/show.html.erb @@ -1,175 +1,2 @@ -<%= render :partial => 'layouts/base_homework_attach', :locals => {:homework_attach => @homework} %> - -<% is_student = is_cur_course_student @homework.bid.courses.first %> -<% is_teacher = is_course_teacher User.current,@homework.bid.courses.first %> -
<%= notice %>
-作业基础信息<%=@count %> | -|
- 发布人员:<%= link_to @homework.user, user_path(@homework.user)%> - | -- 所属任务:<%= link_to(@homework.bid.name, course_for_bid_path(@homework.bid))%> - | -
- 作业下载: - <% if @is_evaluation || is_teacher%> - <% options = {:author => true } %> - <%= render :partial => 'app_link', :locals => {:attachments => @homework.attachments, :options => options} %> - <% else %> - <%= l(:label_cant_download) %> - <% end %> - | -
- 参与人员:
- <% @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 %> - |
-
平均评分: - <%= render :partial => 'show_score', :locals => {:stars => @totle_score} %> - | -发布时间:<%=format_time @homework.created_at %> | -
作业描述: |
- |
-
- <% if @homework.description != nil && @homework.description != "" %>
- <%= @homework.description %>
- <% else %>
-
-
- 该作业无任何描述!
-
- <% end %>
- |
-
<%= link_to "主页", home_path %> - > <%= link_to l(:label_course_all), :controller => 'courses', :action => 'index' %> + > <%=l(:label_courses_management_platform)%> > <%= link_to @course.name, nil %>
- - <%= l(:label_attachment) %> : - - | -|||||
- <% if @bid.attachments.any?%>
+ <% unless @bid.attachments.empty? %>
+
+
+
|
<%=link_to l(:label_home),home_path %> > <%=link_to l(:label_project_deposit),:controller => 'projects', :action => 'index', :project_type => 0 %> > <%=link_to @project, project_path(@project) %>
<%=link_to l(:label_home),home_path %> > <%=link_to @project, project_path(@project) %>
- <%= f.text_field :login, :required => true, :size => 25, :name => "login", :readonly => true %>
+ <%= f.text_field :login, :required => true, :size => 25, :name => "login", :readonly => true, :style => 'border:1px solid #d3d3d3;'%>
<%= l(:label_max_number) %>