mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 13:36:06 +01:00
18 lines
297 B
Ruby
18 lines
297 B
Ruby
module ApplicationHelper
|
|
def nav_entry(body, path)
|
|
content_tag(:li, link_to(body, path), class: ('active' if current_page? path))
|
|
end
|
|
|
|
##
|
|
#
|
|
def bootstrap_color c
|
|
case c
|
|
when "error", "alert"
|
|
"danger"
|
|
when "notice"
|
|
"info"
|
|
else
|
|
c
|
|
end
|
|
end
|
|
end
|