From 4393828cfd848b3b5b187e226f701b2b09fe5812 Mon Sep 17 00:00:00 2001
From: Dominik Frantisek Bucik <bucik@ics.muni.cz>
Date: Tue, 16 Jul 2024 12:40:56 +0200
Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20More=20clear=20rext=20for?=
 =?UTF-8?q?=20regs=20into=20groups=20and=20VOS?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../src/main/resources/localization/messages_cs.properties    | 1 +
 .../src/main/resources/localization/messages_en.properties    | 1 +
 .../webapp/WEB-INF/views/unauthorized_not_in_env_units.jsp    | 4 ++--
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/perun-oidc-server-webapp/src/main/resources/localization/messages_cs.properties b/perun-oidc-server-webapp/src/main/resources/localization/messages_cs.properties
index 0f0f2fad5..df5a9260d 100644
--- a/perun-oidc-server-webapp/src/main/resources/localization/messages_cs.properties
+++ b/perun-oidc-server-webapp/src/main/resources/localization/messages_cs.properties
@@ -86,6 +86,7 @@ phone_number=Telefon
 403_not_in_env_vos_groups_hdr=P\u0159\u00EDstup zam\u00EDtnut
 403_not_in_env_vos_groups_msg=Tato str\u00E1nka se V\u00E1m zobrazuje, proto\u017Ee nespl\u0148ujete podm\u00EDnky \u010Dlenstv\u00ED v organiza\u010Dn\u00EDch jednotk\u00E1ch AAI.
 403_not_in_env_vos_groups_urls=Pomoc\u00ED n\u00E1sleduj\u00FA\u00EDc\u00EDch odkaz\u016F se m\u016F\u017Eete do organiza\u010Dn\u00EDch jednotek registrovat. Pokud nevid\u00EDte \u017E\u00E1dn\u00E9 odkazy, kontaktujte spr\u00E1ve slu\u017Eby pro p\u0159idelen\u00ED p\u0159\u00EDstupu.
+403_not_in_env_vos_groups_urls_register=Zaregistrovat se do {0}
 403_not_in_env_vos_groups_client_contact=Pokud si mysl\u00EDte, \u017Ee v\u00E1m byl p\u0159\u00EDstup odep\u0159en nepr\u00E1vem, nebo chcete p\u0159\u00EDstup z\u00EDskat, kontaktujte spr\u00E1vce slu\u017Eby pomoc\u00ED kontakt\u016F n\u00ED\u017Ee.
 
 403_not_logged_in_hdr=P\u0159\u00EDstup zam\u00EDtnut
diff --git a/perun-oidc-server-webapp/src/main/resources/localization/messages_en.properties b/perun-oidc-server-webapp/src/main/resources/localization/messages_en.properties
index 4e05cdcc7..344f643fe 100644
--- a/perun-oidc-server-webapp/src/main/resources/localization/messages_en.properties
+++ b/perun-oidc-server-webapp/src/main/resources/localization/messages_en.properties
@@ -85,6 +85,7 @@ phone_number=Phone
 403_not_in_env_vos_groups_hdr=Access denied
 403_not_in_env_vos_groups_msg=You see this page because you are not allowed to access this service. The reason is that you are not member of the required organizational units.
 403_not_in_env_vos_groups_urls=Please register into the required units using the links below. If you see no links, please get in touch with the service operator to grant you access.
+403_not_in_env_vos_groups_urls_register=Register into {0}
 403_not_in_env_vos_groups_client_contact=If you need more information about the access requirements, please use one of the contacts of the service operator below.
 
 403_not_logged_in_hdr=Access denied
diff --git a/perun-oidc-server-webapp/src/main/webapp/WEB-INF/views/unauthorized_not_in_env_units.jsp b/perun-oidc-server-webapp/src/main/webapp/WEB-INF/views/unauthorized_not_in_env_units.jsp
index 0a6997700..7622d9089 100644
--- a/perun-oidc-server-webapp/src/main/webapp/WEB-INF/views/unauthorized_not_in_env_units.jsp
+++ b/perun-oidc-server-webapp/src/main/webapp/WEB-INF/views/unauthorized_not_in_env_units.jsp
@@ -26,8 +26,8 @@ request.setAttribute("cssLinks", cssLinks);
         <c:if test="${not empty registrationUrls}">
             <ul>
                 <c:forEach var="entry" items="${registrationUrls}">
-                    <a href="<c:out value="${entry.key}" />" target="_blank">
-                        <c:out value="${entry.value}" />
+                    <a href="<c:out value="${entry.key}" />" target="_blank" class="btn-link">
+                        <spring:message code="403_not_in_env_vos_groups_urls_register" arguments="${entry.value}"/>
                     </a>
                 </c:forEach>
             </ul>
-- 
GitLab