From 395ddc798992d316a66e1c8709cac4f2fe006839 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 23 Nov 2023 14:46:01 +0100 Subject: [PATCH] Added help icons to some admin pages and fixed worker pipeline for github to show current version instead of version sha --- .github/workflows/deploy-workers.yml | 2 +- web/assets/css/home.css | 2 +- .../admin/admin_tabs/course-import.gohtml | 16 ++++++++-- .../course/manage/course_settings.gohtml | 5 +++ web/ts/custom-elements/elements.ts | 6 ++++ web/ts/custom-elements/help-icon.ts | 31 +++++++++++++++++++ web/ts/entry/user.ts | 2 +- web/ts/global.ts | 3 ++ web/tsconfig.json | 2 +- 9 files changed, 62 insertions(+), 7 deletions(-) create mode 100644 web/ts/custom-elements/elements.ts create mode 100644 web/ts/custom-elements/help-icon.ts diff --git a/.github/workflows/deploy-workers.yml b/.github/workflows/deploy-workers.yml index 444c17cb8..bf9d2811c 100644 --- a/.github/workflows/deploy-workers.yml +++ b/.github/workflows/deploy-workers.yml @@ -54,6 +54,6 @@ jobs: context: ./${{ matrix.module }} pull: true push: true - build-args: version=${{ steps.vars.outputs.sha_short }} + build-args: version=${{ github.ref_name }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} diff --git a/web/assets/css/home.css b/web/assets/css/home.css index 6803a68cd..057a8f7b4 100644 --- a/web/assets/css/home.css +++ b/web/assets/css/home.css @@ -414,4 +414,4 @@ label:has(~ .tum-live-input) { .tum-live-markdown a { border-bottom: 1px solid black; -} +} \ No newline at end of file diff --git a/web/template/admin/admin_tabs/course-import.gohtml b/web/template/admin/admin_tabs/course-import.gohtml index ea3e189e9..bc7b327da 100644 --- a/web/template/admin/admin_tabs/course-import.gohtml +++ b/web/template/admin/admin_tabs/course-import.gohtml @@ -1,6 +1,7 @@ {{define "course-import"}}

Course Import

+