Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 49d8ee0

Browse files
author
Dominik František Bučík
committed
fix: 🐛 Fix templates perun-aup and perun-user, update dicts
1 parent 27afa04 commit 49d8ee0

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

dictionaries/perun.definition.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,25 @@
9595
"en": "Now you will be redirected to registration to Perun system.",
9696
"cs": "Nyní budete přesměrování na registraci do systému Perun."
9797
},
98+
"register_header": {
99+
"en": "No user account found",
100+
"cs": "Uživatelský ůčet nebyl nalezen"
101+
},
98102
"register_text": {
99-
"en": "Oops! It seems you have tried to access service via Perun AAI, but yo do not have an account. Let's fix that!",
100-
"cs": "Ups! Zdá se, že jste se pokusil(a) přihlásit ke službě skrz Perun AAI, no nemáte uživatelský účet. Pojďme to napravit!"
103+
"en": "Oops! It seems you have tried to access service via the AAI, but the home organization account you have used is not associated with any AAI user account. Let's fix that!",
104+
"cs": "Ups! Zdá se, že jste se pokusil(a) přihlásit ke službě skrz AAI, no Váš účet z domovské organizace použitý pro přihlášení není asociován s žádným uživatelským účtem v AAI. Pojďme to napravit!"
101105
},
102106
"register_button": {
103107
"en": "Proceed to register for an account",
104108
"cs": "Pokračovat na registraci ůčtu"
105109
},
110+
"aup_header": {
111+
"en": "Acceptable Use Policy",
112+
"cs": " Podmínky užití služby (AUP)"
113+
},
106114
"aup_text": {
107-
"en": "Oops! It seems you have tried to access service via Perun AAI, but you have not approved the Acceptable Use Policy (AUP). Let's fix that!",
108-
"cs": "Ups! Vyzerá to, že jste se pokousil(a) přihlásit ke službě skrze Perun AAI, no neschválili jste Podmínky užití služby (AUP). Pojďme to napravit!"
115+
"en": "Oops! It seems you have tried to access service via the AAI, but you have not approved the Acceptable Use Policy (AUP). Let's fix that!",
116+
"cs": "Ups! Zdá se, že jste se pokousil(a) přihlásit ke službě skrz AAI, no neschválili jste Podmínky užití služby (AUP). Pojďme to napravit!"
109117
},
110118
"aup_button": {
111119
"en": "Proceed to approval of the AUP",

templates/perun-aup-tpl.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22

33
use SimpleSAML\Module\perun\Auth\Process\PerunAup;
44

5+
$this->data['header'] = $this->t('{perun:perun:aup_header}');
6+
57
$this->includeAtTemplateBase('includes/header.php');
68

79
?>
810

911
<div class="row">
10-
<div class="offset-1 col-10 offset-sm-1 col-sm-10 offset-md-2 col-md-8 offset-lg-3 col-lg-6 offset-xl-3 col-xl-6">
12+
<div>
1113
<p><?php echo $this->t('{perun:perun:aup_text}'); ?></p>
12-
<a class="btn btn-block" href="<?php echo $this->data[PerunAup::PARAM_APPROVAL_URL]; ?>">
14+
<a class="btn btn-block btn-primary" href="<?php echo $this->data[PerunAup::PARAM_APPROVAL_URL]; ?>">
1315
<?php echo $this->t('{perun:perun:aup_button}'); ?>
1416
</a>
1517
</div>

templates/perun-user-tpl.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22

33
use SimpleSAML\Module\perun\Auth\Process\PerunUser;
44

5+
$this->data['header'] = $this->t('{perun:perun:register_header}');
6+
57
$this->includeAtTemplateBase('includes/header.php');
68

79
?>
810

911
<div class="row">
10-
<div class="offset-1 col-10 offset-sm-1 col-sm-10 offset-md-2 col-md-8 offset-lg-3 col-lg-6 offset-xl-3 col-xl-6">
12+
<div>
1113
<p><?php echo $this->t('{perun:perun:register_text}'); ?></p>
12-
<a class="btn btn-block" href="<?php echo $this->data[PerunUser::PARAM_REGISTRATION_URL]; ?>">
14+
<a class="btn btn-block btn-primary" href="<?php echo $this->data[PerunUser::PARAM_REGISTRATION_URL]; ?>">
1315
<?php echo $this->t('{perun:perun:register_button}'); ?>
1416
</a>
1517
</div>

0 commit comments

Comments
 (0)