1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2026-01-27 02:28:50 +01:00

Switch to Bootstrap 4

This commit is contained in:
2019-12-23 17:49:54 +01:00
parent f28cade211
commit f08254ffef
26 changed files with 207 additions and 120 deletions

View File

@@ -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