distgit: hotfix for links to accounts.fpo

Signed-off-by: Lenka Segura <lsegura@redhat.com>
This commit is contained in:
Lenka Segura
2025-08-11 13:07:02 +02:00
parent ca10dca26a
commit 8177465025
2 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
From c6e29ce1b760cf38198835d80d7f33c3057b0eac Mon Sep 17 00:00:00 2001
From: Lenka Segura <lsegura@redhat.com>
Date: Tue, 18 Mar 2025 21:41:48 +0100
Subject: [PATCH] Fix link to accounts.fpo for staging for adding user to a
group
Signed-off-by: Lenka Segura <lsegura@redhat.com>
---
pagure/themes/srcfpo/templates/group_info.html | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/pagure/themes/srcfpo/templates/group_info.html b/pagure/themes/srcfpo/templates/group_info.html
index 03f5be88..5e36f21e 100644
--- a/pagure/themes/srcfpo/templates/group_info.html
+++ b/pagure/themes/srcfpo/templates/group_info.html
@@ -74,10 +74,17 @@
<div><strong>{{group.users|count}} Members</strong></div>
{% if g.authenticated and (member or admin) %}
<div id="add_user_button" class="btn btn-outline-primary btn-sm ml-auto">
+ {% if config['APP_URL'] == 'https://src.stg.fedoraproject.org/' %}
+ <a href="https://accounts.stg.fedoraproject.org/group/{{
+ group.group_name }}">
+ <span class="fa fa-user-plus"></span>
+ </a>
+ {% else %}
<a href="https://accounts.fedoraproject.org/group/{{
group.group_name }}">
<span class="fa fa-user-plus"></span>
</a>
+ {% endif %}
</div>
{% endif %}
</div>
--
2.49.0

View File

@@ -484,3 +484,12 @@
tags:
- grokmirror
- pkgs
# https://pagure.io/fedora-infrastructure/issue/12428
- name: Hotfix for links to accounts.fpo
ansible.posix.patch:
src: files/0001-Fix-link-to-accounts.fpo-for-staging-for-adding-user.patch
dest: /usr/lib/python3.6/site-packages/pagure/themes/srcfpo/templates/group_info.html
tags:
- pagure
- hotfix