mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
FEATURE: advanced search help
This commit is contained in:
@ -35,6 +35,11 @@ class StaticController < ApplicationController
|
||||
return
|
||||
end
|
||||
|
||||
if I18n.exists?("static.#{@page}")
|
||||
render text: PrettyText.cook(I18n.t("static.#{@page}")), layout: !request.xhr?, formats: [:html]
|
||||
return
|
||||
end
|
||||
|
||||
file = "static/#{@page}.#{I18n.locale}"
|
||||
file = "static/#{@page}.en" if lookup_context.find_all("#{file}.html").empty?
|
||||
file = "static/#{@page}" if lookup_context.find_all("#{file}.html").empty?
|
||||
|
Reference in New Issue
Block a user