diff options
author | Rhenium <rhenium@rhe.jp> | 2013-12-18 13:04:04 +0900 |
---|---|---|
committer | Rhenium <rhenium@rhe.jp> | 2013-12-18 13:04:04 +0900 |
commit | 9fad928924381e53d6bf542b226677fb1ecd9f2d (patch) | |
tree | 3f806850d34fd4a388ac3b48900db8ba8834b66a /app/helpers/application_helper.rb | |
parent | 3b6b25ad0551f6f8bc2dcc8a3e3a2e9db3356fe4 (diff) | |
download | aclog-9fad928924381e53d6bf542b226677fb1ecd9f2d.tar.gz |
update views
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r-- | app/helpers/application_helper.rb | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 59123f0..96b2986 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -45,17 +45,16 @@ module ApplicationHelper end end - def caption - "#{@caption}" + def caption(text) + content_for :caption do + text + end end - def title - if @tweet - text = CGI.unescapeHTML(strip_tags(format_tweet_text(@tweet.text))) - @title = "\"#{text}\" from #{@user.screen_name}" + def title(*args) + content_for :title do + (args.compact + ["aclog"]).join(" - ") end - - "#{@title || @caption} - aclog" end # utf8, form |