maatma: Display a message for domain without dnssec

This commit is contained in:
nemunaire 2022-03-10 18:14:12 +01:00
parent 6e89a8011f
commit 52b218f2ea
3 changed files with 21 additions and 2 deletions

View file

@ -178,12 +178,24 @@
</td>
</tr>
</tbody>
<tbody style="font-family: monospace" ng-if="!domainDS">
<tbody style="font-family: monospace" ng-if="!domainDS && dn_has_dnssec(domain)">
<tr>
<td colspan="4">Vous n'avez défini aucun enregistrement DS pour l'instant</td>
</tr>
</tbody>
<tfoot>
<tbody style="font-family: monospace" ng-if="!domainDS && !dn_has_dnssec(domain)">
<tr>
<td colspan="4" class="bg-warning">
<ng-pluralize count="dn_without_dnssec.length" when="{'one': 'Le domaine', 'other': 'Les domaines'}"></ng-pluralize>
<span ng-repeat="(i,dn) in dn_without_dnssec"><span ng-if="$middle">, </span><span ng-if="!$first && $last"> et </span>{{ dn }}</span>
ne
<ng-pluralize count="dn_without_dnssec.length" when="{'one': 'permet', 'other': 'permettent'}"></ng-pluralize>
pas de réaliser ce bonus.
Pour le réaliser, demande à <a href="https://matrix.to/#/#maatma:nemunai.re" target="_blank">@nemunaire</a> de passer sur un des autres domaines, ou utilise ton propre domaine si tu en as un.
</td>
</tr>
</tbody>
<tfoot ng-if="dn_has_dnssec(domain)">
<tr>
<td colspan="5">
<button class="btn btn-primary" ng-click="addDS(domain)">Ajouter un enregistrement DS</button>