aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorRhenium <rhenium@rhe.jp>2013-12-20 12:37:55 +0900
committerRhenium <rhenium@rhe.jp>2013-12-20 12:37:55 +0900
commit8c8e390da4d82dc06f0d6e5b758c5d12f496076d (patch)
treeffbdb2e96a5f5c0d675feb8f3501351cbbea9853 /app
parentdc8377fbb341f1d4cbd3515a85dcc8ab9f88063a (diff)
downloadaclog-8c8e390da4d82dc06f0d6e5b758c5d12f496076d.tar.gz
fix page title helper
Diffstat (limited to 'app')
-rw-r--r--app/helpers/application_helper.rb9
-rw-r--r--app/views/about/index.html.haml2
2 files changed, 7 insertions, 4 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 61382fc..e7cb03c 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -27,16 +27,19 @@ module ApplicationHelper
end
alias format_source_text format_tweet_text
-
def title(*args)
content_for :title do
- (args.compact + ["aclog"]).join(" - ")
+ (args.compact).join(" - ")
end
end
def caption(text)
content_for :caption do
- text
+ if text.is_a? Symbol
+ content_for(text)
+ else
+ text
+ end
end
end
diff --git a/app/views/about/index.html.haml b/app/views/about/index.html.haml
index 0ad8d89..736e5ec 100644
--- a/app/views/about/index.html.haml
+++ b/app/views/about/index.html.haml
@@ -1,4 +1,4 @@
-- title nil
+- title "aclog"
.index.text-center
%h1
aclog