Fix the callforpapers routing and some styling issues

This commit is contained in:
Henne Vogelsang 2014-05-13 14:17:39 +02:00
parent 740540de13
commit e4c19ab1f6
6 changed files with 40 additions and 9 deletions

View file

@ -1,5 +1,21 @@
module ApplicationHelper
def bootstrap_class_for(flash_type)
logger.debug "flash_type is #{flash_type}"
case flash_type
when 'success'
'alert-success'
when 'error'
'alert-error'
when 'alert'
'alert-block'
when 'notice'
'alert-info'
else
flash_type.to_s
end
end
def active_nav_li(link)
if current_page?(link)
return 'active'