<%= render :partial => 'attachments/form', :locals => {:container => @homework} %>
+
<%#= render :partial => 'homework_form', :locals => { :f => f } %>
<%= render :partial => 'homework_form', :locals => { :f => f } %>
-
+
<% end %>
\ No newline at end of file
diff --git a/app/views/boards/_course_show.html.erb b/app/views/boards/_course_show.html.erb
index 35e066d45..26576195d 100644
--- a/app/views/boards/_course_show.html.erb
+++ b/app/views/boards/_course_show.html.erb
@@ -17,7 +17,7 @@
<%= form_for @message, :url => new_board_message_path(@board), :html => {:multipart => true, :id => 'message-form'} do |f| %>
<%= render :partial => 'messages/form', :locals => {:f => f} %>
<%= submit_tag l(:button_create), :class => "whiteButton m3p10 h30" %>
- <%= preview_link(preview_board_message_path(@board), 'message-form' ,target='preview',{:class => 'whiteButton m3p10'} )%> |
+ <%#= preview_link(preview_board_message_path(@board), 'message-form' ,target='preview',{:class => 'whiteButton m3p10'} )%>
<%= link_to l(:button_cancel), "#", :onclick => '$("#add-message").hide(); return false;' ,:class => 'whiteButton m3p10' %>
<% end %>
<%= submit_tag l(:button_create), :class => "whiteButton m3p10 h30" %>
- <%= preview_link(preview_board_message_path(@board), 'message-form', target='preview', {:class => 'whiteButton m3p10'}) %>
- |
+ <%#= preview_link(preview_board_message_path(@board), 'message-form', target='preview', {:class => 'whiteButton m3p10'}) %>
+
<%= link_to l(:button_cancel), "#", :onclick => '$("#add-message").hide(); return false;', :class => 'whiteButton m3p10' %>
<% end %>
<%= f.text_field(:deadline, :required => true, :size => 60, :style => "width:150px;",:value => "#{time}", :onchange => "regexDeadLine();") %>
+
<%= f.text_field(:deadline, :required => true, :size => 60, :style => "width:150px;",:value => "#{time}", :onchange => "regexDeadLine();", :readonly => true) %>
<%= calendar_for('bid_deadline')%>
diff --git a/app/views/courses/finishcourse.js.erb b/app/views/courses/finishcourse.js.erb
index 75c2b774d..46bc57e32 100644
--- a/app/views/courses/finishcourse.js.erb
+++ b/app/views/courses/finishcourse.js.erb
@@ -1,12 +1,12 @@
<% if @save_flag %>
-<% if Rails.env.development? %>
-console.debug('课程修改成功:结束时间改为<%=Course.find_by_extra(@course.extra).try(:endup_time)%>');
-<% end %>
-$('#content-title-top-div').html("<%= j(render partial: 'users/my_course_ex', :locals => {:memberships => @memberships,:user=>@user,
-:memberships_doing=>@memberships_doing,:memberships_done=>@memberships_done} )%>")
-$('#finish_course_<%=@course.id%>').replaceWith("<%= j(render partial: 'courses/set_course_time', :locals => {:course => @course} )%>")
+ <% if Rails.env.development? %>
+ console.debug('课程修改成功:结束时间改为<%=Course.find_by_extra(@course.extra).try(:endup_time)%>');
+ <% end %>
+ $('#content-title-top-div').html("<%= j(render partial: 'users/my_course_ex', :locals => {:memberships => @memberships,:user=>@user,
+ :memberships_doing=>@memberships_doing,:memberships_done=>@memberships_done} )%>");
+ $('#finish_course_<%=@course.id%>').replaceWith("<%= j(render partial: 'courses/set_course_time', :locals => {:course => @course} )%>");
<% else %>
-alert('权限不足,设置失败,请在论坛提交问题,等待管理员处理。');
+ alert('权限不足,设置失败,请在论坛提交问题,等待管理员处理。');
<% end %>
diff --git a/app/views/courses/index.html.erb b/app/views/courses/index.html.erb
index 24eefd4cb..907be64a4 100644
--- a/app/views/courses/index.html.erb
+++ b/app/views/courses/index.html.erb
@@ -56,9 +56,9 @@
<% end %>
-<% other_formats_links do |f| %>
- <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
-<% end %>
+<%# other_formats_links do |f| %>
+ <%#= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
+<%# end %>
<% content_for :sidebar do %>
<%= form_tag({}, :method => :get) do %>
diff --git a/app/views/courses/search.html.erb b/app/views/courses/search.html.erb
index 25b45e0db..e25cd5349 100644
--- a/app/views/courses/search.html.erb
+++ b/app/views/courses/search.html.erb
@@ -45,13 +45,13 @@
<% if User.current.logged? %>
<% unless replying %>
-
+
+
+
<%= f.text_field :subject, :size => 60, :style => "width: 99%;", :id => "message_subject", :maxlength => 254 %>
<% else %>
-
- <%= f.text_field :subject, :size => 60, :style => "width: 99%;", :id => "message_subject", :readonly => true %>
+
+
+
+ <%= f.text_field :subject, :size => 60, :style => "width: 99%;", :id => "message_subject", :readonly => true %>
<% end %>
@@ -31,7 +41,8 @@
<%= label_tag "message_content", l(:description_message_content), :class => "hidden-for-sighted" %>
- <%= f.text_area :content, :cols => 80, :rows => 13, :class => 'wiki-edit', :id => 'message_content' %>
+ <%= f.text_area :content, :cols => 80, :rows => 13, :class => 'wiki-edit', :id => 'message_content', :onblur => "regexContent();" %>
+
diff --git a/app/views/news/_course_news.html.erb b/app/views/news/_course_news.html.erb
index ea94244d5..f66def486 100644
--- a/app/views/news/_course_news.html.erb
+++ b/app/views/news/_course_news.html.erb
@@ -74,9 +74,9 @@
<%= labelled_form_for @news, :url => course_news_index_path(@course),
:html => {:id => 'news-form', :multipart => true} do |f| %>
<%= render :partial => 'news/course_form', :locals => {:f => f, :is_new => true} %>
- <%= link_to l(:button_create), "#", :onclick => 'submitNews();', :onmouseover => 'submitFocus(this);', :class => 'whiteButton m3p10' %>|
- <%= preview_link preview_news_path(:course_id => @course), 'news-form', target='preview', {:class => 'whiteButton m3p10'} %>
- |
+ <%= link_to l(:button_create), "#", :onclick => 'submitNews();', :onmouseover => 'submitFocus(this);', :class => 'whiteButton m3p10' %>
+ <%#= preview_link preview_news_path, 'news-form', target='preview', {:class => 'whiteButton m3p10'} %>
+
<%= link_to l(:button_cancel), "#", :onclick => '$("#add-news").hide()', :class => 'whiteButton m3p10' %>
<% end if @course %>
diff --git a/app/views/news/_course_show.html.erb b/app/views/news/_course_show.html.erb
index 6e03e8e34..6f13c28c7 100644
--- a/app/views/news/_course_show.html.erb
+++ b/app/views/news/_course_show.html.erb
@@ -70,7 +70,7 @@
<%= render :partial => 'course_form', :locals => { :f => f, :is_new => false } %>
<%#= submit_tag l(:button_save) %>
<%= link_to l(:button_save), "#", :onclick => 'submitNews();',:onmouseover => 'this.focus()',:class => 'whiteButton m3p10' %>
- <%= preview_link preview_news_path(:course_id => @course, :id => @news), 'news-form',target='preview',{:class => 'whiteButton m3p10'} %> |
+ <%#= preview_link preview_news_path(:course_id => @course, :id => @news), 'news-form',target='preview',{:class => 'whiteButton m3p10'} %>
<%= link_to l(:button_cancel), "#", :onclick => '$("#edit-news").hide(); return false;',:class => 'whiteButton m3p10' %>
<% end %>
diff --git a/app/views/news/_project_news.html.erb b/app/views/news/_project_news.html.erb
index 75f33d1d3..79217f1fe 100644
--- a/app/views/news/_project_news.html.erb
+++ b/app/views/news/_project_news.html.erb
@@ -84,8 +84,8 @@
<%#= submit_tag l(:button_create), :class => 'whiteButton m3p10 h30', :name => nil %>
<%= link_to l(:button_create), "#", :onclick => 'submitNews();',:onmouseover => 'submitFocus(this);', :class => 'whiteButton m3p10' %>
|
- <%= preview_link preview_news_path(:project_id => @project), 'news-form', target='preview', {:class => 'whiteButton m3p10'} %>
- |
+ <%#= preview_link preview_news_path(:project_id => @project), 'news-form', target='preview', {:class => 'whiteButton m3p10'} %>
+
<%= link_to l(:button_cancel), "#", :onclick => '$("#add-news").hide()', :class => 'whiteButton m3p10' %>
<% end if @project %>
diff --git a/app/views/news/_project_show.html.erb b/app/views/news/_project_show.html.erb
index 665094cc8..7b4c209b0 100644
--- a/app/views/news/_project_show.html.erb
+++ b/app/views/news/_project_show.html.erb
@@ -70,7 +70,7 @@
<%= render :partial => 'form', :locals => { :f => f } %>
<%#= submit_tag l(:button_save) %>
<%= link_to l(:button_save), "#", :onclick => 'submitNews();',:onmouseover => 'this.focus()',:class => 'whiteButton m3p10' %>
- <%= preview_link preview_news_path(:project_id => @project, :id => @news), 'news-form',target='preview',{:class => 'whiteButton m3p10'} %> |
+ <%#= preview_link preview_news_path(:project_id => @project, :id => @news), 'news-form',target='preview',{:class => 'whiteButton m3p10'} %>
<%= link_to l(:button_cancel), "#", :onclick => '$("#edit-news").hide(); return false;',:class => 'whiteButton m3p10' %>
<% end %>
diff --git a/app/views/news/edit.html.erb b/app/views/news/edit.html.erb
index e5e5221b9..3225f8031 100644
--- a/app/views/news/edit.html.erb
+++ b/app/views/news/edit.html.erb
@@ -3,7 +3,7 @@
<%= labelled_form_for @news, :html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %>
<%= submit_tag l(:button_save) %>
-<%= preview_link preview_news_path(:project_id => @project, :id => @news), 'news-form' %>
+<%#= preview_link preview_news_path(:project_id => @project, :id => @news), 'news-form' %>
<% end %>
diff --git a/app/views/news/new.html.erb b/app/views/news/new.html.erb
index 836d3b6ed..03c1d3ee7 100644
--- a/app/views/news/new.html.erb
+++ b/app/views/news/new.html.erb
@@ -4,14 +4,14 @@
:html => {:id => 'news-form', :multipart => true} do |f| %>
<%= render :partial => 'news/form', :locals => {:f => f} %>
<%= submit_tag l(:button_create), :class => "whiteButton m3p10 h30" %>
- <%= preview_link preview_news_path(:project_id => @project), 'news-form', target='preview', {:class => 'whiteButton m3p10'} %>
+ <%#= preview_link preview_news_path(:project_id => @project), 'news-form', target='preview', {:class => 'whiteButton m3p10'} %>
<% end %>
<% elsif @course %>
<%= labelled_form_for @news, :url => course_news_index_path(@course),
:html => {:id => 'news-form', :multipart => true} do |f| %>
<%= render :partial => 'news/form', :locals => {:f => f} %>
<%= submit_tag l(:button_create), :class => "whiteButton m3p10 h30" %>
- <%= preview_link preview_news_path(:course_id => @course), 'news-form', target='preview', {:class => 'whiteButton m3p10'} %>
+ <%#= preview_link preview_news_path(:course_id => @course), 'news-form', target='preview', {:class => 'whiteButton m3p10'} %>
<% end %>
<% end %>
diff --git a/app/views/projects/_new_homework.html.erb b/app/views/projects/_new_homework.html.erb
index 1da188f3b..64a76aa0f 100644
--- a/app/views/projects/_new_homework.html.erb
+++ b/app/views/projects/_new_homework.html.erb
@@ -68,7 +68,7 @@ border-top: 1px solid #acaeb1; border-bottom: 1px solid #acaeb1; margin-top: 30p
|
- <%= text_field_tag 'bid_deadline', "#{l(:label_deadline)}", :class => 'noline', :required => true,
+ | <%= text_field_tag 'bid_deadline', "#{l(:label_deadline)}", :class => 'noline', :readonly => true, :required => true,
:onfocus => "clearInfo('bid_deadline', '#{l(:label_deadline)}')", :onblur => "showInfo('bid_deadline', '#{l(:label_deadline)}')"%>
<%= calendar_for('bid_deadline')%> |
diff --git a/app/views/timelog/_form.html.erb b/app/views/timelog/_form.html.erb
index 3256feaac..a3c0fa81b 100644
--- a/app/views/timelog/_form.html.erb
+++ b/app/views/timelog/_form.html.erb
@@ -13,7 +13,7 @@
<%= f.text_field :issue_id, :size => 6 %>
<%= h("#{@time_entry.issue.tracker.name} ##{@time_entry.issue.id}: #{@time_entry.issue.subject}") if @time_entry.issue %>
-
<%= f.text_field :spent_on, :size => 10, :required => true %><%= calendar_for('time_entry_spent_on') %>
+
<%= f.text_field :spent_on, :size => 10, :required => true, :readonly => true %><%= calendar_for('time_entry_spent_on') %>
<%= f.text_field :hours, :size => 6, :required => true %>
<%= f.text_field :comments, :size => 100, :maxlength => 255 %>
<%= f.select :activity_id, activity_collection_for_select_options(@time_entry), :required => true %>
diff --git a/app/views/timelog/bulk_edit.html.erb b/app/views/timelog/bulk_edit.html.erb
index caabc18a2..a7ccc36fc 100644
--- a/app/views/timelog/bulk_edit.html.erb
+++ b/app/views/timelog/bulk_edit.html.erb
@@ -18,7 +18,7 @@
- <%= text_field :time_entry, :spent_on, :size => 10 %><%= calendar_for('time_entry_spent_on') %>
+ <%= text_field :time_entry, :spent_on, :size => 10, :readonly => true %><%= calendar_for('time_entry_spent_on') %>
diff --git a/app/views/versions/_form.html.erb b/app/views/versions/_form.html.erb
index d852b3dab..d0729c720 100644
--- a/app/views/versions/_form.html.erb
+++ b/app/views/versions/_form.html.erb
@@ -2,15 +2,40 @@
<%= error_messages_for 'version' %>
-
<%= f.text_field :name, :size => 60, :required => true %>
-
<%= f.text_field :description, :size => 60, :style => "margin-left:10px;" %>
-
<%= f.select :status, Version::VERSION_STATUSES.collect {|s| [l("version_status_#{s}"), s]} %>
-
<%= f.text_field :wiki_page_title, :label => :label_wiki_page, :size => 60, :disabled => @project.wiki.nil? %>
-
<%= f.text_field :effective_date, :size => 10 %><%= calendar_for('version_effective_date') %>
-
<%= f.select :sharing, @version.allowed_sharings.collect {|v| [format_version_sharing(v), v]} %>
+
+ <%= f.text_field :name, :size => 60, :required => true %>
+
+
+ <%= f.text_field :description, :size => 60, :style => "margin-left:10px;" %>
+
+
+
+ <%= f.select :status, Version::VERSION_STATUSES.collect {|s| [l("version_status_#{s}"), s]} %>
+
+
+
+
+ <%= f.text_field :wiki_page_title, :label => :label_wiki_page, :size => 60, :disabled => @project.wiki.nil? %>
+
+
+
+
+ <%= f.text_field :effective_date, :size => 10, :readonly => true %>
+ <%= calendar_for('version_effective_date') %>
+
+
+
+
+ <%= f.select :sharing, @version.allowed_sharings.collect {|v| [format_version_sharing(v), v]} %>
+
+
<% @version.custom_field_values.each do |value| %>
-
<%= custom_field_tag_with_label :version, value %>
+
+
+ <%= custom_field_tag_with_label :version, value %>
+
+
<% end %>
diff --git a/app/views/welcome/course.html.erb b/app/views/welcome/course.html.erb
index d28c89aa8..ea8963f7e 100644
--- a/app/views/welcome/course.html.erb
+++ b/app/views/welcome/course.html.erb
@@ -78,29 +78,28 @@
<%= l(:lable_hot_course)%>
- <% if @school_id %>
- <% school_course = find_miracle_course(10,7, @school_id) %>
- <% else %>
- <%school_course=[]%>
- <% end %>
- <% if (school_course.count == 0) %>
-
<%= render :partial => 'more_course', :locals => {:school_id => nil}%>
+ <% month_now = Time.now.strftime("%m").to_i %>
+ <% year_now = Time.new.strftime("%Y") %>
+
+ <% (month_now >= 3 && month_now < 9) ? course_term = "春季学期" : course_term = "秋季学期" %>
+ <% @school_id.nil? ? cur_school_course = [] : cur_school_course = find_miracle_course(10,7,@school_id, year_now, course_term) %>
+
+ <% if cur_school_course.count == 0 %>
+
<%= render :partial => 'more_course', :locals => {:school_id => nil}%>
-
<% if User.current.logged? %>
-
<%= render :partial => 'no_course_title', :locals => {:course_title => l(:label_school_no_course)} %>
- <%= render :partial => 'course_list', :locals => {:course_list => find_all_new_hot_course(9, @school_id)} %>
- <% else %>
- <%= render :partial => 'course_list', :locals => {:course_list => find_all_new_hot_course(10, @school_id)} %>
<% end %>
+ <% User.current.logged? ? course_count = 9 : course_count = 10 %>
+ <%= render :partial => 'course_list', :locals => {:course_list => find_all_new_hot_course(course_count, @school_id, year_now, course_term)} %>
<% else %>
- <% if school_course.count < 9 %>
+ <% if cur_school_course.count < 9 %>
<%= render :partial => 'more_course', :locals => {:school_id => nil}%>
@@ -111,12 +110,12 @@
<% end %>
- <%= render :partial => 'course_list', :locals => {:course_list => school_course} %>
- <% if school_course.count < 9 %>
+ <%= render :partial => 'course_list', :locals => {:course_list => cur_school_course} %>
+ <% if cur_school_course.count < 9 %>
-
<%= render :partial => 'no_course_title', :locals => {:course_title => l(:label_school_less_course)} %>
- <%= render :partial => 'course_list', :locals => {:course_list => find_all_new_hot_course(9 - school_course.count, @school_id)} %>
+ <%= render :partial => 'course_list', :locals => {:course_list => find_all_new_hot_course(9-cur_school_course.count, @school_id, year_now, course_term)} %>
<% end %>
@@ -136,19 +135,26 @@
<% find_new_forum_topics(10).each do |topic| %>
-
- <%= link_to '['+topic.forum.name + ']', forum_path(topic.forum), :class => 'memo_Bar_title' %><%= link_to topic.subject.truncate(30, omission: '...'), topic.event_url, :class => "gray", :style => "font-size: 10pt !important;" %>
+
+
+ <%= link_to '['+topic.forum.name + ']', forum_path(topic.forum), :class => 'memo_Bar_title' %>
+ <%= link_to topic.subject, topic.event_url, :class => "gray", :style => "font-size: 10pt !important;" %>
<%= "#{l(:label_updated_time, value: time_tag_welcome(topic_last_time topic))}".html_safe %>
-
- <%= l(:label_question_sponsor)%>: <%= link_to topic.author.login.truncate(10, omission: '...'),user_path(topic.author),title: topic.author.login %>
+
+ <%= l(:label_question_sponsor)%>:
+ <%= link_to topic.author.login.truncate(10, omission: '...'),user_path(topic.author),title: topic.author.login %>
-
- <%= l(:label_final_reply)%>:<% unless (topic.last_reply.nil? || topic.last_reply.author.nil?) %><%=link_to topic.last_reply.author.login.truncate(10, omission: '...'),user_path(topic.last_reply.author),title: topic.last_reply.author.login%><% end %>
+
+ <%= l(:label_final_reply)%>:
+ <% unless (topic.last_reply.nil? || topic.last_reply.author.nil?) %>
+ <%=link_to topic.last_reply.author.login.truncate(10, omission: '...'),user_path(topic.last_reply.author),title: topic.last_reply.author.login%>
+ <% end %>
<%= l(:label_reply)%>(<%= link_to topic.try(:replies_count), topic.event_url %>)
diff --git a/app/views/wiki/edit.html.erb b/app/views/wiki/edit.html.erb
index 3a1abdd83..ba82865ad 100644
--- a/app/views/wiki/edit.html.erb
+++ b/app/views/wiki/edit.html.erb
@@ -44,7 +44,7 @@
<%= submit_tag l(:button_save) %>
- <%= preview_link({:controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title }, 'wiki_form') %>
+ <%#= preview_link({:controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title }, 'wiki_form') %>
<%= wikitoolbar_for 'content_text' %>
<% end %>
diff --git a/app/views/words/_new_respond.html.erb b/app/views/words/_new_respond.html.erb
index d3f4145a8..64b83d777 100644
--- a/app/views/words/_new_respond.html.erb
+++ b/app/views/words/_new_respond.html.erb
@@ -1,13 +1,15 @@
<%= form_tag({:controller => 'words', :action => 'create_reply'}, :remote => true) do %>
-<%= text_area_tag 'user_notes', "", :class => 'noline',
- :style => "resize: none;", :rows => 4,
- :placeholder => l(:label_projects_feedback_respond_content),
- :maxlength => 250 %>
+ <%= text_area_tag 'user_notes', "", :class => 'noline',
+ :style => "resize: none;", :rows => 4,
+ :placeholder => l(:label_projects_feedback_respond_content),
+ :maxlength => 250 %>
-<%= hidden_field_tag 'reference_id', params[:reference_id], :value => journal.id %>
-<%= hidden_field_tag 'reference_user_id', params[:reference_user_id], :value => m_reply_id.user.id %>
-<%= hidden_field_tag 'reference_message_id', params[:reference_message_id], :value => m_reply_id.id %>
-<%= submit_tag l(:button_projects_feedback_respond), :name => nil , :class => "enterprise", :style => "float: right; margin-top: 1px; margin-right: 4px;"%>
+ <%= hidden_field_tag 'reference_id', params[:reference_id], :value => journal.id %>
+ <%= hidden_field_tag 'reference_user_id', params[:reference_user_id], :value => m_reply_id.user.id %>
+ <%= hidden_field_tag 'reference_message_id', params[:reference_message_id], :value => m_reply_id.id %>
+ <%= submit_tag l(:button_projects_feedback_respond), :name => nil ,
+ :class => "enterprise",
+ :style => "float: right; margin-top: 1px; margin-right: 4px;"%>
<% end %>
\ No newline at end of file
diff --git a/config/routes.rb b/config/routes.rb
index f61e61f9d..dedf15dfe 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -100,7 +100,6 @@ RedmineApp::Application.routes.draw do
#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
- match '/contestnotifications/preview', :to => 'previews#contestnotification', :as => 'preview_contestnotifications', :via => [:get, :post, :put]
## new added by linchun #新竞赛相关
resources :contests, only: [:index] do
resources :contestnotifications do
@@ -136,6 +135,19 @@ RedmineApp::Application.routes.draw do
end
end
+ match '/news/preview', :to => 'previews#news', :as => 'preview_news', :via => [:get, :post, :put]
+ match '/issues/preview/new/:project_id', :to => 'previews#issue', :as => 'preview_new_issue', :via => [:get, :post, :put]
+ match '/issues/preview/edit/:id', :to => 'previews#issue', :as => 'preview_edit_issue', :via => [:get, :post, :put]
+ match '/issues/preview', :to => 'previews#issue', :as => 'preview_issue', :via => [:get, :post, :put]
+ match '/contestnotifications/preview', :to => 'previews#contestnotification', :as => 'preview_contestnotifications', :via => [:get, :post, :put]
+
+ #resource :previews, only: [] do
+ # collection do
+ # match 'news', :via => [:get, :post, :put]
+ # match 'issue', :via => [:get, :post, :put]
+ # end
+ #end
+
resources :stores do
collection do
match 'search', :via => [:get, :post]
@@ -188,11 +200,6 @@ RedmineApp::Application.routes.draw do
match 'account/activate', :via => :get
match 'account/valid_ajax', :via => :get
- match '/news/preview', :to => 'previews#news', :as => 'preview_news', :via => [:get, :post, :put]
- match '/issues/preview/new/:project_id', :to => 'previews#issue', :as => 'preview_new_issue', :via => [:get, :post, :put]
- match '/issues/preview/edit/:id', :to => 'previews#issue', :as => 'preview_edit_issue', :via => [:get, :post, :put]
- match '/issues/preview', :to => 'previews#issue', :as => 'preview_issue', :via => [:get, :post, :put]
-
match 'projects/:id/wiki', :to => 'wikis#edit', :via => :post
match 'projects/:id/wiki/destroy', :to => 'wikis#destroy', :via => [:get, :post]
diff --git a/public/404.html b/public/404.html
index 8f2a53fe2..5b3280ccb 100644
--- a/public/404.html
+++ b/public/404.html
@@ -1,23 +1,41 @@
-
-
-Trustie 404 error
-
+
+
+
+
+ 页面不见了
+
+
+
- Page not found
- The page you were trying to access doesn't exist or has been removed.
- Back
+
+
+
404
+
+
ERROR PAGE
+ 页面不见了!建议您
+
+
+
+