mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-03-28 00:38:49 +01:00
Switch to Bootstrap 4
This commit is contained in:
@@ -27,4 +27,12 @@ module ApplicationHelper
|
||||
page_title + ' - ' + base_title
|
||||
end
|
||||
end
|
||||
|
||||
def nav_link_to(body, url)
|
||||
nav_options = { class: current_page?(url) ? 'nav-item active': 'nav-item' }
|
||||
content_tag(:li, nav_options) do
|
||||
link_to body, url, class: 'nav-link'
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user