Mercurial > zeropaste
comparison app/helpers/application_helper.rb @ 331:7c7b7906ebd9
Some more coding style.
author | edogawaconan <me@myconan.net> |
---|---|
date | Mon, 14 Apr 2014 17:21:16 +0900 |
parents | a8b0775798c3 |
children | 851432f21603 |
comparison
equal
deleted
inserted
replaced
330:96631607785f | 331:7c7b7906ebd9 |
---|---|
1 module ApplicationHelper | 1 module ApplicationHelper |
2 def html_title | 2 def html_title |
3 base_title = 'Zeropaste' | 3 base_title = "Zeropaste" |
4 if content_for? :title | 4 if content_for? :title |
5 "#{content_for(:title)} | #{h base_title}".html_safe | 5 "#{content_for(:title)} | #{h base_title}".html_safe |
6 else | 6 else |
7 base_title | 7 base_title |
8 end | 8 end |