generate dynamic titles temporarily
This commit is contained in:
parent
be4344823a
commit
3e3ce86d16
2 changed files with 5 additions and 0 deletions
|
@ -20,6 +20,10 @@ module ApplicationHelper
|
||||||
"/auth/#{provider.to_s}"
|
"/auth/#{provider.to_s}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def page_title
|
||||||
|
"#{controller_name.capitalize}: #{action_name.capitalize}"
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def bootstrap_classes
|
def bootstrap_classes
|
||||||
|
|
|
@ -14,4 +14,5 @@ html
|
||||||
.container
|
.container
|
||||||
== render 'flash_messages', flash: flash
|
== render 'flash_messages', flash: flash
|
||||||
.container
|
.container
|
||||||
|
h1= page_title
|
||||||
= yield
|
= yield
|
||||||
|
|
Loading…
Reference in a new issue