- <%= l(:label_task_plural)%>(<%= @homework_list.count%>) |
+ <%= l(:label_task_plural)%>(<%= @homework_list.count%>)
+ <%= link_to "作业打包下载", zipdown_assort_path(obj_class: @bid.class, obj_id: @bid), remote: false, class: "button_submit button_submit_font_white", style: "margin: 5px 10px;line-height: 20px;height: 20px;display: inline-block;" if(
+ User.current.admin? ||
+ !(User.current.roles_for_project(@bid.courses.first).map(&:id) & ([7,9])).empty? ) ||
+ (Rails.env.development?) %>
+ |
<%= text_field_tag 'student_id', params[:student_id], :size => 30 %>
@@ -14,10 +19,6 @@
<% end %>
<% display_id = im_watching_student_id? @bid%>
-<%= link_to "作业打包下载", zipdown_assort_path(obj_class: @bid.class, obj_id: @bid), remote: false, class: "button_submit button_submit_font_white", style: "margin: 5px 10px;display: inline-block;" if(
- User.current.admin? ||
- !(User.current.roles_for_project(@bid.courses.first).map(&:id) & ([7,9])).empty? ) ||
- (Rails.env.development?) %>
<% @homework_list.each do |homework|%>
<% if homework.attachments.any?%>
diff --git a/app/views/bids/show_project.html.erb b/app/views/bids/show_project.html.erb
index d5676c3c..c14d2e14 100644
--- a/app/views/bids/show_project.html.erb
+++ b/app/views/bids/show_project.html.erb
@@ -32,18 +32,16 @@
<%= select_tag 'bid', options_for_select(select_option_helper(@option)), :name => 'bid', :class => 'grayline' %> |
-
+
-
<%= link_to '创建项目', new_project_path(course: 0, project_type: 0), :target => '_blank' %>
-
|
- <% if @bid.reward_type == 3 %>
+ <% if @bid.reward_type == Bid::Homework %>
<%= f.text_area :bid_message, :id => "bid_message", :required => true, :rows => 4, :cols => 40, :placeholder => l(:label_bid_reason_homework), :style => "resize: none;", :class => 'noline' %> |
diff --git a/app/views/issues/_attributes.html.erb b/app/views/issues/_attributes.html.erb
index 6aef01e1..f4857bd2 100644
--- a/app/views/issues/_attributes.html.erb
+++ b/app/views/issues/_attributes.html.erb
@@ -2,7 +2,7 @@
|