Commit ee92fad76c995a8d047bab2589e28639f04979da

Authored by hitier
1 parent aea0ff9e

Fix navbar

Showing 1 changed file with 7 additions and 8 deletions   Show diff stats
app/templates/base_page.html
... ... @@ -5,18 +5,17 @@
5 5 <link href="{{ url_for('static', filename='css/style.css') }}" rel="stylesheet" type="text/css"/>
6 6 </head>
7 7 <body>
8   -
9   - <nav class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0">
  8 + <nav class="navbar navbar-dark sticky-top bg-dark navbar-expand-lg p-1">
10 9 <a class="navbar-brand col-sm-3 col-md-2 mr-0" href="#">Plan de Charges</a>
11   - {% if not current_user.is_anonymous %}
12   - <span class="navbar-brand">{{current_user.name}}</span>
13   - <ul class="navbar-nav px-3">
  10 + <ul class="navbar-nav ml-auto">
  11 + {% if not current_user.is_anonymous %}
  12 + <li class="nav-item">
  13 + <span class="navbar-brand">{{current_user.name}}</span>
  14 + </li>
14 15 <li class="nav-item text-nowrap">
15 16 <a class="nav-link" href="{{ url_for('auth.logout') }}">Déconnection</a>
16 17 </li>
17   - </ul>
18 18 {% else %}
19   - <ul class="navbar-nav px-3">
20 19 <li class="nav-item text-nowrap">
21 20 <a class="nav-link" href="{{ url_for('auth.login') }}">Connection</a>
22 21 </li>
... ... @@ -26,7 +25,7 @@
26 25  
27 26 <div class="container-fluid">
28 27 <div class="row">
29   - <nav class="col-md-2 d-none d-md-block bg-light sidebar">
  28 + <nav class="col-md-2 d-none d-md-block bg-light sidebar mt-3">
30 29 <div class="sidebar-sticky">
31 30 <ul class="nav flex-column">
32 31 <li class="nav-item">
... ...