Fix the callforpapers routing and some styling issues
This commit is contained in:
parent
740540de13
commit
e4c19ab1f6
6 changed files with 40 additions and 9 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue