Module: Neuron::Navigation::View
- Defined in:
- lib/neuron/navigation.rb
Instance Method Summary collapse
- #head_title(title = nil, options = {}) ⇒ Object
- #navigation_title(title = nil, options = {}) ⇒ Object
-
#page_title(title = nil, options = {}) ⇒ Object
Title of the current page.
- #title(new_title = nil, options = {}) ⇒ Object
Instance Method Details
#head_title(title = nil, options = {}) ⇒ Object
60 61 62 |
# File 'lib/neuron/navigation.rb', line 60 def head_title(title = nil, = {}) neuron_title.head_title(title, ) end |
#navigation_title(title = nil, options = {}) ⇒ Object
56 57 58 |
# File 'lib/neuron/navigation.rb', line 56 def (title = nil, = {}) neuron_title.(title, ) end |
#page_title(title = nil, options = {}) ⇒ Object
Title of the current page
52 53 54 |
# File 'lib/neuron/navigation.rb', line 52 def page_title(title = nil, = {}) neuron_title.page_title(title, ).html_safe end |
#title(new_title = nil, options = {}) ⇒ Object
64 65 66 67 |
# File 'lib/neuron/navigation.rb', line 64 def title(new_title = nil, = {}) tag = .delete(:tag) { :h1 } content_tag(tag, page_title(new_title, )) end |