The schedule takes you to the current day and time

The schedule takes you to the current day and time in case that the current date belongs to the conference schedule.

Closes https://github.com/openSUSE/osem/issues/1057
This commit is contained in:
Ana 2016-07-02 17:23:56 +02:00
parent 39c4261859
commit bf7f5ce09f
5 changed files with 50 additions and 12 deletions

View file

@ -335,4 +335,14 @@ module ApplicationHelper
# speaker picture padding: 4px 2px; and we want the picture to be a circle
speaker_height(rooms) - 4
end
def carousel_item_class(number, carousel_number, num_cols, col)
item_class = 'item'
item_class += ' first' if number == 0
item_class += ' last' if number == (carousel_number - 1)
if (col && ((col / num_cols) == number)) || (!col && number == 0)
item_class += ' active'
end
item_class
end
end