From 88f4f9099bb4f3a9c31144aaa2a6ed08ca26d0b4 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Sat, 22 Apr 2023 09:40:33 +0200 Subject: [PATCH] Add user name in navbar --- nummi/main/locale/fr/LC_MESSAGES/django.mo | Bin 3435 -> 3538 bytes nummi/main/locale/fr/LC_MESSAGES/django.po | 13 +++++++++---- nummi/main/templates/main/base.html | 5 +++++ 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/nummi/main/locale/fr/LC_MESSAGES/django.mo b/nummi/main/locale/fr/LC_MESSAGES/django.mo index 26ea30bed3345da07fde5cb42033516418b82314..a7f3afafc73a0d279d3f4d0c598add86fbdc8f76 100644 GIT binary patch delta 1506 zcmaLXO-NKx7{>8;)X7qFN=?m4nM6lT&C2|2G)r1Y(JB|!rXdGu(U^`xwQ!Jdp|uE9 zq=GPtq>oK$5Y@&)+_`WOL1e3l5P~RZVL|_A=G3yoeb4XQbI(1WcV?|<#UEeINt-g# zVPXeSlVWxfLuq8B8LwFm-obR7$Bp<3x8NeS;al8*d1TU0mVu?H_O+<@8v8un)Bsmd6PQHJX%^MdW8|`VvP^u58gL0U;0kWS_wN1^>iw^%_rE9Z z<7Vsbfodt57u6t(OdaL9`eJ7pa#=N55bKe}+bPrlXHXN0U>5ef`(bxKj#}_EW-z|Z zQpm%nSb$5&Wgp43g3qV{zM%&AiJIsy)O)GSQtb*cvE`@<)Vlf>SKoLucQ3H-+E?&oNcn>=~W-na*I-{yXAEPoC%f~`2L48k6sOOj6^AXg<#*oXV zGB|(De1}^;eHv*5>STcH?I1!>D$B zne4w_yhH_k+6e0Y8frq5?*5kZF0y!ggxaxr=K|_Xm$434Q4`CiQ7YylU%M5cb~K1u zXltB;UOb9A%hRZa7jQf3c?sS?4g4IrY=KPemXWdS18M>R(J}rB&@EwC!4PJ5fw%8#@T4Jrl)Ve?v1R?VVB?kwS!sN}`3(hVLYl zf=R4l;=I@I**7=lz3B-a>+9`}^aRdD1L0U86dN4qi}tpcR}RG@168q5ovWBDO&?9G g>+Fk0BWDNSJP1Uhfx&QeFwj2~`Oi!DGZ#I70B)ay%>V!Z delta 1403 zcmX}sO-PhM9LMqh>a&{eYPM~y`Q$>iS#D}(ZJNEQ1%U@at%E`l6hu%E7##|Epga|U zAt6PVKuE}gu|?1&3G-5yioh;LFVJD3JXnYD(D%1HHas(*nR(`!|I9qk?t4F16D-8M zyGH6HZzQLR%m%Q*qaclj&0=^5OK}2M;S^TkGdzfMSb`pfj8K$g3^l$M^?V(2SrbL2 zSzs9|tLZpe=&<9ieFha^2(^F_)SAXo6FopKo1lo`V^qNBsDQ7q4Bxo+N7VBRsOP`s z+ksim-B?5}`%R$%%czMw8tSib#!>fu3N~$9P!rdq7Se=KYJMQ49Ws3b2Hla2XY-ghIxgNvxoqMvZGjJ=YcC z{CUQ@UB?O3f=;^jS?2|0^L80^V#CgxsCPP!TF@gb#wq0MwrSK!zC>;C18V$t)GJ&H zsAymrvu?m@OkxWvU@vmnAce-ALmsg!sD)q08oZ4fKZzRm1Ql=wwbOU*{wLJ)U!B2E zD*E03MJ`KlP8yIxokTP0$Xik4dXP^cA6!SNq@C#hV>?-|iy{BhA!^!~?|SxPi>o*2 z_piydgMF^E5$nnA`HnaN(acr zwym(MW*Rzn?O6Y2wPYRRVY1TBvBt2UX{DyKQA&~dtF--OCb2fM4tx_?X=?%7Gd3Ld VL%Xu~!uLbj!O{^gTN#}V{R69>V{-ri diff --git a/nummi/main/locale/fr/LC_MESSAGES/django.po b/nummi/main/locale/fr/LC_MESSAGES/django.po index ab25ea2..a2c06f1 100644 --- a/nummi/main/locale/fr/LC_MESSAGES/django.po +++ b/nummi/main/locale/fr/LC_MESSAGES/django.po @@ -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 \n" "Language-Team: edpibu \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 %(user)s" +msgstr "Connecté en tant que %(user)s" + #: .\templates\main\confirm_delete.html:19 #, python-format msgid "Are you sure you want do delete %(object)s ?" @@ -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" diff --git a/nummi/main/templates/main/base.html b/nummi/main/templates/main/base.html index 406d810..c58e059 100644 --- a/nummi/main/templates/main/base.html +++ b/nummi/main/templates/main/base.html @@ -79,6 +79,11 @@ {% endif %} + {% if user %} +

+ {% blocktranslate %}Logged in as {{ user }}{% endblocktranslate %} +

+ {% endif %} {% endspaceless %} {% endblock %}