diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 2664dfe..e03bb8d 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,7 +1,17 @@ module ApplicationHelper def get_title(title = '') - base = 'Calefaction' # TODO: replace with settings name thing + base = '[Site Name]' title.empty? ? base : "#{title} : #{base}" end + + def get_copyright_year + start = 2015 + year = Time.now.year + year > start ? "#{start}–#{year}" : start + end + + def get_project_version + '0.1' # todo + end end diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 24674fd..29de0ba 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -7,8 +7,14 @@ <%= csrf_meta_tags %>
- -<%= yield %> - +