Revert "temporarily show participants again in the course-management"
This reverts commit 39db962a2c
.
This commit is contained in:
parent
a9c8c03f08
commit
23fb7747fb
|
@ -53,7 +53,7 @@
|
||||||
./modules/vaultwarden.nix
|
./modules/vaultwarden.nix
|
||||||
./modules/website.nix
|
./modules/website.nix
|
||||||
./modules/zsh.nix
|
./modules/zsh.nix
|
||||||
./modules/course-management
|
./modules/course-management.nix
|
||||||
./modules/courses-phil.nix
|
./modules/courses-phil.nix
|
||||||
./modules/gitea.nix
|
./modules/gitea.nix
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
let
|
let
|
||||||
hostName = "kurse.${config.networking.domain}";
|
hostName = "kurse.${config.networking.domain}";
|
||||||
in
|
in
|
||||||
|
@ -15,11 +15,7 @@ in
|
||||||
services.course-management = {
|
services.course-management = {
|
||||||
inherit hostName;
|
inherit hostName;
|
||||||
enable = true;
|
enable = true;
|
||||||
package = (pkgs.course-management.overrideAttrs (_: {
|
|
||||||
patches = [
|
|
||||||
./0001-show-participants-again.patch
|
|
||||||
];
|
|
||||||
}));
|
|
||||||
settings = {
|
settings = {
|
||||||
secretKeyFile = config.sops.secrets."course-management/secret-key".path;
|
secretKeyFile = config.sops.secrets."course-management/secret-key".path;
|
||||||
adminPassFile = config.sops.secrets."course-management/adminpass".path;
|
adminPassFile = config.sops.secrets."course-management/adminpass".path;
|
|
@ -1,25 +0,0 @@
|
||||||
From 2f0cb978f180d073f02c2327bb627698116135e0 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Rouven Seifert <rouven@rfive.de>
|
|
||||||
Date: Fri, 29 Sep 2023 17:37:01 +0200
|
|
||||||
Subject: [PATCH] show-participants-again
|
|
||||||
|
|
||||||
---
|
|
||||||
course-management/course/templates/subject/info.html | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/course-management/course/templates/subject/info.html b/course-management/course/templates/subject/info.html
|
|
||||||
index 55f1620..d1724a4 100644
|
|
||||||
--- a/course-management/course/templates/subject/info.html
|
|
||||||
+++ b/course-management/course/templates/subject/info.html
|
|
||||||
@@ -55,7 +55,7 @@
|
|
||||||
{% if course.saturated %}
|
|
||||||
<span class="badge badge-danger">{% trans 'full' %}</span>
|
|
||||||
{% else %}
|
|
||||||
- <span class="badge badge-success badge-pill">{% trans 'free places' %}</span>
|
|
||||||
+ <span class="badge badge-success badge-pill">{{ course.enrolled_students }}/{{ course.max_participants }}</span>
|
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
|
||||||
<span class="badge badge-secondary">{% trans 'unavailable' %}</span>
|
|
||||||
--
|
|
||||||
2.42.0
|
|
||||||
|
|
Loading…
Reference in a new issue