Simplify sidebar and navigation
Check existence of supporter levels
This commit is contained in:
parent
59933115fc
commit
0982be8579
21 changed files with 93 additions and 169 deletions
|
|
@ -1,4 +1,13 @@
|
|||
module ApplicationHelper
|
||||
|
||||
def active_nav_li(link)
|
||||
if current_page?(link)
|
||||
return 'active'
|
||||
else
|
||||
return ''
|
||||
end
|
||||
end
|
||||
|
||||
def getdatetime(registration, field)
|
||||
if registration.send(field.to_sym).kind_of?(String)
|
||||
DateTime.parse(registration.send(field.to_sym)).strftime("%d %b %H:%M") if registration.send(field.to_sym)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue