From d9773337f1d450a7f3ffef04e931290aa441641f Mon Sep 17 00:00:00 2001 From: dedeibel Date: Sat, 12 May 2018 14:52:17 +0200 Subject: Added editorconf also for less files --- .editorconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 94148b4..5b8cdce 100644 --- a/.editorconfig +++ b/.editorconfig @@ -6,7 +6,7 @@ end_of_line = lf [*.{html,phtml,sh}] indent_style = tab -[*.{php,js}] +[*.{php,js,less}] indent_style = tab trim_trailing_whitespace = true -- cgit v1.2.3 From ce811ee001a7f8f4e30148d73cccdd33edf942de Mon Sep 17 00:00:00 2001 From: dedeibel Date: Sat, 12 May 2018 14:53:16 +0200 Subject: Add current stream selection to schedule link if present. Meaning: Stay in the current stream type when switching rooms. --- template/assemblies/schedule.phtml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/template/assemblies/schedule.phtml b/template/assemblies/schedule.phtml index 62eb077..461353c 100644 --- a/template/assemblies/schedule.phtml +++ b/template/assemblies/schedule.phtml @@ -17,7 +17,11 @@ + href="createTabObject($stream->getSelection())->getLink($roomname))?>" + + href="createTabObject()->getLink($roomname))?>" + title="Switch to getDisplay())?>" > -- cgit v1.2.3 From 7dc56fec2d7724b6dc909936ad63d6888bbdd309 Mon Sep 17 00:00:00 2001 From: dedeibel Date: Sat, 12 May 2018 17:28:04 +0200 Subject: Fix handling of wide room entries which causes problems on small screens because of missing clearfix entries. Additionally fixing handling of the last line when declaring odd room indizes as wide entries. --- template/overview.phtml | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/template/overview.phtml b/template/overview.phtml index 513f8e5..410c835 100644 --- a/template/overview.phtml +++ b/template/overview.phtml @@ -13,17 +13,29 @@ + requestsWide()) { + $is_wide = 1; + $count++; + /* Increase the index if we are using a whole line, this means when the room is + * an even entry. Odd entries on the other hand steal one index from the + * "previous" row which they originally belong to. */ + if ($idx % 2 != 1) { + $idx++; + } + } + ?> +
+ -- cgit v1.2.3