<%= 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(is_teacher && @bid.homeworks.count > 0) %>
+ <%= link_to "作业打包下载", zipdown_assort_path(obj_class: @bid.class, obj_id: @bid), class: "button_submit button_submit_font_white", style: "margin: 5px 10px;line-height: 20px;height: 20px;display: inline-block;" if(is_teacher && @bid.homeworks.count > 0) %>
|
@@ -106,7 +106,7 @@
提交文件:
<% if is_evaluation || is_teacher%>
- <%= link_to "打包下载", :controller => "zipdown", :action => "download_user_homework",:homework => homework, :remote => true%>
+ <%= link_to "打包下载", :controller => "zipdown", :action => "download_user_homework",:homework => homework%>
<% else %>
未开启互评功能作业不允许下载
<% end %>
diff --git a/app/views/contestnotifications/show.html.erb b/app/views/contestnotifications/show.html.erb
index eea4cc204..b6ac88008 100644
--- a/app/views/contestnotifications/show.html.erb
+++ b/app/views/contestnotifications/show.html.erb
@@ -69,7 +69,21 @@
- <%= link_to_user(notificationcomment.author) if notificationcomment.respond_to?(:author) %> <%= l(:label_project_newadd) %><%= l(:label_comment_plural) %> |
+
+
+ <%= link_to_user(notificationcomment.author) if notificationcomment.respond_to?(:author) %>
+
+
+ <%= l(:label_project_newadd) %>
+
+ <%= l(:label_comment_plural) %>
+ |
+
+ <% if notificationcomment.author==User.current|| User.current.admin? %>
+ <%= link_to(l(:label_bid_respond_delete), contest_contestnotification_notificationcomment_path(@contest, @contestnotification,notificationcomment),
+ :method => :delete,:confirm => l(:text_are_you_sure), :title => l(:button_delete)) %>
+ <% end %>
+ |
diff --git a/app/views/files/_course_show_all_attachment.html.erb b/app/views/files/_course_show_all_attachment.html.erb
index abece1ae1..76112bc78 100644
--- a/app/views/files/_course_show_all_attachment.html.erb
+++ b/app/views/files/_course_show_all_attachment.html.erb
@@ -21,7 +21,7 @@
<%= sort_header_tag('field_file_dense', :caption => l(:field_file_dense), :default_order => 'desc', :scope => "col", :id => "vzebra-field_file_dense") %>
<%= sort_header_tag('downloads', :caption => l(:field_downloads), :default_order => 'desc', :scope => "col", :id => "vzebra-action") %>
<%= sort_header_tag('operation', :caption => "", :scope => "col", :id => "vzebra-children") %>
-
+
|
diff --git a/app/views/files/_show_all_attachment.html.erb b/app/views/files/_show_all_attachment.html.erb
index 8c624d176..838153c78 100644
--- a/app/views/files/_show_all_attachment.html.erb
+++ b/app/views/files/_show_all_attachment.html.erb
@@ -21,7 +21,7 @@
<%= sort_header_tag('field_file_dense', :caption => l(:field_file_dense), :default_order => 'desc', :scope => "col", :id => "vzebra-field_file_dense") %>
<%= sort_header_tag('downloads', :caption => l(:field_downloads), :default_order => 'desc', :scope => "col", :id => "vzebra-action") %>
<%= sort_header_tag('operation', :caption => "", :scope => "col", :id => "vzebra-children") %>
-
+
diff --git a/app/views/messages/_course_show.html.erb b/app/views/messages/_course_show.html.erb
index 243406a3c..4db903b88 100644
--- a/app/views/messages/_course_show.html.erb
+++ b/app/views/messages/_course_show.html.erb
@@ -104,6 +104,8 @@
<%= textilizable(@topic, :content) %>
<%= link_to_attachments @topic, :author => false %>
+ <%# options = {:author => true, :deletable => @topic.author.eql?(User.current)} %>
+ <%#= render :partial => 'attachments/app_link', :locals => {:attachments => @topi.attachments, :options => options} %>
<%= authoring @topic.created_on, @topic.author %>
diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb
index 3ed947cbf..6a937b376 100644
--- a/app/views/my/account.html.erb
+++ b/app/views/my/account.html.erb
@@ -82,7 +82,7 @@
- 企业名<%= text_field_tag :enterprise_name, @user.firstname %>
+ <%= l(:label_company_name)%><%= text_field_tag :enterprise_name, @user.firstname %>
diff --git a/app/views/softapplications/_form.html.erb b/app/views/softapplications/_form.html.erb
index 17cb20598..4e38981f8 100644
--- a/app/views/softapplications/_form.html.erb
+++ b/app/views/softapplications/_form.html.erb
@@ -113,7 +113,7 @@
<%= render :partial => 'attachments/form' %>
1、<%=l(:label_upload_softapplication_packets_mustpacketed)%> 2、<%=l(:label_upload_softapplication_photo_condition)%>
- <%=l(:label_updated_caution)%>
+
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index c4e0ef98d..20f64dc3f 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -43,289 +43,295 @@
<% (Rails.logger.error "[Error] =========================================================> NameError: uninitialized constant " + e.act_type.to_s; next;) if e.act_type.safe_constantize.nil? %>
<% act = e.act %>
<% unless act.nil? %>
-
-
- <%= image_tag(url_to_avatar(e.user), :class => "avatar") %> |
-
-
- <% case e.act_type %>
- <% when 'JournalsForMessage' %>
- <% if User.current.login == e.user.try(:login) %>
- <%# if e.user_id == act.jour.id %>
+ <% if e.act_type == 'JournalsForMessage' || e.act_type == 'Bid' || e.act_type == 'Journal'|| e.act_type == 'Changeset' || e.act_type == 'Message' || e.act_type == 'Principal' || e.act_type == 'News' || e.act_type == 'Issue' || e.act_type == 'Contest'%>
+
-
- <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %> <%= l(:label_have_feedback) %>
- <%= link_to("#{e.act.user.name}", user_path(e.act.user.id)) %><%= l(:label_of_feedback) + l(:label_layouts_feedback) %>
- |
-
- <%# else %>
-
- <%# end %>
- <% else %>
-
-
- <%= link_to("#{e.user.name}", user_path(e.user_id)) %> <%= l(:label_have_feedback) %><%=
- link_to("#{e.act.user.name}", user_path(e.act.user.id)) %><%= l(:label_of_feedback) + l(:label_layouts_feedback) %>
- |
-
- <% end %>
-
-
- <%= textilizable act.notes %>
+ | <%= image_tag(url_to_avatar(e.user), :class => "avatar") %> |
+
+
+ <% case e.act_type %>
+ <% when 'JournalsForMessage' %>
+ <% if User.current.login == e.user.try(:login) %>
+ <%# if e.user_id == act.jour.id %>
+
+
+ <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %> <%= l(:label_have_feedback) %>
+ <%= link_to("#{e.act.user.name}", user_path(e.act.user.id)) %><%= l(:label_of_feedback) + l(:label_layouts_feedback) %>
+ |
+
+ <%# else %>
+
+ <%# end %>
+ <% else %>
+
+
+ <%= link_to("#{e.user.name}", user_path(e.user_id)) %> <%= l(:label_have_feedback) %><%=
+ link_to("#{e.act.user.name}", user_path(e.act.user.id)) %><%= l(:label_of_feedback) + l(:label_layouts_feedback) %>
+ |
+
+ <% end %>
+
+
+ <%= textilizable act.notes %>
- <%= link_to(l(:label_goto), user_newfeedback_user_path(e.user_id)) %>
-
- |
-
+ <%= link_to(l(:label_goto), user_newfeedback_user_path(e.user_id)) %>
+
+
+
-
-
-
- <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
-
-
- |
-
- <% when 'Bid' %>
-
- <% if act.reward_type == 3 && @show_course == 1%>
- <% if e.user == User.current %>
-
- <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %><%= l(:label_i_new_activity) %> <%= link_to format_activity_title("#{l(:label_active_homework)}##{act.id}:#{act.name}"), respond_path(e.act_id) %>
+ |
+
+
+ <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
+
+
|
- <% else %>
-
- <%= link_to(h(e.user), user_path(e.user_id)) %> <%= l(:label_new_activity) %> <%= link_to format_activity_title("#{l(:label_active_homework)}##{act.id}:#{act.name}"), respond_path(e.act_id) %>
+ |
+ <% when 'Bid' %>
+
+ <% if act.reward_type == 3 && @show_course == 1%>
+ <% if e.user == User.current %>
+
+ <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %><%= l(:label_i_new_activity) %> <%= link_to format_activity_title("#{l(:label_active_homework)}##{act.id}:#{act.name}"), respond_path(e.act_id) %>
+ |
+ <% else %>
+
+ <%= link_to(h(e.user), user_path(e.user_id)) %> <%= l(:label_new_activity) %> <%= link_to format_activity_title("#{l(:label_active_homework)}##{act.id}:#{act.name}"), respond_path(e.act_id) %>
+ |
+ <% end %>
+ <% else %>
+ <% if e.user == User.current %>
+
+ <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %><%= l(:label_i_new_activity) %> <%= link_to format_activity_title("#{l(:label_active_call)}##{act.id}:#{act.name}"), respond_path(e.act_id) %>
+ |
+ <% else %>
+
+ <%= link_to(h(e.user), user_path(e.user_id)) %> <%= l(:label_new_activity) %> <%= link_to format_activity_title("#{l(:label_active_call)}##{act.id}:#{act.name}"), respond_path(e.act_id) %>
+ |
+ <% end %>
+ <% end %>
+
+
+
+ <%= act.description.html_safe %> |
+
+
+
+
+ <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
+
+
|
- <% end %>
- <% else %>
- <% if e.user == User.current %>
-
- <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %><%= l(:label_i_new_activity) %> <%= link_to format_activity_title("#{l(:label_active_call)}##{act.id}:#{act.name}"), respond_path(e.act_id) %>
+ |
+ <% when 'Journal' %>
+
+ <% if e.user == User.current %>
+
+ <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %> <%= l(:label_i_new_activity) %> <%= link_to(l(:label_activity_project)+act.issue.project.name, project_path(act.issue.project.identifier)) %> <%= link_to format_activity_title("#{act.issue.tracker} ##{act.issue.id}: #{act.issue.subject}"), {:controller => 'issues', :action => 'show', :id => act.issue.id, :anchor => "change-#{act.id}"} %>
+ |
+ <% else %>
+
+ <%= link_to(h(e.user), user_path(e.user_id)) %> <%= l(:label_new_activity) %> <%= link_to(l(:label_activity_project)+act.issue.project.name, project_path(act.issue.project.identifier)) %> <%= link_to format_activity_title("#{act.issue.tracker} ##{act.issue.id}: #{act.issue.subject}"), {:controller => 'issues', :action => 'show', :id => act.issue.id, :anchor => "change-#{act.id}"} %>
+ |
+ <% end %>
+
+
+ <% if act.notes.nil? %>
+ <% desStr = '' %>
+ <% else %>
+ <% desStr=act.notes.html_safe %>
+ <% end %>
+ <%= desStr %>
|
- <% else %>
-
- <%= link_to(h(e.user), user_path(e.user_id)) %> <%= l(:label_new_activity) %> <%= link_to format_activity_title("#{l(:label_active_call)}##{act.id}:#{act.name}"), respond_path(e.act_id) %>
+ |
+
+
+
+ <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
+
+
|
- <% end %>
- <% end %>
-
-
-
- <%= act.description.html_safe %> |
-
-
-
-
- <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
-
-
- |
-
- <% when 'Journal' %>
-
- <% if e.user == User.current %>
-
- <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %> <%= l(:label_i_new_activity) %> <%= link_to(l(:label_activity_project)+act.issue.project.name, project_path(act.issue.project.identifier)) %> <%= link_to format_activity_title("#{act.issue.tracker} ##{act.issue.id}: #{act.issue.subject}"), {:controller => 'issues', :action => 'show', :id => act.issue.id, :anchor => "change-#{act.id}"} %>
- |
- <% else %>
-
- <%= link_to(h(e.user), user_path(e.user_id)) %> <%= l(:label_new_activity) %> <%= link_to(l(:label_activity_project)+act.issue.project.name, project_path(act.issue.project.identifier)) %> <%= link_to format_activity_title("#{act.issue.tracker} ##{act.issue.id}: #{act.issue.subject}"), {:controller => 'issues', :action => 'show', :id => act.issue.id, :anchor => "change-#{act.id}"} %>
- |
- <% end %>
-
-
- <% if act.notes.nil? %>
- <% desStr = '' %>
- <% else %>
- <% desStr=act.notes.html_safe %>
- <% end %>
- <%= desStr %>
- |
-
-
-
-
- <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
-
-
- |
-
- <% when 'Changeset' %>
-
- <% if e.user == User.current %>
-
- <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %> <%= l(:label_i_new_activity) %> <%= link_to format_activity_title(act.title), {:controller => 'repositories', :action => 'revision', :id => act.repository.project, :repository_id => act.repository.identifier_param, :rev => act.identifier} %>
- |
- <% else %>
-
- <%= link_to(h(e.user), user_path(e.user_id)) %> <%= l(:label_new_activity) %> <%= link_to format_activity_title(act.title), {:controller => 'repositories', :action => 'revision', :id => act.repository.project, :repository_id => act.repository.identifier_param, :rev => act.identifier} %>
- |
- <% end %>
-
-
-
- <%= act.long_comments.html_safe %> |
-
-
-
-
- <%= format_time(e.act.committed_on) %>
-
-
- |
-
- <% when 'Message' %>
-
- <% if e.user == User.current %>
-
- <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %> <%= l(:label_i_new_activity) %> <%= link_to format_activity_title("#{act.board.name}: #{act.subject}"), {:controller => 'messages', :action => 'show', :board_id => act.board_id}.merge(act.parent_id.nil? ? {:id => act.id} : {:id => act.parent_id, :r => act.id, :anchor => "message-#{act.id}"}) %>
- |
- <% else %>
-
- <%= link_to(h(e.user), user_path(e.user_id)) %> <%= l(:label_new_activity) %> <%= link_to format_activity_title("#{act.board.name}: #{act.subject}"), {:controller => 'messages', :action => 'show', :board_id => act.board_id}.merge(act.parent_id.nil? ? {:id => act.id} : {:id => act.parent_id, :r => act.id, :anchor => "message-#{act.id}"}) %>
- |
- <% end %>
-
-
-
- <%= h act.content.truncate(240, omission: '...') %>
- |
-
-
-
-
- <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
-
-
- |
-
- <% when 'Principal' %>
-
- <% if e.user == User.current %>
-
- <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %> <%= l(:label_new_user) %>
- |
- <% else %>
-
- <%= link_to(h(e.user), user_path(e.user_id)) %> <%= l(:label_new_user) %>
- |
- <% end %>
-
-
- |
-
-
-
-
- <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
-
-
- |
-
- <% when 'News' %>
-
- <% if e.user == User.current %>
-
- <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %> <%= l(:label_i_new_activity) %> <%= link_to format_activity_title("#{l(:label_news)}: #{act.title}"), {:controller => 'news', :action => 'show', :id => act.id} %>
- |
- <% else %>
-
- <%= link_to(h(e.user), user_path(e.user_id)) %> <%= l(:label_new_activity) %> <%= link_to format_activity_title("#{l(:label_news)}: #{act.title}"), {:controller => 'news', :action => 'show', :id => act.id} %>
- |
- <% end %>
-
-
-
- <%= act.description.html_safe %> |
-
-
-
-
- <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
-
-
- |
-
- <% when 'Issue' %>
-
- <% if e.user == User.current %>
-
-
- <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %>
-
-
- <%= l(:label_i_new_activity) %>
-
- <%= link_to format_activity_title("#{act.source_from} (#{act.status}): #{act.tracker.name} #{act.subject}"), {:controller => 'issues', :action => 'show', :id => act.id} %>
- |
- <% else %>
-
-
- <%= link_to(h(e.user), user_path(e.user_id)) %>
-
-
- <%= l(:label_new_activity) %>
-
- <%= link_to format_activity_title("#{act.source_from} (#{act.status}): #{act.tracker.name} #{act.subject}"), {:controller => 'issues', :action => 'show', :id => act.id} %>
- |
- <% end %>
-
-
-
-
-
- <%= textilizable act, :description %>
-
-
-
- |
-
-
-
-
- <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
-
-
- |
-
- <% when 'Contest' %>
-
- <% if e.user == User.current && @show_contest == 1%>
-
- <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %> <%= l(:label_i_new_activity) %> <%= link_to format_activity_title("#{l(:label_contest)}: #{act.name}"), {:controller => 'contests', :action => 'show_contest', :id => act.id} %>
- |
- <% else %>
-
- <%= link_to(h(e.user), user_path(e.user_id)) %> <%= l(:label_new_activity) %> <%= link_to format_activity_title("#{l(:label_contest)}: #{act.name}"), {:controller => 'contests', :action => 'show_contest', :id => act.id} %>
- |
- <% end %>
-
-
- <%= h act.description %>
- |
-
-
-
-
- <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
-
- |
- <% else %>
- <% f=1 %>
- <% end %>
-
- |
-
-
+
+ <% when 'Changeset' %>
+
+ <% if e.user == User.current %>
+
+ <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %> <%= l(:label_i_new_activity) %> <%= link_to format_activity_title(act.title), {:controller => 'repositories', :action => 'revision', :id => act.repository.project, :repository_id => act.repository.identifier_param, :rev => act.identifier} %>
+ |
+ <% else %>
+
+ <%= link_to(h(e.user), user_path(e.user_id)) %> <%= l(:label_new_activity) %> <%= link_to format_activity_title(act.title), {:controller => 'repositories', :action => 'revision', :id => act.repository.project, :repository_id => act.repository.identifier_param, :rev => act.identifier} %>
+ |
+ <% end %>
+
+
+
+ <%= act.long_comments.html_safe %> |
+
+
+
+
+ <%= format_time(e.act.committed_on) %>
+
+
+ |
+
+ <% when 'Message' %>
+
+ <% if e.user == User.current %>
+
+ <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %> <%= l(:label_i_new_activity) %> <%= link_to format_activity_title("#{act.board.name}: #{act.subject}"), {:controller => 'messages', :action => 'show', :board_id => act.board_id}.merge(act.parent_id.nil? ? {:id => act.id} : {:id => act.parent_id, :r => act.id, :anchor => "message-#{act.id}"}) %>
+ |
+ <% else %>
+
+ <%= link_to(h(e.user), user_path(e.user_id)) %> <%= l(:label_new_activity) %> <%= link_to format_activity_title("#{act.board.name}: #{act.subject}"), {:controller => 'messages', :action => 'show', :board_id => act.board_id}.merge(act.parent_id.nil? ? {:id => act.id} : {:id => act.parent_id, :r => act.id, :anchor => "message-#{act.id}"}) %>
+ |
+ <% end %>
+
+
+
+ <%= h act.content.truncate(240, omission: '...') %>
+ |
+
+
+
+
+ <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
+
+
+ |
+
+ <% when 'Principal' %>
+
+ <% if e.user == User.current %>
+
+ <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %> <%= l(:label_new_user) %>
+ |
+ <% else %>
+
+ <%= link_to(h(e.user), user_path(e.user_id)) %> <%= l(:label_new_user) %>
+ |
+ <% end %>
+
+
+ |
+
+
+
+
+ <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
+
+
+ |
+
+ <% when 'News' %>
+
+ <% if e.user == User.current %>
+
+ <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %> <%= l(:label_i_new_activity) %> <%= link_to format_activity_title("#{l(:label_news)}: #{act.title}"), {:controller => 'news', :action => 'show', :id => act.id} %>
+ |
+ <% else %>
+
+ <%= link_to(h(e.user), user_path(e.user_id)) %> <%= l(:label_new_activity) %> <%= link_to format_activity_title("#{l(:label_news)}: #{act.title}"), {:controller => 'news', :action => 'show', :id => act.id} %>
+ |
+ <% end %>
+
+
+
+ <%= act.description.html_safe %> |
+
+
+
+
+ <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
+
+
+ |
+
+ <% when 'Issue' %>
+
+ <% if e.user == User.current %>
+
+
+ <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %>
+
+
+ <%= l(:label_i_new_activity) %>
+
+ <%= link_to format_activity_title("#{act.source_from} (#{act.status}): #{act.tracker.name} #{act.subject}"), {:controller => 'issues', :action => 'show', :id => act.id} %>
+ |
+ <% else %>
+
+
+ <%= link_to(h(e.user), user_path(e.user_id)) %>
+
+
+ <%= l(:label_new_activity) %>
+
+ <%= link_to format_activity_title("#{act.source_from} (#{act.status}): #{act.tracker.name} #{act.subject}"), {:controller => 'issues', :action => 'show', :id => act.id} %>
+ |
+ <% end %>
+
+
+
+
+ <%= textilizable act, :description %>
+
+ |
+
+
+
+
+ <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
+
+
+ |
+
+ <% when 'Contest' %>
+
+ <% if e.user == User.current && @show_contest == 1%>
+
+ <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %> <%= l(:label_i_new_activity) %> <%= link_to format_activity_title("#{l(:label_contest)}: #{act.name}"), {:controller => 'contests', :action => 'show_contest', :id => act.id} %>
+ |
+ <% else %>
+
+ <%= link_to(h(e.user), user_path(e.user_id)) %> <%= l(:label_new_activity) %> <%= link_to format_activity_title("#{l(:label_contest)}: #{act.name}"), {:controller => 'contests', :action => 'show_contest', :id => act.id} %>
+ |
+ <% end %>
+
+
+ <%= h act.description %>
+ |
+
+
+
+
+ <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
+
+ |
+ <% else %>
+ <%# f=1 %>
+ <% end %>
+
+ |
+
+
+
+ <% end %>
<% end %>
<% end %>
diff --git a/app/views/welcome/course.html.erb b/app/views/welcome/course.html.erb
index 63fdfc078..9d5037107 100644
--- a/app/views/welcome/course.html.erb
+++ b/app/views/welcome/course.html.erb
@@ -169,13 +169,15 @@
(<%= link_to "#{files_count}份", course_files_path(course) %>资料)
-
- <% if !course_endTime_timeout?(course) %>
+
<%end%>
<% end; reset_cycle %>
diff --git a/app/views/wiki/edit.html.erb b/app/views/wiki/edit.html.erb
index 14b863f53..85b964a9b 100644
--- a/app/views/wiki/edit.html.erb
+++ b/app/views/wiki/edit.html.erb
@@ -16,6 +16,9 @@
<%= text_area_tag 'content[text]', @text, :cols => 100, :rows => 25,
:class => 'wiki-edit', :accesskey => accesskey(:edit) %>
+
+
<% if @page.safe_attribute_names.include?('parent_id') && @wiki.pages.any? %>
<%= fields_for @page do |fp| %>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index e1b93f649..8e3b8d0f0 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -229,7 +229,7 @@ en:
field_description: Description
field_summary: Summary
field_is_required: Required
- field_firstname: First name
+ field_firstname: Name
field_lastname: Last name
field_mail: Email
field_job_category: Job category # added by bai
@@ -1707,7 +1707,7 @@ en:
label_upload_softapplication_packets: Upload-apppacket
label_upload_softapplication_photo: Upload-appphoto
label_upload_softapplication_packets_mustpacketed: Works code and ralated-document must be packaged before upload.
- label_upload_softapplication_photo_condition: Need upload 0~4 works screenshot, each is less than 5M, photo format such as gif,jpg,png etc.
+ label_upload_softapplication_photo_condition: The best works. 0~4 (redundant pictures would not show page), each is less than 5M, photo format such as gif,jpg,png etc.
label_updated_caution: Note:if you edit the work, the uploaded screenshot and package will be deleted, please re-load!
label_softapplication_name: App-name
label_work_name: Work name
@@ -1799,3 +1799,6 @@ en:
# ajax异步验证
modal_valid_passing: can be used.
+
+ label_company_name: Company Name
+ notice_account_invalid_creditentials_new: You have not to the mailbox activation
diff --git a/config/locales/zh.yml b/config/locales/zh.yml
index f792e3b66..2b8b10380 100644
--- a/config/locales/zh.yml
+++ b/config/locales/zh.yml
@@ -1975,7 +1975,7 @@ zh:
label_upload_softapplication_packets: 上传应用软件包
label_upload_softapplication_photo: 上传产品截图
label_upload_softapplication_packets_mustpacketed: 作品相关代码及相关说明文件必须打包后以压缩包的形式上传,便于上传和下载 ;
- label_upload_softapplication_photo_condition: 作品截图需上传0~4张;格式为gif/jpg/png, 每张小于5M
+ label_upload_softapplication_photo_condition: 作品截图最好0~4张(多余图片不会再展示页面上显示);格式为gif/jpg/png, 每张小于5M
label_updated_caution: 注意:若编辑参赛作品,则之前上传的软件包和截图都将被删除,请重新上传!
label_softapplication_name: 应用名称
label_work_name: 作品名称
@@ -2016,6 +2016,7 @@ zh:
label_contest_work_list: 参赛作品列表
label_attending_contest: 我要参赛
label_contest_notification: 竞赛通知
+ label_company_name: 企业名
label_coursefile_sharingarea: 课程资源共享区
label_sort_by_activity: 按动态数排序
diff --git a/config/routes.rb b/config/routes.rb
index af70b76da..1e75ac23a 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -83,6 +83,10 @@ RedmineApp::Application.routes.draw do
end
end
+ #resources :notificationcomments do
+ #
+ #end
+
#resources :contestnotifications, :only => [:index, :show, :edit, :update, :destroy]
# match '/contestnotifications/:id/notificationcomments', :to => 'notificationcomments#create', :via => :post
# match '/contestnotifications/:id/notificationcomments/:notificationcomment_id', :to => 'notificationcomments#destroy', :via => :delete
@@ -91,7 +95,9 @@ RedmineApp::Application.routes.draw do
resources :contests, only: [:index] do
resources :contestnotifications do
# get 'preview', on: :collection
- resources :notificationcomments
+ resources :notificationcomments do
+
+ end
end
collection do
diff --git a/db/migrate/20140801034242_change_boards_name.rb b/db/migrate/20140801034242_change_boards_name.rb
new file mode 100644
index 000000000..3f4593710
--- /dev/null
+++ b/db/migrate/20140801034242_change_boards_name.rb
@@ -0,0 +1,20 @@
+# -*coding:utf-8 -*-
+class ChangeBoardsName < ActiveRecord::Migration
+ def up
+ boards = Board.where("project_id <> -1 and name like '%课程讨论区%'")
+ boards.each do |board|
+ board.name = "项目讨论区"
+ board.description = "项目讨论区"
+ board.save(:validate => false)
+ end
+ end
+
+ def down
+ boards = Board.where("project_id <> -1 and name like '%项目讨论区%'")
+ boards.each do |board|
+ board.name = " 课程讨论区"
+ board.description = " 课程讨论区"
+ board.save(:validate => false)
+ end
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index a721633fd..292ca9d05 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20140730024419) do
+ActiveRecord::Schema.define(:version => 20140801034242) do
create_table "activities", :force => true do |t|
t.integer "act_id", :null => false
| | |