1
Fork 0
mirror of https://github.com/Steffo99/estus.git synced 2024-11-22 07:34:19 +00:00

Add UTdC logo to the navbar

This commit is contained in:
Steffo 2017-09-12 11:07:10 +02:00
parent 2ed40b7254
commit 1210f381d6
2 changed files with 16 additions and 5 deletions

View file

@ -13,6 +13,17 @@
margin-right: 16px; margin-right: 16px;
} }
.navbar-brand
{
padding-top: 1px;
padding-bottom: 1px;
}
.navbar-brand img
{
height: 100%;
}
body body
{ {
padding-top: 70px; /*Per la navbar*/ padding-top: 70px; /*Per la navbar*/

View file

@ -1,10 +1,10 @@
<nav class="navbar navbar-inverse navbar-fixed-top"> <nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid"> <div class="container-fluid">
<div class="navbar-header"> <div class="navbar-header">
{% if user %} {% if user %}
<a class="navbar-brand" href="/dashboard">Inventario</a> <a class="navbar-brand" href="/dashboard"><img alt="Inventario" src="{{ url_for('static', filename='UTdClogo.png') }}"></a>
{% else %} {% else %}
<a class="navbar-brand active" href="/login">Inventario</a> <a class="navbar-brand" href="/login"><img alt="Inventario" src="{{ url_for('static', filename='UTdClogo.png') }}"></a>
{% endif %} {% endif %}
</div> </div>
{% if user %} {% if user %}
@ -17,9 +17,9 @@
<li class="{% if type is equalto "user" %}active{% endif %}"><a href="/user_list">Utenti</a></li> <li class="{% if type is equalto "user" %}active{% endif %}"><a href="/user_list">Utenti</a></li>
</ul> </ul>
<ul class="nav navbar-nav navbar-right"> <ul class="nav navbar-nav navbar-right">
<p class="navbar-text"> <li class="navbar-text">
{{user}} {{user}}
</p> </li>
<a href="/login" class="btn btn-danger navbar-btn btn-right">Logout</a> <a href="/login" class="btn btn-danger navbar-btn btn-right">Logout</a>
</ul> </ul>
{% endif %} {% endif %}