From c114e294372e1991e5e64de7b0f6e9898b7f91c7 Mon Sep 17 00:00:00 2001 From: Felix Hamann Date: Thu, 5 Jul 2018 23:24:06 +0200 Subject: [PATCH] no empty tables on profile page and spacing for containers --- templates/default-layout.lucius | 8 ++++++++ templates/homeUser.hamlet | 4 +++- templates/table/layout.hamlet | 5 ++++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/templates/default-layout.lucius b/templates/default-layout.lucius index 09ac88517..804ce17ff 100644 --- a/templates/default-layout.lucius +++ b/templates/default-layout.lucius @@ -231,6 +231,14 @@ h4 { outline: 5px auto -webkit-focus-ring-color; } +/* CONTAINER */ +.container { + + + .container { + margin-top: 20px; + } +} + /* GENERAL BUTTON STYLES */ input[type="submit"], input[type="button"], diff --git a/templates/homeUser.hamlet b/templates/homeUser.hamlet index d4640e016..714e68b32 100644 --- a/templates/homeUser.hamlet +++ b/templates/homeUser.hamlet @@ -9,16 +9,18 @@ Die Implementierung von Uni2work ist noch nicht abgeschlossen. +

Anstehende Übungsblätter
^{sheetTable} - +

Anstehende Klausuren TODO +

Anstehende Kursanmeldungen TODO diff --git a/templates/table/layout.hamlet b/templates/table/layout.hamlet index a6578422c..ce079c6dc 100644 --- a/templates/table/layout.hamlet +++ b/templates/table/layout.hamlet @@ -1,7 +1,10 @@ $newline never
- ^{table} + $if null wRows + Keine anstehenden Übungsblätter. + $else + ^{table} $if pageCount > 1
    $forall p <- pageNumbers