feat(index): Add outline link

This commit is contained in:
Tom Hubrecht 2025-01-27 21:30:13 +01:00
parent 57fb348bdb
commit 2b08dfa40e
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc
4 changed files with 47 additions and 34 deletions

View file

@ -1,4 +1,5 @@
<a class="button bt-link is-light {{ link.color }}" href="{% url link.reverse %}">
<a class="button bt-link is-light {{ link.color }}"
href="{% if link.absolute %}{{ link.reverse }}{% else %}{% url link.reverse %}{% endif %}">
{% if link.icon %}<span class="icon"><i class="ti ti-{{ link.icon }}"></i></span>{% endif %}
<span>{{ link.text }}</span>
</a>

View file

@ -27,10 +27,18 @@ class Link(NamedTuple):
reverse: str
text: str | Promise
icon: str | None = None
absolute: bool = False
AUTHENTICATED_LINKS: list[Link] = [
Link("is-primary", "dgsi:dgn-profile", _("Mon profil"), "user-filled"),
Link(
"is-success",
"https://docs.dgnum.eu/s/doc-publique",
_("Aide et Documention"),
"help",
True,
),
Link("is-primary", "dgsi:dgn-legal_documents", _("Documents Légaux"), "script"),
Link("is-info", "dgsi:dgn-services", _("Services proposés"), "apps-filled"),
Link("is-success", "dgsi:dgn-archives", _("Archives"), "archive"),

View file

@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: dgsi.dgnum.eu\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-01-25 19:38+0100\n"
"PO-Revision-Date: 2025-01-25 19:40+0100\n"
"POT-Creation-Date: 2025-01-27 21:28+0100\n"
"PO-Revision-Date: 2025-01-27 21:29+0100\n"
"Last-Translator: Tom Hubrecht <tom.hubrecht@dgnum.eu>\n"
"Language-Team: French\n"
"Language: fr\n"
@ -73,64 +73,64 @@ msgstr ""
msgid "De préférence l'adresse '@ens.psl.eu'"
msgstr "Preferably the @ens.psl.eu address"
#: dgsi/models.py:27
#: dgsi/models.py:25
msgid "Nom du service proposé"
msgstr "Name of the proposed service"
#: dgsi/models.py:28
#: dgsi/models.py:26
msgid "Adresse du service"
msgstr "Address of the service"
#: dgsi/models.py:29
#: dgsi/models.py:27
msgid "Icône du service"
msgstr "Icon of the service"
#: dgsi/models.py:39 dgsi/models.py:85
#: dgsi/models.py:37 dgsi/models.py:83
msgid "Date du document"
msgstr "Document date"
#: dgsi/models.py:40 dgsi/models.py:86
#: dgsi/models.py:38 dgsi/models.py:84
msgid "Nom du document"
msgstr "Document name"
#: dgsi/models.py:41 dgsi/models.py:87
#: dgsi/models.py:39 dgsi/models.py:85
msgid "Fichier PDF"
msgstr "PDF file"
#: dgsi/models.py:63 dgsi/models.py:64 dgsi/templates/dgsi/archive_list.html:22
#: dgsi/models.py:61 dgsi/models.py:62 dgsi/templates/dgsi/archive_list.html:21
#: dgsi/templates/dgsi/legal_documents.html:26
msgid "Statuts"
msgstr "Statutes"
#: dgsi/models.py:76 dgsi/templates/dgsi/legal_documents.html:30
#: dgsi/models.py:74 dgsi/templates/dgsi/legal_documents.html:30
msgid "Règlement Intérieur"
msgstr "Bylaws"
#: dgsi/models.py:77 dgsi/templates/dgsi/archive_list.html:37
#: dgsi/models.py:75 dgsi/templates/dgsi/archive_list.html:34
msgid "Règlements Intérieurs"
msgstr "Bylaws"
#: dgsi/models.py:93
#: dgsi/models.py:91
msgid "Document d'archives"
msgstr "Archive document"
#: dgsi/models.py:94
#: dgsi/models.py:92
msgid "Documents d'archives"
msgstr "Archive documents"
#: dgsi/models.py:136
#: dgsi/models.py:134
msgid "Correspondance de login"
msgstr "Login mapping"
#: dgsi/models.py:137
#: dgsi/models.py:135
msgid "Correspondances de login"
msgstr "Login mappings"
#: dgsi/models.py:168
#: dgsi/models.py:166
msgid "Derniers Statuts acceptés"
msgstr "Latest accepted Statutes"
#: dgsi/models.py:175
#: dgsi/models.py:173
msgid "Dernier Règlement Intérieur accepté"
msgstr "Latest accepted Bylaws"
@ -153,8 +153,8 @@ msgstr "Archives of the DGNum"
msgid "Création de compte Kanidm"
msgstr "Kanidm account creation"
#: dgsi/templates/dgsi/create_kanidm_account.html:14
#: dgsi/templates/dgsi/create_self_account.html:14
#: dgsi/templates/dgsi/create_kanidm_account.html:15
#: dgsi/templates/dgsi/create_self_account.html:15
msgid "Enregistrer"
msgstr "Save"
@ -237,52 +237,56 @@ msgstr "Create a DGNum account"
msgid "Services accessibles via la DGNum"
msgstr "Services accessible via the DGNum"
#: dgsi/views.py:32
#: dgsi/views.py:34
msgid "Mon profil"
msgstr "My profile"
#: dgsi/views.py:33
#: dgsi/views.py:38
msgid "Aide et Documention"
msgstr "Help and documentation"
#: dgsi/views.py:42
msgid "Documents Légaux"
msgstr "Legal Documents"
#: dgsi/views.py:34
#: dgsi/views.py:43
msgid "Services proposés"
msgstr "Services offered"
#: dgsi/views.py:35
#: dgsi/views.py:44
msgid "Archives"
msgstr "Archives"
#: dgsi/views.py:42
#: dgsi/views.py:51
msgid "Créer un compte Kanidm"
msgstr "Create a Kanidm account"
#: dgsi/views.py:46 shared/templates/_hero.html:76
#: dgsi/views.py:55 shared/templates/_hero.html:76
msgid "Interface d'administration"
msgstr "Administration interface"
#: dgsi/views.py:83
#: dgsi/views.py:92
msgid "Compte DGNum inexistant."
msgstr "No existing DGNum account."
#: dgsi/views.py:100
#: dgsi/views.py:109
msgid "Compte DGNum créé avec succès"
msgstr "DGNum account successfully created"
#: dgsi/views.py:116
#: dgsi/views.py:125
msgid "<b>Vous possédez déjà un compte DGNum !</b>"
msgstr "<b>You already have a DGNum account!</b>"
#: dgsi/views.py:128
#: dgsi/views.py:137
msgid "Vous devez accepter les Statuts et le Règlement Intérieur."
msgstr "You must accept the Statutes and the Bylaws."
#: dgsi/views.py:241
#: dgsi/views.py:262
#, python-format
msgid "Type de document invalide : %(kind)s"
msgstr "Invalid document type: %(kind)s"
#: dgsi/views.py:271
#: dgsi/views.py:292
#, python-format
msgid "Compte DGNum pour %(displayname)s [%(name)s] créé."
msgstr "DGNum account for %(displayname)s [%(name)s] created."
@ -301,11 +305,11 @@ msgid ""
msgstr ""
"Software developed for and by the <a href=https://dgnum.eu>DGNum</a>."
#: shared/templates/_hero.html:18 shared/templates/account/logout.html:6
#: shared/templates/_hero.html:21 shared/templates/account/logout.html:6
msgid "Déconnexion"
msgstr "Logout"
#: shared/templates/_hero.html:27 shared/templates/socialaccount/login.html:6
#: shared/templates/_hero.html:30 shared/templates/socialaccount/login.html:6
msgid "Connexion"
msgstr "Login"