annotate app/helpers/application_helper.rb @ 220:183e8560a337

Update prettify to 2013/03/04.
author Edho Arief <edho@myconan.net>
date Sun, 12 May 2013 12:05:08 +0900
parents a8b0775798c3
children 7c7b7906ebd9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1 module ApplicationHelper
26
a8b0775798c3 Added title.
Edho Arief <edho@myconan.net>
parents: 0
diff changeset
2 def html_title
a8b0775798c3 Added title.
Edho Arief <edho@myconan.net>
parents: 0
diff changeset
3 base_title = 'Zeropaste'
a8b0775798c3 Added title.
Edho Arief <edho@myconan.net>
parents: 0
diff changeset
4 if content_for? :title
a8b0775798c3 Added title.
Edho Arief <edho@myconan.net>
parents: 0
diff changeset
5 "#{content_for(:title)} | #{h base_title}".html_safe
a8b0775798c3 Added title.
Edho Arief <edho@myconan.net>
parents: 0
diff changeset
6 else
a8b0775798c3 Added title.
Edho Arief <edho@myconan.net>
parents: 0
diff changeset
7 base_title
a8b0775798c3 Added title.
Edho Arief <edho@myconan.net>
parents: 0
diff changeset
8 end
a8b0775798c3 Added title.
Edho Arief <edho@myconan.net>
parents: 0
diff changeset
9 end
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
10 end