diff --git a/app/static/css/navbar.css b/app/static/css/navbar.css index 7cb19d3..fcdcf20 100644 --- a/app/static/css/navbar.css +++ b/app/static/css/navbar.css @@ -56,6 +56,11 @@ nav a:focus { transition: opacity .15s ease; /* because Chrome sucks */ } +#light-menu li > a > img { + display: block; width: 60px; flex-shrink: 0; flex-grow: 0; + margin: 0 7px 5px 7px; + border-radius: 10%; +} #light-menu li > a > svg { display: block; width: 25px; flex-shrink: 0; flex-grow: 0; margin: 0 7px; diff --git a/app/templates/base/navbar.html b/app/templates/base/navbar.html index 42c12f2..5a60938 100644 --- a/app/templates/base/navbar.html +++ b/app/templates/base/navbar.html @@ -4,19 +4,6 @@ logo -
  • - {% if current_user.is_authenticated %} - - {% else %} - - {% endif %} - - - -
    Compte
    -
    -
  • -
  • @@ -70,11 +57,25 @@
    Outils
  • + +
  • + {% if current_user.is_authenticated %} + + Avatar de {{ current_user.name }} +
    Compte
    +
    + {% else %} + + + + +
    Compte
    +
    + {% endif %} +
  • diff --git a/app/templates/base/navbar/account.html b/app/templates/base/navbar/account.html index b071393..ef44842 100644 --- a/app/templates/base/navbar/account.html +++ b/app/templates/base/navbar/account.html @@ -2,7 +2,7 @@

    - + Avatar de {{ current_user.name }} {{ current_user.name }}