* Add ID and track to the event overview

* Get rid of the timezones in the schedule, need to deal with that on output
* Skip auth token verfiy on schedule updates
* Make it possible to withdraw confirmed submissions
* Show if people are not registerd
This commit is contained in:
Henne Vogelsang 2013-06-14 13:17:40 +02:00 committed by Henne Vogelsang
parent 2b5e40bc96
commit 73013bd3e6
14 changed files with 96 additions and 48 deletions

View file

@ -20,6 +20,15 @@ module ApplicationHelper
return !!current_user.role?(role.to_s.camelize)
end
# Same as redirect_to(:back) if there is a valid HTTP referer, otherwise redirect_to()
def redirect_back_or_to(options = {}, response_status = {})
if request.env["HTTP_REFERER"]
redirect_to(:back)
else
redirect_to(options, response_status)
end
end
# TODO Output better html
def format_comments(comment, padding = 0)
result = ""