From 3bf0fc69ee1a46d89264ba8232eb4a2d8facfc1b Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 24 May 2022 13:32:02 +0200 Subject: [PATCH] admin: Handle resolution.md display --- admin/index.go | 3 +++ admin/static/js/app.js | 2 +- admin/static/views/exercice-resolution.html | 10 +++++++--- admin/static/views/exercice.html | 4 ++-- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/admin/index.go b/admin/index.go index 74b36661..00dc37eb 100644 --- a/admin/index.go +++ b/admin/index.go @@ -61,6 +61,9 @@ const indextpl = ` text-align: left; text-overflow: ellipsis; } + .col img { + max-width: 100%; + } diff --git a/admin/static/js/app.js b/admin/static/js/app.js index 9467e719..7e06c71f 100644 --- a/admin/static/js/app.js +++ b/admin/static/js/app.js @@ -1619,7 +1619,7 @@ angular.module("FICApp") }); }); $scope.exercices = Exercice.query(); - $scope.fields = ["title", "urlid", "statement", "headline", "overview", "finished", "depend", "gain", "coefficient", "videoURI", "issue", "issuekind"]; + $scope.fields = ["title", "urlid", "statement", "headline", "overview", "finished", "depend", "gain", "coefficient", "videoURI", "resolution", "issue", "issuekind"]; $scope.inSync = false; $scope.syncExo = function() { diff --git a/admin/static/views/exercice-resolution.html b/admin/static/views/exercice-resolution.html index 43736b1f..c6aa19c8 100644 --- a/admin/static/views/exercice-resolution.html +++ b/admin/static/views/exercice-resolution.html @@ -1,11 +1,15 @@

- {{exercice.title}} Vidéo de résolution + {{exercice.title}} Résolution

-
- +
+
+ +
+
+
diff --git a/admin/static/views/exercice.html b/admin/static/views/exercice.html index 3b598d32..e3d5003c 100644 --- a/admin/static/views/exercice.html +++ b/admin/static/views/exercice.html @@ -16,10 +16,10 @@
- + - +