From 589329b01ccb77b5f7263569cea7a62539f3f7dc Mon Sep 17 00:00:00 2001 From: Felix Hamann Date: Sat, 9 Jun 2018 21:24:50 +0200 Subject: [PATCH] no tabs for narrow screens and properly activated nav-items --- static/js/tabber.js | 10 ++++++---- templates/course.hamlet | 3 --- templates/widgets/asidenav.hamlet | 3 ++- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/static/js/tabber.js b/static/js/tabber.js index cad12b1aa..38fb43578 100644 --- a/static/js/tabber.js +++ b/static/js/tabber.js @@ -80,9 +80,11 @@ }; - // apply plugin to all available tab-groups - $('.tab-group').each(function(i, t) { - $(t).tabgroup(); - }) + // apply plugin to all available tab-groups if on wide screen + if (window.innerWidth > 768) { + $('.tab-group').each(function(i, t) { + $(t).tabgroup(); + }); + } }); })($); diff --git a/templates/course.hamlet b/templates/course.hamlet index f652a33b5..d8f1fd5f7 100644 --- a/templates/course.hamlet +++ b/templates/course.hamlet @@ -66,9 +66,6 @@ Do 15.04.18 Do 18.04.18 NotGraded - - - Neues Übungsblatt anlegen

Übungsgruppen diff --git a/templates/widgets/asidenav.hamlet b/templates/widgets/asidenav.hamlet index cd00430be..2ab729e25 100644 --- a/templates/widgets/asidenav.hamlet +++ b/templates/widgets/asidenav.hamlet @@ -17,7 +17,8 @@ $newline never WiSe 17/18
    $forall (Course{..}, courseRoute, pageActions) <- favourites -
  • + $# TODO: this list-item should also be marked as active if one of its children is shown +
  • #{courseShorthand}
    #{courseName}