Add user name in navbar

This commit is contained in:
Edgar P. Burkhart 2023-04-22 09:40:33 +02:00
parent b18088f9d6
commit 88f4f9099b
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
3 changed files with 14 additions and 4 deletions

View file

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 0.0.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-04-21 15:41+0200\n"
"POT-Creation-Date: 2023-04-22 09:41+0200\n"
"PO-Revision-Date: 2022-12-21 17:30+0100\n"
"Last-Translator: edpibu <git@edgarpierre.fr>\n"
"Language-Team: edpibu <git@edgarpierre.fr>\n"
@ -67,7 +67,7 @@ msgid "Budget"
msgstr "Budget"
#: .\models.py:114 .\templates\main\form\snapshot.html:23
#: .\templates\main\index.html:32
#: .\templates\main\index.html:30
msgid "Categories"
msgstr "Catégories"
@ -150,6 +150,7 @@ msgstr "Paiement"
#: .\templates\main\form\snapshot.html:27 .\templates\main\index.html:26
#: .\templates\main\list\transaction.html:6
#: .\templates\main\list\transaction.html:23
#: .\templates\main\month\transaction.html:15
#: .\templates\main\table\snapshot.html:28
msgid "Transactions"
msgstr "Transactions"
@ -170,7 +171,7 @@ msgstr "Aller au contenu principal"
msgid "Home"
msgstr "Accueil"
#: .\templates\main\base.html:38 .\templates\main\index.html:42
#: .\templates\main\base.html:38 .\templates\main\index.html:40
msgid "Snapshots"
msgstr "Relevés"
@ -199,6 +200,10 @@ msgstr "Se déconnecter"
msgid "Log in"
msgstr "Se connecter"
#: .\templates\main\base.html:83
msgid "Logged in as <strong>%(user)s</strong>"
msgstr "Connecté en tant que <strong>%(user)s</strong>"
#: .\templates\main\confirm_delete.html:19
#, python-format
msgid "Are you sure you want do delete <strong>%(object)s</strong> ?"
@ -217,7 +222,7 @@ msgid "New account"
msgstr "Nouveau compte"
#: .\templates\main\form\account.html:19 .\templates\main\form\category.html:15
#: .\templates\main\index.html:28
#: .\templates\main\index.html:44
msgid "History"
msgstr "Historique"

View file

@ -79,6 +79,11 @@
</li>
{% endif %}
</ul>
{% if user %}
<p>
{% blocktranslate %}Logged in as <strong>{{ user }}</strong>{% endblocktranslate %}
</p>
{% endif %}
</nav>
{% endspaceless %}
{% endblock %}