From f9d4f40823d792dde924c43f39c827b1dee72a86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Mon, 23 Dec 2024 00:44:25 +0100 Subject: [PATCH] Show services menu for superusers. Add forgejo. --- src/project/templates/base.html | 4 ++-- src/services/services.py | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/project/templates/base.html b/src/project/templates/base.html index cad6e87..fadae0f 100644 --- a/src/project/templates/base.html +++ b/src/project/templates/base.html @@ -78,13 +78,13 @@ - {% comment %} + {% if user.is_superuser %}
  • Services
  • - {% endcomment %} + {% endif %}
  • diff --git a/src/services/services.py b/src/services/services.py index 49377da..7a8e99b 100644 --- a/src/services/services.py +++ b/src/services/services.py @@ -57,6 +57,15 @@ class HedgeDocService(ServiceInterface): description = "HedgeDoc service for data.coop" +class ForgejoService(ServiceInterface): + """Forgejo service.""" + + slug = "forgejo" + name = "Forgejo" + url = "https://git.data.coop" + description = "Git service for data.coop" + + class RalllyService(ServiceInterface): """Rallly service."""