diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index db77283cc..d87bc6d2c 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -180,9 +180,10 @@ class AttachmentsController < ApplicationController end respond_to do |format| - # modify by nwb if !@attachment.container.nil? && - (@attachment.container.is_a?(Course) || ((@attachment.container.has_attribute?(:course) ||@attachment.container.has_attribute?(:course_id) ) && @attachment.container.course ) || ((@attachment.container.has_attribute?(:board) || @attachment.container.has_attribute?(:board_id)) && @attachment.container.board && @attachment.container.board.course ) ) + (@attachment.container.is_a?(Course) || ((@attachment.container.has_attribute?(:course) || @attachment.container.has_attribute?(:course_id) ) && + @attachment.container.course ) || ((@attachment.container.has_attribute?(:board) || @attachment.container.has_attribute?(:board_id)) && + @attachment.container.board && @attachment.container.board.course ) ) if @attachment.container.is_a?(News) format.html { redirect_to_referer_or news_path(@attachment.container) } elsif @attachment.container.is_a?(Message) diff --git a/app/controllers/messages_controller.rb b/app/controllers/messages_controller.rb index 44496c3d7..e1af9ca34 100644 --- a/app/controllers/messages_controller.rb +++ b/app/controllers/messages_controller.rb @@ -156,17 +156,17 @@ class MessagesController < ApplicationController @subject = @message.subject @subject = "RE: #{@subject}" unless @subject.starts_with?('RE:') - #@content = "> #{ll(Setting.default_language, :text_user_wrote, @message.author)}\n> " - #@temp = Message.new - ##@temp.content = "> #{ll(Setting.default_language, :text_user_wrote, @message.author)}> " - #@content << @message.content.to_s.strip.gsub(%r{
((.|\s)*?)
}m, '[...]').gsub(/(\r?\n|\r\n?)/, "\n> ") + "\n\n" - #@content_html = textilizable(@content) - #@temp.content = @content_html - @content = "#{ll(Setting.default_language, :text_user_wrote, @message.author)}
  " - @content << @message.content.to_s.strip.gsub(%r{
((.|\s)*?)
}m, '[...]').gsub(/(\r?\n|\r\n?)/, "\n") + "\n\n
" - @content = "
" << @content + @content = "> #{ll(Setting.default_language, :text_user_wrote, @message.author)}\n> " @temp = Message.new - @temp.content = @content + #@temp.content = "> #{ll(Setting.default_language, :text_user_wrote, @message.author)}> " + @content << @message.content.to_s.strip.gsub(%r{
((.|\s)*?)
}m, '[...]').gsub(/(\r?\n|\r\n?)/, "\n> ") + "\n\n" + @content_html = textilizable(@content) + @temp.content = @content_html + #@content = "#{ll(Setting.default_language, :text_user_wrote, @message.author)}
  " + #@content << @message.content.to_s.strip.gsub(%r{
