还原修改
This commit is contained in:
parent
852c525866
commit
f7ac267b42
|
@ -103,6 +103,7 @@ class CoursesController < ApplicationController
|
||||||
else
|
else
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html {
|
format.html {
|
||||||
|
settings
|
||||||
render :action => 'settings'
|
render :action => 'settings'
|
||||||
}
|
}
|
||||||
format.api { render_validation_errors(@course) }
|
format.api { render_validation_errors(@course) }
|
||||||
|
|
|
@ -24,6 +24,7 @@ class SettingsController < ApplicationController
|
||||||
before_filter :require_admin
|
before_filter :require_admin
|
||||||
|
|
||||||
def index
|
def index
|
||||||
|
edit
|
||||||
render :action => 'edit'
|
render :action => 'edit'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -57,6 +57,7 @@ class TrackersController < ApplicationController
|
||||||
redirect_to trackers_url
|
redirect_to trackers_url
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
new
|
||||||
render :action => 'new'
|
render :action => 'new'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@ class WebFooterCompaniesController < ApplicationController
|
||||||
redirect_to web_footer_companies_url
|
redirect_to web_footer_companies_url
|
||||||
else
|
else
|
||||||
flash[:error] = "#{l :web_footer_company_create_fail}: #{@company.errors.full_messages[0]}"
|
flash[:error] = "#{l :web_footer_company_create_fail}: #{@company.errors.full_messages[0]}"
|
||||||
|
new
|
||||||
render :action => 'new'
|
render :action => 'new'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -41,6 +42,7 @@ class WebFooterCompaniesController < ApplicationController
|
||||||
redirect_to web_footer_companies_url
|
redirect_to web_footer_companies_url
|
||||||
else
|
else
|
||||||
flash[:error] = "#{l :web_footer_company_update_fail}: #{@company.errors.full_messages[0]}"
|
flash[:error] = "#{l :web_footer_company_update_fail}: #{@company.errors.full_messages[0]}"
|
||||||
|
edit
|
||||||
render :action => 'edit'
|
render :action => 'edit'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -68,6 +68,7 @@ class WikiController < ApplicationController
|
||||||
def show
|
def show
|
||||||
if @page.new_record?
|
if @page.new_record?
|
||||||
if User.current.allowed_to?(:edit_wiki_pages, @project) && editable? && !api_request?
|
if User.current.allowed_to?(:edit_wiki_pages, @project) && editable? && !api_request?
|
||||||
|
edit
|
||||||
render :action => 'edit'
|
render :action => 'edit'
|
||||||
else
|
else
|
||||||
render_404
|
render_404
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
<p><%= setting_select :time_format, Setting::TIME_FORMATS.collect {|f| [::I18n.l(Time.now, :locale => locale, :format => f), f]}, :blank => :label_language_based %></p>
|
<p><%= setting_select :time_format, Setting::TIME_FORMATS.collect {|f| [::I18n.l(Time.now, :locale => locale, :format => f), f]}, :blank => :label_language_based %></p>
|
||||||
|
|
||||||
<p><%#= setting_select :user_format, @options[:user_format] %></p>
|
<p><%= setting_select :user_format, @options[:user_format] %></p>
|
||||||
|
|
||||||
<p><%= setting_check_box :gravatar_enabled %></p>
|
<p><%= setting_check_box :gravatar_enabled %></p>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue