diff options
author | elijah <elijah@riseup.net> | 2013-06-19 00:36:02 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-06-19 00:36:02 -0700 |
commit | 1185eea8c3f8cbd6450c3f5317235d0f07b911ae (patch) | |
tree | db0edff9db93e2206f29f75df944e28aa3399e7e /app/helpers | |
parent | 0e9818a80f7ca4afb35d4738f9721bc4753d2762 (diff) |
added html_title helper - use @title to set page title.
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index db70109..a236a0a 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,6 +1,19 @@ module ApplicationHelper # + # determine title for the page + # + def html_title + if content_for?(:title) + yield(:title) + elsif @title + [@title, ' - ', APP_CONFIG[:domain]].join + else + APP_CONFIG[:domain] + end + end + + # # markup for bootstrap icon # # http://twitter.github.io/bootstrap/base-css.html#icons |