((.|\s)*?)
}m, '[...]').gsub(/(\r?\n|\r\n?)/, "\n") + "
\n\n
" + #@content = "
" << @content + #@temp = Message.new + #@temp.content = @content end diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index c0561bd1c..943718392 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -836,7 +836,7 @@ class ProjectsController < ApplicationController format.api { render_api_ok } end else - render :layout => "base" + render :layout => "project_base" end # hide project in layout @project = nil diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index ef4c9b061..a705d6934 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -372,7 +372,7 @@ class RepositoriesController < ApplicationController def revision respond_to do |format| - format.html + format.html{render :layout => 'project_base'} format.js {render :layout => false} end end diff --git a/app/controllers/versions_controller.rb b/app/controllers/versions_controller.rb index 3641e0c61..5824848ff 100644 --- a/app/controllers/versions_controller.rb +++ b/app/controllers/versions_controller.rb @@ -107,7 +107,7 @@ class VersionsController < ApplicationController respond_to do |format| format.html do flash[:notice] = l(:notice_successful_create) - redirect_back_or_default settings_project_path(@project, :tab => 'versions') + redirect_to settings_project_path(@project, :tab => 'versions') end format.js format.api do diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index 6849ba83d..9fcebe640 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -173,25 +173,14 @@ module ProjectsHelper # Renders the projects index def render_project_hierarchy(projects) render_project_nested_lists(projects) do |project| - #Modified by young - if (project.try(:project_type) == Project::ProjectType_course ) - unless project.is_public == 1 - s = "#{l(:lable_private)}".html_safe - else - s = "".html_safe - end - s += link_to_project(project, {}, :class => "#{project.css_classes} #{User.current.member_of?(project) ? 'my-project' : nil}").html_safe - else - unless project.is_public - s = "#{l(:lable_private)}".html_safe - else - s = "".html_safe - end - s += link_to_project(project, {}, :class => "#{project.css_classes} #{User.current.member_of?(project) ? 'my-project' : nil}") - end - #Ended by young + if (project.try(:project_type) == Project::ProjectType_course ) + s = project.is_public == 1 ? "".html_safe : "#{l(:label_private)}".html_safe + s += link_to_project(project, {}, :class => "#{project.css_classes} #{User.current.member_of?(project) ? 'my-project' : nil}").html_safe + else + s = project.is_public ? "".html_safe : "#{l(:label_private)}".html_safe + s += link_to_project(project, {}, :class => "#{project.css_classes} #{User.current.member_of?(project) ? 'my-project' : nil}") + end if project.description.present? - #Delete by nie. # s << content_tag('td', textilizable(project.short_description, :project => project), :class => 'wiki description') end s diff --git a/app/models/project_status.rb b/app/models/project_status.rb index c3d306c58..7fd246234 100644 --- a/app/models/project_status.rb +++ b/app/models/project_status.rb @@ -12,7 +12,7 @@ class ProjectStatus < ActiveRecord::Base # 但是 如果超级用户删除其他用户的话会造成读取错误 这里是遗漏点 # 删除用户时 此表创建人员未作相应删除动作 def update_watchers_count(num) - if self.watchers_count >= 0 + if self.watchers_count||0 >= 0 self.update_attribute(:watchers_count, self.watchers_count.to_i + num) end end diff --git a/app/views/attachments/_form.html.erb b/app/views/attachments/_form.html.erb index bb043cd70..81dc5d939 100644 --- a/app/views/attachments/_form.html.erb +++ b/app/views/attachments/_form.html.erb @@ -27,7 +27,7 @@ <%#= button_tag "浏览", :type=>"button", :onclick=>"CompatibleSend();" %> -<%= button_tag "浏览", :type=>"button", :onclick=>"_file.click()" %> +<%= button_tag "浏览", :type=>"button", :onclick=>"_file.click()",:onmouseover => 'this.focus()' %> <%= file_field_tag 'attachments[dummy][file]', :id => '_file', :class => 'file_selector', diff --git a/app/views/attachments/file.html.erb b/app/views/attachments/file.html.erb index be165ad42..d4cb19880 100644 --- a/app/views/attachments/file.html.erb +++ b/app/views/attachments/file.html.erb @@ -6,8 +6,8 @@

