- <%= l(:label_class_period) %>
- *
+
+ <%= l(:label_class_period) %>
+ *
+
<%= text_field_tag :class_period, @course.class_period, :placeholder => "#{l(:lable_input_class)}", :maxlength => 5 %>
- <%= l(:label_class_hour) %>
<%= l(:label_class_hour) %>
@@ -98,7 +99,7 @@
|
- <%= select_tag :time,options_for_select(course_time_option,@course.time), {} %>
+ <%= select_tag :time,options_for_select(course_time_option(@course.time),@course.time), {} %>
|
<%= select_tag :term,options_for_select(course_term_option,@course.term || cur_course_term),{} %>
diff --git a/app/views/homework_attach/_app_link.html.erb b/app/views/homework_attach/_app_link.html.erb
index 1c089dbe0..97c2e2f37 100644
--- a/app/views/homework_attach/_app_link.html.erb
+++ b/app/views/homework_attach/_app_link.html.erb
@@ -1,6 +1,6 @@
<% for attachment in attachments %>
<% if attachments.count > 1 && attachment != attachments.first%>
-
+
<% end %>
<%= link_to_short_attachment attachment, :class => 'icon icon-attachment', :download => true -%>
<% if attachment.is_text? %>
diff --git a/app/views/homework_attach/_homework.html.erb b/app/views/homework_attach/_homework.html.erb
index d11ea3333..e14475f9f 100644
--- a/app/views/homework_attach/_homework.html.erb
+++ b/app/views/homework_attach/_homework.html.erb
@@ -1,4 +1,4 @@
-
+
<% if is_student_batch_homework %>
<%= image_tag(url_to_avatar("匿名"), :width => "40", :height => "40")%>
@@ -19,6 +19,10 @@
<% homework_filename = homework.name %>
<% end %>
<%= link_to homework_filename , homework_attach_path(homework,:cur_page => @cur_page,:cur_type => @cur_type), :title => homework_filename, :remote => true%>
+
+ 提交时间:
+ <%= format_time homework.created_at%>
+
<%= link_to "(#{homework.attachments.count.to_s}个附件)", zipdown_download_user_homework_path(:homework => homework)%>
@@ -51,7 +55,7 @@
<% if is_my_homework %>
<% if @bid.comment_status == 0 || @bid.open_anonymous_evaluation == 0 %>
-
+
<%= link_to l(:button_edit), edit_homework_attach_path(homework) %>
<% if homework.user == User.current || User.current.admin? %>
diff --git a/app/views/homework_attach/_jour.html.erb b/app/views/homework_attach/_jour.html.erb
index 055e1a015..fe2eca8dc 100644
--- a/app/views/homework_attach/_jour.html.erb
+++ b/app/views/homework_attach/_jour.html.erb
@@ -46,7 +46,7 @@
- <%= render :partial => "words/journal_reply", :locals => {:journal => jour,:show_name=> show_name, :show_real_name => true } %>
+ <%= render :partial => "words/journal_reply", :locals => {:journal => jour,:show_name=> show_name} %>
diff --git a/app/views/homework_attach/_journal_reply_items.html.erb b/app/views/homework_attach/_journal_reply_items.html.erb
index dd09bd84f..ac60709ad 100644
--- a/app/views/homework_attach/_journal_reply_items.html.erb
+++ b/app/views/homework_attach/_journal_reply_items.html.erb
@@ -1,4 +1,3 @@
-<% show_real_name ||= false %>
<% reply_allow = JournalsForMessage.create_by_user? User.current %>
<% ids_r = 'reply_respond_form_'+ reply.id.to_s %>
@@ -15,11 +14,7 @@
回复
<% parent_jour = JournalsForMessage.find reply.m_reply_id %>
<% if show_name && parent_jour %>
- <% if show_real_name%>
- <%= link_to parent_jour.user.lastname+parent_jour.user.firstname, user_path(parent_jour.user) %>
- <% else %>
- <%= link_to parent_jour.user.name, user_path(parent_jour.user) %>
- <% end %>
+ <%= link_to parent_jour.user.name, user_path(parent_jour.user) %>
<% else %>
<%= l(:label_anonymous) %>
<% end %>
diff --git a/app/views/homework_attach/_show.html.erb b/app/views/homework_attach/_show.html.erb
index bce3e4d03..bf797e441 100644
--- a/app/views/homework_attach/_show.html.erb
+++ b/app/views/homework_attach/_show.html.erb
@@ -61,16 +61,24 @@
- <%= l(:label_activity_time) %>:<%=format_time @homework.created_at %>
+
+ <%= l(:label_activity_time) %>:
+
+ <%=format_time @homework.created_at %>
+
+
<% if @homework.users.count > 0 %>
- <%= l(:label_participation_person) %>:
+
+ <%= l(:label_participation_person) %>:
<% if @is_anonymous_comments && @is_comprehensive_evaluation != 1 %>
<%= l(:label_anonymous) %>
<%else%>
<% @homework.users.each do |homework_user| %>
- <%= link_to homework_user, user_path(homework_user)%>
+
+ <%= link_to homework_user, user_path(homework_user)%>
+
<% if @homework.users.count > 1 && homework_user != @homework.users.last %>
、
<% end %>
@@ -84,15 +92,23 @@
<%= @homework.description %>
<% else %>
- <%= l(:label_homework_without_description) %>
+
+ <%= l(:label_homework_without_description) %>
+
<% end %>
- <%= l(:label_attachment) %>:
+
+
+ <%= l(:label_attachment) %>:
- <% options = {:author => true } %>
- <%= render :partial => 'app_link', :locals => {:attachments => @homework.attachments, :options => options} %>
+ <% if @homework.attachments.empty?%>
+ 尚未提交附件
+ <% else%>
+ <% options = {:author => true } %>
+ <%= render :partial => 'app_link', :locals => {:attachments => @homework.attachments, :options => options} %>
+ <% end%>
diff --git a/app/views/homework_attach/add_jour_reply.js.erb b/app/views/homework_attach/add_jour_reply.js.erb
index 34cec1cca..564229d81 100644
--- a/app/views/homework_attach/add_jour_reply.js.erb
+++ b/app/views/homework_attach/add_jour_reply.js.erb
@@ -1,7 +1,7 @@
<% if @save_succ %>
var pre_append = $('<%= j(
render :partial => "journal_reply_items",
- :locals => {:reply => @jfm, :journal => @jfm.parent, :m_reply_id => @jfm, :show_real_name => true}
+ :locals => {:reply => @jfm, :journal => @jfm.parent, :m_reply_id => @jfm}
) %>').hide();
$('#journal_reply_ul_<%=@jfm.m_parent_id%>').append(pre_append);
pre_append.fadeIn(600);
diff --git a/app/views/homework_attach/edit.html.erb b/app/views/homework_attach/edit.html.erb
index cfe4bf097..d88285385 100644
--- a/app/views/homework_attach/edit.html.erb
+++ b/app/views/homework_attach/edit.html.erb
@@ -41,13 +41,13 @@
- -
+
-
修改作业
-
成员
- -
+
-
<%= link_to(l(:label_project_new), {:controller => 'projects',
:action => 'new',
:course => 0,
@@ -60,22 +60,26 @@
<%= form_for(@homework) do |f|%>
-
+
<%= f.text_field :name, :required => true, :name => "homework_name", :class => "w430 bo", :maxlength => 254, :placeholder => "作品名称", :onblur => "regexName();"%>
-
- 添加附件 :
- <%#= render :partial => 'attachments/form' %>
+
+ 添加附件 :
+
<% unless @homework.attachments.empty?%>
<% options = {:author => true, :deletable => attach_delete(@homework)} %>
diff --git a/app/views/homework_attach/new.html.erb b/app/views/homework_attach/new.html.erb
index c843482a9..877cb6d18 100644
--- a/app/views/homework_attach/new.html.erb
+++ b/app/views/homework_attach/new.html.erb
@@ -41,10 +41,10 @@
- -
+
-
创建作品
- -
+
-
<%= link_to(l(:label_project_new), {:controller => 'projects',
:action => 'new',
:course => 0,
@@ -72,19 +72,20 @@
-
+
*
- 作品描述 :
+ 作品描述 :
<%= f.text_area "description", :class => "w620", :maxlength => 3000, :placeholder => "最多3000个汉字", :onblur => "regexDescription();"%>
- 添加附件 :
- <%#= render :partial => 'attachments/form' %>
+
+ 添加附件 :
+
<%= render :partial => 'attachments/form' %>
diff --git a/app/views/layouts/_base_softapplication_index_top_content.html.erb b/app/views/layouts/_base_softapplication_index_top_content.html.erb
index ff897a866..f5daa020e 100644
--- a/app/views/layouts/_base_softapplication_index_top_content.html.erb
+++ b/app/views/layouts/_base_softapplication_index_top_content.html.erb
@@ -13,8 +13,14 @@
- <%=l(:label_contest_innovate_community)%> |
- <%= l(:label_user_location) %> : |
+
+
+ <%=l(:label_contest_innovate_community)%>
+
+ |
+
+ <%= l(:label_user_location) %> :
+ |
<%= form_tag({:controller => 'softapplications', :action => 'search'}, :method => :get, :id => "search_softapplications") do %>
@@ -28,9 +34,9 @@
|
- <%=link_to request.host()+"/softapplications", :controller=>'softapplications', :action=>'index' %> |
- <%=link_to l(:field_homepage), home_path %> >
- <%=link_to l(:label_contest_work), :controller=>'softapplications', :action=>'index' %>
+ |
+ <%=link_to l(:field_homepage), home_path %> >
+ <%=link_to l(:label_contest_work), :controller=>'softapplications', :action=>'index' %>
|
diff --git a/app/views/layouts/_base_softapplication_top_content.html.erb b/app/views/layouts/_base_softapplication_top_content.html.erb
index 71c708d63..afa2e1d29 100644
--- a/app/views/layouts/_base_softapplication_top_content.html.erb
+++ b/app/views/layouts/_base_softapplication_top_content.html.erb
@@ -1,18 +1,24 @@
- <%=l(:label_contest_innovate_community)%> |
- <%= l(:label_user_location) %> : |
+
+
+ <%=l(:label_contest_innovate_community)%>
+
+ |
+
+ <%= l(:label_user_location) %> :
+ |
|
- <%=link_to request.host()+"/contests", :controller=>'contests', :action=>'index' %> |
- <%=link_to l(:field_homepage), home_path %> >
- <%=link_to l(:label_contest_innovate), :controller=>'contests', :action=>'index' %> >
-
- <% contest = @softapplication.contests.first %><%= contest ? link_to(contest.name, show_contest_contest_path(contest)) : '尚未加入竞赛'%>
-
+ |
+ <%=link_to l(:field_homepage), home_path %> >
+ <%= l(:label_contest_innovate) %>
+
+ <% contest = @softapplication.contests.first %><%= contest ? link_to(contest.name, show_contest_contest_path(contest)) : '尚未加入竞赛'%>
+
|
diff --git a/app/views/layouts/_tag.html.erb b/app/views/layouts/_tag.html.erb
index e0e2b49fd..898d9b580 100644
--- a/app/views/layouts/_tag.html.erb
+++ b/app/views/layouts/_tag.html.erb
@@ -11,12 +11,12 @@
<%= form_for "tag_for_save",:remote=>true,:url=>tag_path,
:update => "tags_show",
- :complete => '$("#put-tag-form-issue").hide();' do |f| %>
+ :complete => '$("#put-tag-form-issue").slideUp();' do |f| %>
<%= f.text_field :name ,:id => "name-issue",:size=>"30" %>
<%= f.text_field :object_id,:value=> obj.id,:style=>"display:none"%>
<%= f.text_field :object_flag,:value=> object_flag,:style=>"display:none"%>
<%= f.submit "add"%>
- <%= link_to_function l(:button_cancel), '$("#put-tag-form-issue").hide();'%>
+ <%= link_to_function l(:button_cancel), '$("#put-tag-form-issue").slideUp();'%>
<% end %>
@@ -29,12 +29,12 @@
<%= form_for "tag_for_save",:remote=>true,:url=>tag_path,
:update => "tags_show",
- :complete => '$("#put-tag-form").hide();' do |f| %>
+ :complete => '$("#put-tag-form").slideUp();' do |f| %>
<%= f.text_field :name ,:id => "name",:size=>"28"%>
<%= f.text_field :object_id,:value=> obj.id,:style=>"display:none"%>
<%= f.text_field :object_flag,:value=> object_flag,:style=>"display:none"%>
<%= f.submit "add"%>
- <%= link_to_function l(:button_cancel), '$("#put-tag-form").hide();'%>
+ <%= link_to_function l(:button_cancel), '$("#put-tag-form").slideUp();'%>
<% end %>
diff --git a/app/views/layouts/base_bids.html.erb b/app/views/layouts/base_bids.html.erb
index d7d9e3924..e04889d2a 100644
--- a/app/views/layouts/base_bids.html.erb
+++ b/app/views/layouts/base_bids.html.erb
@@ -34,27 +34,42 @@
-
-
- 企业众包社区 |
- <%= l(:label_user_location) %> : |
-
-
- <%= form_tag(calls_path, :method => :get) do %>
- <%= text_field_tag 'name', params[:name], :size => 20 %>
- <%= hidden_field_tag 'reward_type', params[:reward_type] %>
- <%= hidden_field_tag 'project_type', params[:project_type] %>
- <%= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
- <% end %>
-
- |
-
-
- <%= link_to request.host()+"/calls", :controller => 'bids', :action => 'index' %> |
- <%=link_to l(:field_homepage), home_path %> > <%=link_to l(:label_requirement_enterprise), :controller => 'bids', :action => 'index' %> >
- <%=link_to @bid.name ,bid_path %> |
-
-
+
+
+
+ 企业众包社区
+ |
+
+
+ <%= l(:label_user_location) %> :
+ |
+
+
+ <%= form_tag(calls_path, :method => :get) do %>
+ <%= text_field_tag 'name', params[:name], :size => 20 %>
+ <%= hidden_field_tag 'reward_type', params[:reward_type] %>
+ <%= hidden_field_tag 'project_type', params[:project_type] %>
+ <%= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
+ <% end %>
+
+ |
+
+
+
+
+
+
+ |
+
+ <%=link_to l(:field_homepage), home_path %> >
+ <%=link_to l(:label_requirement_enterprise), :controller => 'bids', :action => 'index' %> >
+
+ <%=link_to @bid.name ,bid_path %>
+
+ |
+
+
@@ -66,50 +81,98 @@
<%= image_tag(url_to_avatar(@user), :class => "avatar2") %>
- |
+
-
-
- <%= link_to @bid.name,bid_path %> |
-
- <% if User.current.login? %>
-
- <%= link_to(l(:label_fork_homework_new), fork_path(@bid)) %> |
-
-
- <%= watcher_link(@bid, User.current) %> |
-
- <% end %>
- |
+
+
+
+ <%= link_to @bid.name,bid_path %>
+ |
+
+ <% if User.current.login? %>
+
+
+ <%= link_to(l(:label_fork_homework_new), fork_path(@bid)) %>
+ |
+
+
+
+
+
+ <%= watcher_link(@bid, User.current) %>
+
+ |
+
+ <% end %>
+
+
- <%= l(:label_investor) %><%= link_to(@user, user_path(@user))%> |
+
+ <%= l(:label_investor) %>
+ <%= link_to(@user, user_path(@user))%>
+ |
<% if @bid.reward_type.nil? or @bid.reward_type == 1%>
- <%= l(:label_bids_reward_method) %><%= l(:label_call_bonus) %> <%= l(:label_RMB_sign) %><%= @bid.budget%> |
+
+ <%= l(:label_bids_reward_method) %>
+
+ <%= l(:label_call_bonus) %>
+ <%= l(:label_RMB_sign) %>
+ <%= @bid.budget%>
+
+ |
<% elsif @bid.reward_type == 2%>
- <%= l(:label_bids_reward_method) %><%= @bid.budget%> |
- <% else %>
- <%= l(:label_bids_reward_method) %><%= l(:label_bids_credit) %> <%= @bid.budget%> <%= l(:label_bids_credit_number) %> |
+
+ <%= l(:label_bids_reward_method) %>
+ <%= @bid.budget%>
+ |
+ <% else %>
+
+ <%= l(:label_bids_reward_method) %>
+ <%= l(:label_bids_credit) %>
+ <%= @bid.budget%>
+ <%= l(:label_bids_credit_number) %>
+ |
<% end %>
- <%= l(:label_investment_time_limit) %><%= @bid.deadline%> |
+
+ <%= l(:label_investment_time_limit) %>
+ <%= @bid.deadline%>
+ |
- 被 <%= link_to(Bid.where('parent_id = ?', @bid.id).count, show_course_path(@bid)) %>
- 个高校课程引用为作业! |
+
+ 被
+
+ <%= link_to(Bid.where('parent_id = ?', @bid.id).count, show_course_path(@bid)) %>
+
+ 个高校课程引用为作业!
+
+ |
- 有 <%= link_to(count_bid_project, show_bid_project_path(@bid)) %>
- 个项目正在实现该需求! |
-
- 有 <%= link_to(count_bid_user, show_bid_user_path(@bid)) %>
- 个高校用户正在努力完成此需求! |
+
+
+ 有
+ <%= link_to(count_bid_project, show_bid_project_path(@bid)) %>
+ 个项目正在实现该需求!
+
+ |
+
+
+
+ 有
+ <%= link_to(count_bid_user, show_bid_user_path(@bid)) %>
+ 个高校用户正在努力完成此需求!
+
+ |
+
<%= link_to l(:label_x_followers, :count => @bid.watcher_users.count)+"("+@bid.watcher_users.count.to_s+")", respond_path(@bid) %>
@@ -121,10 +184,12 @@
- <%= l(:label_tag) %>
+
+ <%= l(:label_tag) %>
+
-
+
<%= render :partial => 'tags/tag', :locals => {:obj => @bid, :object_flag => "4"}%>
@@ -144,11 +209,12 @@
|
<% if @bid.watcher_users.size>0 %>
<% for user in @bid.watcher_users%>
-
<%= link_to image_tag(url_to_avatar(user), :class => "avatar", :title => user.name ),user_path(user) %>
<% end %>
<% else %>
- <%= l(:label_project_no_follow) %>
+
+ <%= l(:label_project_no_follow) %>
+
<% end%>
|
@@ -177,10 +243,7 @@
-
-
-
@@ -190,7 +253,6 @@
<%= render_menu :bid_menu %>
<% end %>
-
<%= yield %>
<%= call_hook :view_layouts_base_content %>
@@ -199,12 +261,10 @@
-
<%= l(:label_loading) %>
-
<%= call_hook :view_layouts_base_body_bottom %>
|