1、代码优化。2、很多页面标题不正确问题

This commit is contained in:
z9hang 2014-10-16 15:07:36 +08:00
parent 57776d67c5
commit 258967263e
14 changed files with 19 additions and 12 deletions

View File

@ -226,6 +226,7 @@ class BidsController < ApplicationController
layout_file = ''
case @bid.reward_type
when 3
html_title(l(:label_question_student))
layout_file = 'base_homework'
when 1
layout_file = 'base_bids'
@ -523,6 +524,7 @@ class BidsController < ApplicationController
respond_to do |format|
if @bid.reward_type == 3
format.html {
html_title(l(:label_homework_info))
render :layout => 'base_homework'
}
elsif @bid.reward_type == 1

View File

@ -10,3 +10,4 @@
<%= javascript_tag "$('#bid_name').focus();" %>
<% end %>
</div>
<% html_title(l(:label_newtype_contest)) -%>

View File

@ -312,4 +312,4 @@
<div class="pagination">
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false %>
</div>
<% html_title(l(:label_contest_joincontest)) -%>

View File

@ -44,4 +44,4 @@
<%= pagination_links_full @feedback_pages %>
</ul>
</div>
<% html_title(l(:label_user_response)) -%>

View File

@ -103,3 +103,4 @@ function checkMaxLength() {
<%= pagination_links_full @feedback_pages %>
</ul>
</div>
<% html_title(l(:label_course_feedback)) -%>

View File

@ -57,3 +57,4 @@ function showSubH(/* ... */){
}
</script>
<% html_title(l(:label_homework)) -%>

View File

@ -119,6 +119,6 @@
<%= pagination_links_full @events_pages %>
</ul>
</div>
<% html_title(l(:label_course_overview)) -%>

View File

@ -69,5 +69,4 @@
<div id="all_browse_div" class="all_browse_div">
<%= render :partial => 'course_show_all_attachment' %>
</div>
<% html_title(l(:label_attachment_plural)) -%>
<% html_title(l(:label_course_file)) -%>

View File

@ -8,7 +8,7 @@
<meta charset="utf-8" />
<meta name="description" content="<%= Redmine::Info.app_name %>" />
<meta name="keywords" content="issue,bug,tracker" />
<title><%=h l(:label_active_homework) << " - Trustie" %></title>
<title><%=h html_title %></title>
<%= csrf_meta_tag %>
<%= favicon %>

View File

@ -480,3 +480,4 @@
});
});
</script>
<% html_title(l(:label_activity)) -%>

View File

@ -31,3 +31,4 @@ $(document).ready(function() {
});
});
</script>
<% html_title(l(:label_user_course)) -%>

View File

@ -15,4 +15,4 @@
</ul>
</div>
</div>
<% html_title(l(:label_responses)) -%>

View File

@ -63,3 +63,4 @@
$('[mode=watched]').click(function(event) {window.location.href='<%=watch_projects_user_url(type: 1)%>'; });
});
</script>
<% html_title(l(:label_user_project)) -%>

View File

@ -580,7 +580,7 @@ RedmineApp::Application.routes.draw do
match 'permissions', :via => [:get, :post]
end
end
resources :web_footer_companies, :only => [:index, :new, :edit, :create,:update,:destroy]
resources :web_footer_companies, :except => :show
resources :enumerations, :except => :show
match 'enumerations/:type', :to => 'enumerations#index', :via => :get