From deb12052b51f2a01e05e80ea9af181af0e3c6dae Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 4 Dec 2018 04:11:09 +0100 Subject: [PATCH] sync: include headline in exercice overview, as it is difficult to retrieve otherwise --- admin/sync/exercices.go | 3 --- dashboard/static/index.html | 9 +++++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/admin/sync/exercices.go b/admin/sync/exercices.go index f0ff4ea1..049abb73 100644 --- a/admin/sync/exercices.go +++ b/admin/sync/exercices.go @@ -61,9 +61,6 @@ func SyncExercices(i Importer, theme fic.Theme) []string { } ovrvw := strings.Split(overview, "\n") headline := ovrvw[0] - if len(ovrvw) > 1 { - overview = strings.Join(ovrvw[1:], "\n") - } statement, err := getFileContent(i, path.Join(theme.Path, edir, "statement.txt")) if err != nil { diff --git a/dashboard/static/index.html b/dashboard/static/index.html index 01ff4f41..f1010d7a 100644 --- a/dashboard/static/index.html +++ b/dashboard/static/index.html @@ -186,9 +186,10 @@