<%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%> (<%= number_to_human_size @attachment.filesize %>)    - - <% if @attachment!=nil &&(@attachment.container_type == 'Document' || @attachment.container_type == 'WikiPage')&&User.current.allowed_to?({:controller => 'code_review', :action => 'update_diff_view'}, @attachment.project) %> + <% if @attachment!=nil &&(@attachment.container_type == 'Document' || @attachment.container_type == 'WikiPage') && + User.current.allowed_to?({:controller => 'code_review', :action => 'update_diff_view'}, @attachment.project) %> <%= l(:review_assignments)+":" %><%= link = link_to(l(:button_add), {:controller => 'code_review', :action => 'assign', :action_type => 'attachment', :id=>@attachment.project, diff --git a/app/views/contests/_new_softapplication.html.erb b/app/views/contests/_new_softapplication.html.erb index 9fb3fc7f1..e8b0a32cd 100644 --- a/app/views/contests/_new_softapplication.html.erb +++ b/app/views/contests/_new_softapplication.html.erb @@ -166,7 +166,7 @@ <%= render :partial => 'attachments/form' %>

-

+

1、<%= l(:label_upload_softapplication_packets_mustpacketed) %>

2、<%= l(:label_upload_softapplication_photo_condition) %> diff --git a/app/views/courses/_course.html.erb b/app/views/courses/_course.html.erb index 12eec558f..239f2da26 100644 --- a/app/views/courses/_course.html.erb +++ b/app/views/courses/_course.html.erb @@ -11,7 +11,7 @@

<%= content_tag('span',"#{l(:label_bid_show_course_name)}:", :class => "course-font")%> <% unless @course.is_public == 1 %> - <%= l(:lable_private) %> + <%= l(:label_private) %> <% end %> <%= content_tag('span', link_to("#{@course.name}", course_path(@course), :class => "info"))%>

diff --git a/app/views/files/_course_sort_by_attachtypel.html.erb b/app/views/files/_course_sort_by_attachtypel.html.erb index c13d76620..5a0cdba02 100644 --- a/app/views/files/_course_sort_by_attachtypel.html.erb +++ b/app/views/files/_course_sort_by_attachtypel.html.erb @@ -37,7 +37,7 @@ <%= number_to_human_size(file.filesize) %> - <%= file.attachmentstype.nil? ? l(:lable_unknow_type):file.attachmentstype.typeName %> + <%= file.attachmentstype.nil? ? l(:label_unknow_type):file.attachmentstype.typeName %>   <%= render :partial => 'attachments/course_type_edit', :locals => {:attachmenttypes => attachmenttypes, diff --git a/app/views/files/_sort_by_attachtypel.html.erb b/app/views/files/_sort_by_attachtypel.html.erb index eb7ffffec..6c6e11791 100644 --- a/app/views/files/_sort_by_attachtypel.html.erb +++ b/app/views/files/_sort_by_attachtypel.html.erb @@ -37,7 +37,7 @@ <%= number_to_human_size(file.filesize) %> - <%= file.attachmentstype.nil? ? l(:lable_unknow_type):file.attachmentstype.typeName %> + <%= file.attachmentstype.nil? ? l(:label_unknow_type):file.attachmentstype.typeName %>   <%= render :partial => 'attachments/type_edit', :locals => {:attachmenttypes => attachmenttypes, diff --git a/app/views/forums/_form.html.erb b/app/views/forums/_form.html.erb index 993563954..c253e8d78 100644 --- a/app/views/forums/_form.html.erb +++ b/app/views/forums/_form.html.erb @@ -21,7 +21,7 @@ <%= f.text_area :description, :required => true, :id => 'editor01' %> -

(<%= l(:lable_forums_max_length) %>)

+

(<%= l(:label_forums_max_length) %>)

<%= submit_tag l(:button_submit) %> diff --git a/app/views/forums/show.html.erb b/app/views/forums/show.html.erb index 48913a38d..1622bbe02 100644 --- a/app/views/forums/show.html.erb +++ b/app/views/forums/show.html.erb @@ -18,7 +18,7 @@

<%= f.text_field :subject, :required => true%>

<%= f.text_area :content, :required => true, :id => 'editor02' %>

-

(<%= l(:lable_memos_max_length) %>)

+

(<%= l(:label_memos_max_length) %>)

<%= l(:label_attachment_plural) %>
diff --git a/app/views/layouts/users_base.html.erb b/app/views/layouts/users_base.html.erb index bad051fc5..97db13193 100644 --- a/app/views/layouts/users_base.html.erb +++ b/app/views/layouts/users_base.html.erb @@ -45,6 +45,6 @@

-<%= call_hook :view_layouts_base_body_bottom %> + diff --git a/app/views/messages/_course_show.html.erb b/app/views/messages/_course_show.html.erb index aba16d620..a11107a9b 100644 --- a/app/views/messages/_course_show.html.erb +++ b/app/views/messages/_course_show.html.erb @@ -157,7 +157,7 @@
- <%= textAreailizable message,:content,:attachments => message.attachments %> + <%= textilizable message,:content,:attachments => message.attachments %> <%#= message.content.html_safe %>
<%= link_to_attachments message, :author => false %> diff --git a/app/views/messages/_form.html.erb b/app/views/messages/_form.html.erb index d2eb73225..4ca9f4707 100644 --- a/app/views/messages/_form.html.erb +++ b/app/views/messages/_form.html.erb @@ -23,6 +23,7 @@ <% end %>

+

<%= text_area :quote,:quote,:style => 'display:none' %>

diff --git a/app/views/messages/_project_show.html.erb b/app/views/messages/_project_show.html.erb index ddb23fc95..eff5fa160 100644 --- a/app/views/messages/_project_show.html.erb +++ b/app/views/messages/_project_show.html.erb @@ -163,7 +163,7 @@

- <%= textAreailizable message,:content,:attachments => message.attachments %> + <%= textilizable message,:content,:attachments => message.attachments %> <%#= message.content.html_safe %>
<%= link_to_attachments message, :author => false %> diff --git a/app/views/news/_course_show.html.erb b/app/views/news/_course_show.html.erb index b86cea93f..03731373c 100644 --- a/app/views/news/_course_show.html.erb +++ b/app/views/news/_course_show.html.erb @@ -69,7 +69,7 @@ :html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %> <%= render :partial => 'course_form', :locals => { :f => f, :is_new => false } %> <%#= submit_tag l(:button_save) %> - <%= link_to l(:button_save), "#", :onclick => 'submitNews();',:class => 'whiteButton m3p10' %> + <%= 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'} %> | <%= 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 e9a912c5c..35f76dfaa 100644 --- a/app/views/news/_project_news.html.erb +++ b/app/views/news/_project_news.html.erb @@ -49,6 +49,12 @@ $("#news-form").submit(); } } + + function submitFocus(obj) + { + $(obj).focus(); + } + <% @@ -76,7 +82,7 @@ :html => {:id => 'news-form', :multipart => true} do |f| %> <%= render :partial => 'news/form', :locals => {:f => f} %> <%#= submit_tag l(:button_create), :class => 'whiteButton m3p10 h30', :name => nil %> - <%= link_to l(:button_create), "#", :onclick => 'submitNews();', :class => 'whiteButton m3p10' %> + <%= 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'} %> | diff --git a/app/views/news/_project_show.html.erb b/app/views/news/_project_show.html.erb index ecae672b6..66580ddd5 100644 --- a/app/views/news/_project_show.html.erb +++ b/app/views/news/_project_show.html.erb @@ -49,6 +49,7 @@ $("#news-form").submit(); } } +
<%= watcher_link(@news, User.current) %> @@ -68,7 +69,7 @@ :html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %> <%= render :partial => 'form', :locals => { :f => f } %> <%#= submit_tag l(:button_save) %> - <%= link_to l(:button_save), "#", :onclick => 'submitNews();',:class => 'whiteButton m3p10' %> + <%= 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'} %> | <%= link_to l(:button_cancel), "#", :onclick => '$("#edit-news").hide(); return false;',:class => 'whiteButton m3p10' %> <% end %> diff --git a/app/views/projects/_project.html.erb b/app/views/projects/_project.html.erb index 004fb38ac..6f2354d66 100644 --- a/app/views/projects/_project.html.erb +++ b/app/views/projects/_project.html.erb @@ -82,7 +82,7 @@ <% end %> <%= content_tag('span', link_to(files_count, file_project_path(@project)), :class => "info") %><%= content_tag('span', l(:label_x_data,:count => files_count)) %>

- +
<% end %> @@ -114,19 +114,19 @@ <% if(@project.project_type==1)%>    <%= l(:label_course_college) %>: <%if @admin&&@admin.first&&@admin.first.user&&@admin.first.user.user_extensions%> - <%= @admin.first.user.user_extensions.occupation %> + <%= @admin.first.user.user_extensions.occupation %> <% end %> <% end %>
<%= content_tag('span', "#{l(:label_create_time)}: ") %><%= content_tag('span', format_time(@project.created_on)) %>
- +
- + <% if @project.project_type !=1 %> - <%= l(:label_project_grade)%>: + <%= l(:label_project_grade)%>: <%= link_to(format("%.2f" , red_project_scores(@project) ).to_i, {:controller => 'projects', @@ -138,7 +138,7 @@ - +
diff --git a/app/views/projects/show_projects_score.html.erb b/app/views/projects/show_projects_score.html.erb index 94f3dfaf8..b16f46f91 100644 --- a/app/views/projects/show_projects_score.html.erb +++ b/app/views/projects/show_projects_score.html.erb @@ -1,4 +1,3 @@ - @@ -16,7 +15,7 @@ <%= yield :header_tags -%> - +<% if @project %>

<%= l(:label_projects_score) %>

@@ -54,7 +53,7 @@
  • <%= link_to l(:label_file_score), {:controller => 'projects', :action => 'file_score_index', :remote => true}%> : - <%= format("%.2f" , document_score(@project)).to_i %> + <%= format("%.2f" , documents_score(@project)).to_i %>
  • <%= link_to l(:label_code_submit_score), {:controller => 'projects', :action => 'code_submit_score_index', :remote => true}%> : @@ -69,4 +68,4 @@
    <%= render :partial => 'projects/project_score_index', :locals => {:index => 0 } %>
    - \ No newline at end of file +<% end %> \ No newline at end of file diff --git a/app/views/repositories/revision.html.erb b/app/views/repositories/revision.html.erb index 0de0cfee7..7b4934bfa 100644 --- a/app/views/repositories/revision.html.erb +++ b/app/views/repositories/revision.html.erb @@ -20,7 +20,7 @@ :rev => nil}, :method => :get) do %> <%= text_field_tag 'rev', @rev, :size => 8 %> - <%= submit_tag 'OK', :name => nil %> + <%= submit_tag l(:label_button_ok), :name => nil %> <% end %> diff --git a/app/views/repositories/revisions.html.erb b/app/views/repositories/revisions.html.erb index e89deeb7d..321ff72b2 100644 --- a/app/views/repositories/revisions.html.erb +++ b/app/views/repositories/revisions.html.erb @@ -5,7 +5,7 @@ :method => :get ) do %> <%= l(:label_revision) %>: <%= text_field_tag 'rev', nil, :size => 8 %> - <%= submit_tag 'OK' %> + <%= submit_tag l(:label_button_ok) %> <% end %> diff --git a/app/views/softapplications/_form.html.erb b/app/views/softapplications/_form.html.erb index 4e38981f8..95c61ae27 100644 --- a/app/views/softapplications/_form.html.erb +++ b/app/views/softapplications/_form.html.erb @@ -112,7 +112,7 @@

    <%= render :partial => 'attachments/form' %>

    -

    1、<%=l(:label_upload_softapplication_packets_mustpacketed)%>
    2、<%=l(:label_upload_softapplication_photo_condition)%>

    +

    1、<%=l(:label_upload_softapplication_packets_mustpacketed)%>
    2、<%=l(:label_upload_softapplication_photo_condition)%>

    diff --git a/app/views/users/_score_new_index.html.erb b/app/views/users/_score_new_index.html.erb index b79a57e71..733088067 100644 --- a/app/views/users/_score_new_index.html.erb +++ b/app/views/users/_score_new_index.html.erb @@ -1,5 +1,5 @@ - +<% option_num = get_option_number(@user,1) %>
    <%= l(:label_user_score) %>
    = <%= l(:label_user_score_of_collaboration) %> + <%= l(:label_user_score_of_influence) %> + <%= l(:label_user_score_of_skill)%> + <%= l(:label_user_score_of_active) %>
    @@ -7,8 +7,8 @@
    = <%= format("%.2f" ,collaboration(option_num)).to_i %> + <%= format("%.2f" , influence(option_num) ).to_i %> + <%= "(" if skill(option_num) < 0 %> <%= format("%.2f" , skill(option_num)).to_i %> <%= ")" if skill(option_num) < 0 %> + <%= format("%.2f" , active(option_num)).to_i %>
    <% if (format("%.2f" ,collaboration(option_num)).to_i + format("%.2f" , influence(option_num) ).to_i + format("%.2f" , skill(option_num)).to_i + format("%.2f" , active(option_num)).to_i) < 0 %> -
    <%= l(:lable_score_less_than_zero) %>
    +
    <%= l(:label_score_less_than_zero) %>
    <% else %>
    = <%= format("%.2f" ,option_num.total_score).to_i %>
    <% end %> - + diff --git a/app/views/welcome/_course_list.html.erb b/app/views/welcome/_course_list.html.erb index 0dcf1085a..b6dac9022 100644 --- a/app/views/welcome/_course_list.html.erb +++ b/app/views/welcome/_course_list.html.erb @@ -7,7 +7,7 @@
    <% unless course.is_public == 1 %> - <%= l(:lable_private) %> + <%= l(:label_private) %> <% end %> <%= link_to(course.name.truncate(30, omission: '...')+":", course_path(course.id), :class => "d-g-blue d-p-project-name", :title => "#{course.name}") %> diff --git a/app/views/welcome/course.html.erb b/app/views/welcome/course.html.erb index c46df7777..e25ef5665 100644 --- a/app/views/welcome/course.html.erb +++ b/app/views/welcome/course.html.erb @@ -92,7 +92,7 @@ <% if User.current.logged? %>
  • - <%= render :partial => 'no_course_title', :locals => {:course_title => l(:lable_school_no_course)} %> + <%= 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 %> @@ -115,7 +115,7 @@ <%= render :partial => 'course_list', :locals => {:course_list => school_course} %> <% if school_course.count < 10 %>
  • - <%= render :partial => 'no_course_title', :locals => {:course_title => l(:lable_school_less_course)} %> + <%= 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)} %> <% end %> diff --git a/app/views/welcome/index.html.erb b/app/views/welcome/index.html.erb index fd4a1637e..b73f0970f 100644 --- a/app/views/welcome/index.html.erb +++ b/app/views/welcome/index.html.erb @@ -73,7 +73,7 @@
    <% unless project.is_public %> - <%= l(:lable_private) %> + <%= l(:label_private) %> <% end %> <%= link_to( project.name, project_path(project.id), :class => "d-g-blue d-p-project-name",:title => "#{project.name}" )%> (<%= link_to "#{projectCount(project)}人", project_member_path(project) ,:course =>'0' %>) diff --git a/config/locales/en.yml b/config/locales/en.yml index ee7e76ed1..987acabc4 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1807,7 +1807,14 @@ en: label_company_name: Company Name notice_account_invalid_creditentials_new: You have not to the mailbox activation - lable_unknow_type: Unknow type - lable_score_less_than_zero: Score less than 0, revised to 0 + label_school_no_course: The school did not offer any courses, you can view other school curriculum + label_school_less_course: The school offers courses in less, you can view other school curriculum + label_file_not_found: Sorry, the file can't be downloaded now! + label_goto_homepage: Return to the home page + label_trustie_team: The Trustie development team + label_memos_max_length: The content of the post up to 65535 characters in length + label_forums_max_length: Post Bar describing the maximum length of 65535 characters + label_unknow_type: Unknow type + label_score_less_than_zero: Score less than 0, revised to 0 review_assignments: review assignments - lable_private: private \ No newline at end of file + label_private: private \ No newline at end of file diff --git a/config/locales/zh.yml b/config/locales/zh.yml index a3db5964b..874c9108a 100644 --- a/config/locales/zh.yml +++ b/config/locales/zh.yml @@ -2106,16 +2106,16 @@ zh: modal_valid_passing: 可以使用 label_bug: 漏洞 - lable_school_no_course: 该学校未开设任何课程,您可以查看其他学校课程 - lable_school_less_course: 该学校开设课程较少,您可以查看其他学校课程 + label_school_no_course: 该学校未开设任何课程,您可以查看其他学校课程 + label_school_less_course: 该学校开设课程较少,您可以查看其他学校课程 - lable_file_not_found: 对不起,该文件现在不能下载! - lable_goto_homepage: 返回主页 - lable_trustie_team: Trustie开发团队 + label_file_not_found: 对不起,该文件现在不能下载! + label_goto_homepage: 返回主页 + label_trustie_team: Trustie开发团队 - lable_memos_max_length: 帖子内容最大长度为65535个字符 - lable_forums_max_length: 贴吧描述最大长度为65535个字符 - lable_unknow_type: 未知类型 - lable_score_less_than_zero: 得分小于0,修正为0 + label_memos_max_length: 帖子内容最大长度为65535个字符 + label_forums_max_length: 贴吧描述最大长度为65535个字符 + label_unknow_type: 未知类型 + label_score_less_than_zero: 得分小于0,修正为0 review_assignments: 评审任务 - lable_private: 私有 + label_private: 私有 diff --git a/db/schema.rb b/db/schema.rb index 1307dd913..e23fd19d2 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -437,9 +437,9 @@ ActiveRecord::Schema.define(:version => 20140826072838) do t.string "web_title" t.string "title" t.text "description" + t.string "page_type" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false - t.string "page_type" t.integer "sort_type" t.integer "show_course", :default => 1 t.integer "show_contest", :default => 1 @@ -458,26 +458,6 @@ ActiveRecord::Schema.define(:version => 20140826072838) do t.datetime "updated_at", :null => false end - create_table "gitlab_projects", :force => true do |t| - t.integer "gitlab_project_id" - t.integer "project_id" - t.string "repository_url" - t.string "web_url" - t.string "localfile_url" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false - end - - create_table "gitlab_users", :force => true do |t| - t.integer "gitlab_user_id" - t.integer "user_id" - t.string "email" - t.string "password" - t.string "login", :null => false - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false - end - create_table "groups_users", :id => false, :force => true do |t| t.integer "group_id", :null => false t.integer "user_id", :null => false diff --git a/public/file_not_found.html.erb b/public/file_not_found.html.erb index b3b45203a..8cd5e7af6 100644 --- a/public/file_not_found.html.erb +++ b/public/file_not_found.html.erb @@ -26,12 +26,12 @@
    -

    <%= l(:lable_file_not_found) %>

    -

    <%= l(:lable_goto_homepage) %>

    +

    <%= l(:label_file_not_found) %>

    +

    <%= link_to l(:label_goto_homepage),{:controller=>'welcome',:action=>'index',:host=>Setting.host_name} %>

    -

    <%= l(:lable_trustie_team) %>

    +

    <%= l(:label_trustie_team) %>