FEATURE: advanced search help

This commit is contained in:
Sam
2014-10-18 14:27:33 +11:00
parent 6e0b5f7231
commit 742c5e29c9
12 changed files with 70 additions and 1 deletions

View File

@ -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?