17 lines
343 B
Ruby
17 lines
343 B
Ruby
module ApplicationHelper
|
|
|
|
# Returns the full title on a per-page basis.
|
|
def full_title(page_title)
|
|
base_title = "Jamkazam"
|
|
if page_title.empty?
|
|
base_title
|
|
else
|
|
"#{base_title} | #{page_title}"
|
|
end
|
|
end
|
|
|
|
def self.base_uri(request)
|
|
(request.ssl? ? "https://" : "http://") + request.host_with_port
|
|
end
|
|
end
|