1、代码优化。2、很多页面标题不正确问题
This commit is contained in:
parent
57776d67c5
commit
258967263e
|
@ -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
|
||||
|
|
|
@ -10,3 +10,4 @@
|
|||
<%= javascript_tag "$('#bid_name').focus();" %>
|
||||
<% end %>
|
||||
</div>
|
||||
<% html_title(l(:label_newtype_contest)) -%>
|
|
@ -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)) -%>
|
||||
|
|
|
@ -44,4 +44,4 @@
|
|||
<%= pagination_links_full @feedback_pages %>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<% html_title(l(:label_user_response)) -%>
|
||||
|
|
|
@ -103,3 +103,4 @@ function checkMaxLength() {
|
|||
<%= pagination_links_full @feedback_pages %>
|
||||
</ul>
|
||||
</div>
|
||||
<% html_title(l(:label_course_feedback)) -%>
|
|
@ -57,3 +57,4 @@ function showSubH(/* ... */){
|
|||
}
|
||||
</script>
|
||||
|
||||
<% html_title(l(:label_homework)) -%>
|
|
@ -119,6 +119,6 @@
|
|||
<%= pagination_links_full @events_pages %>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<% html_title(l(:label_course_overview)) -%>
|
||||
|
||||
|
||||
|
|
|
@ -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)) -%>
|
|
@ -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 %>
|
||||
|
|
|
@ -480,3 +480,4 @@
|
|||
});
|
||||
});
|
||||
</script>
|
||||
<% html_title(l(:label_activity)) -%>
|
|
@ -31,3 +31,4 @@ $(document).ready(function() {
|
|||
});
|
||||
});
|
||||
</script>
|
||||
<% html_title(l(:label_user_course)) -%>
|
|
@ -15,4 +15,4 @@
|
|||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% html_title(l(:label_responses)) -%>
|
|
@ -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)) -%>
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue