mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-08-19 21:53:41 +00:00
Use debian font-awesome
Rather than going online, use fonts-font-awesome debian package. Also icons were updated to font-awesome 4.7.0 (in debian 9).
This commit is contained in:
parent
e571751c70
commit
4a4ba06112
7 changed files with 49 additions and 38 deletions
|
@ -14,4 +14,5 @@ libjs-jquery
|
||||||
libjs-jquery-ui
|
libjs-jquery-ui
|
||||||
libjs-jquery-timepicker
|
libjs-jquery-timepicker
|
||||||
libjs-bootstrap
|
libjs-bootstrap
|
||||||
|
fonts-font-awesome
|
||||||
graphviz
|
graphviz
|
||||||
|
|
|
@ -29,15 +29,15 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
{% block sidebar %}
|
{% block sidebar %}
|
||||||
{% can_view_app logs %}
|
{% can_view_app logs %}
|
||||||
<a class="list-group-item list-group-item-info" href="{% url "logs:index" %}">
|
<a class="list-group-item list-group-item-info" href="{% url "logs:index" %}">
|
||||||
<i class="fa fa-clipboard-list"></i>
|
<i class="fa fa-clipboard"></i>
|
||||||
{% trans "Summary" %}
|
{% trans "Summary" %}
|
||||||
</a>
|
</a>
|
||||||
<a class="list-group-item list-group-item-info" href="{% url "logs:stats-logs" %}">
|
<a class="list-group-item list-group-item-info" href="{% url "logs:stats-logs" %}">
|
||||||
<i class="fa fa-calendar-alt"></i>
|
<i class="fa fa-calendar"></i>
|
||||||
{% trans "Events" %}
|
{% trans "Events" %}
|
||||||
</a>
|
</a>
|
||||||
<a class="list-group-item list-group-item-info" href="{% url "logs:stats-general" %}">
|
<a class="list-group-item list-group-item-info" href="{% url "logs:stats-general" %}">
|
||||||
<i class="fa fa-chart-area"></i>
|
<i class="fa fa-area-chart"></i>
|
||||||
{% trans "General" %}
|
{% trans "General" %}
|
||||||
</a>
|
</a>
|
||||||
<a class="list-group-item list-group-item-info" href="{% url "logs:stats-models" %}">
|
<a class="list-group-item list-group-item-info" href="{% url "logs:stats-models" %}">
|
||||||
|
|
|
@ -174,6 +174,7 @@ BOOTSTRAP_BASE_URL = '/javascript/bootstrap/'
|
||||||
# Use only absolute paths with '/' delimiters even on Windows
|
# Use only absolute paths with '/' delimiters even on Windows
|
||||||
STATICFILES_DIRS = (
|
STATICFILES_DIRS = (
|
||||||
os.path.join(BASE_DIR, 'static').replace('\\', '/'),
|
os.path.join(BASE_DIR, 'static').replace('\\', '/'),
|
||||||
|
"/usr/share/fonts-font-awesome/",
|
||||||
)
|
)
|
||||||
# Directory where the static files served by the server are stored
|
# Directory where the static files served by the server are stored
|
||||||
STATIC_ROOT = os.path.join(BASE_DIR, 'static_files')
|
STATIC_ROOT = os.path.join(BASE_DIR, 'static_files')
|
||||||
|
|
|
@ -31,9 +31,9 @@ def tick(valeur, autoescape=False):
|
||||||
|
|
||||||
if isinstance(valeur,bool):
|
if isinstance(valeur,bool):
|
||||||
if valeur == True:
|
if valeur == True:
|
||||||
result = '<i style="color: #1ECA18;" class="fas fa-check"></i>'
|
result = '<i style="color: #1ECA18;" class="fa fa-check"></i>'
|
||||||
else:
|
else:
|
||||||
result = '<i style="color: #D10115;" class="fas fa-times"></i>'
|
result = '<i style="color: #D10115;" class="fa fa-times"></i>'
|
||||||
return mark_safe(result)
|
return mark_safe(result)
|
||||||
|
|
||||||
else: # if the value is not a boolean, display it as if tick was not called
|
else: # if the value is not a boolean, display it as if tick was not called
|
||||||
|
|
|
@ -13,6 +13,13 @@ footer p {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Reserv space for icons and align */
|
||||||
|
a > i.fa {
|
||||||
|
display: inline-block;
|
||||||
|
width: 26px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
/* Reduce the padding for the logo in the navbar-brand so the 32px-high logo
|
/* Reduce the padding for the logo in the navbar-brand so the 32px-high logo
|
||||||
* is centered in the navbar */
|
* is centered in the navbar */
|
||||||
.navbar-brand {
|
.navbar-brand {
|
||||||
|
|
|
@ -39,22 +39,15 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
<meta property="og:image" content="{% static 'images/logo_re2o.svg' %}"/>
|
<meta property="og:image" content="{% static 'images/logo_re2o.svg' %}"/>
|
||||||
<meta property="og:image:type" content="image/svg"/>
|
<meta property="og:image:type" content="image/svg"/>
|
||||||
<meta property="og:image:alt" content="The Re2o logo"/>
|
<meta property="og:image:alt" content="The Re2o logo"/>
|
||||||
<meta property="og:description" content="{% trans "Networking managing website endorsed by FedeRez." %}" />
|
<meta property="og:description" content="{% trans "Networking managing website endorsed by FedeRez." %}" />
|
||||||
<script defer src="https://use.fontawesome.com/releases/v5.0.8/js/all.js"></script>
|
|
||||||
|
|
||||||
{# Load CSS and JavaScript #}
|
{# Load CSS #}
|
||||||
{% bootstrap_css %}
|
{% bootstrap_css %}
|
||||||
<link href="/static/css/typeaheadjs.css" rel="stylesheet">
|
<link href="{% static 'css/typeaheadjs.css' %}" rel="stylesheet">
|
||||||
<link href="/static/css/bootstrap-tokenfield.css" rel="stylesheet">
|
<link href="{% static 'css/bootstrap-tokenfield.css' %}" rel="stylesheet">
|
||||||
|
<link href="{% static 'css/font-awesome.min.css' %}" rel="stylesheet">
|
||||||
|
<link href="{% static 'css/base.css' %}" rel="stylesheet">
|
||||||
|
|
||||||
{% bootstrap_javascript %}
|
|
||||||
<script src="/static/js/typeahead/typeahead.js"></script>
|
|
||||||
<script src="/static/js/handlebars/handlebars.js"></script>
|
|
||||||
<script src="/static/js/konami/konami.js"></script>
|
|
||||||
<script src="/static/js/sapphire.js"> var s=Sapphire(); Konami(s.activate); </script>
|
|
||||||
<script src="/static/js/bootstrap-tokenfield/bootstrap-tokenfield.js"></script>
|
|
||||||
<script src="/static/js/shortcuts.js"></script>
|
|
||||||
<link rel="stylesheet" href="{% static 'css/base.css' %}">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel="shortcut icon" type="image/svg" href="{% static 'images/logo_re2o.svg' %}">
|
<link rel="shortcut icon" type="image/svg" href="{% static 'images/logo_re2o.svg' %}">
|
||||||
<title>{{ name_website }} : {% block title %}{% trans "Home" %}{% endblock %}</title>
|
<title>{{ name_website }} : {% block title %}{% trans "Home" %}{% endblock %}</title>
|
||||||
|
@ -78,17 +71,17 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
{% can_view_any_app users machines cotisations %}
|
{% can_view_any_app users machines cotisations %}
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-users"></i> {% trans "Users" %}<span class="caret"></span></a>
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-users"></i> {% trans "Users" %}<span class="caret"></span></a>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
{% can_view_app users %}
|
{% can_view_app users %}
|
||||||
<li><a href="{% url 'users:index' %}"><i class="fa fa-user"></i> {% trans "Manage the users" %}</a></li>
|
<li><a href="{% url 'users:index' %}"><i class="fa fa-user"></i> {% trans "Manage the users" %}</a></li>
|
||||||
<li><a href="{% url 'users:index-clubs' %}"><i class="fa fa-users"></i> {% trans "Manage the clubs" %}</a></li>
|
<li><a href="{% url 'users:index-clubs' %}"><i class="fa fa-users"></i> {% trans "Manage the clubs" %}</a></li>
|
||||||
{% acl_end %}
|
{% acl_end %}
|
||||||
{% can_view_app machines %}
|
{% can_view_app machines %}
|
||||||
<li><a href="{% url 'machines:index' %}"><i class="fa fa-desktop"></i> {% trans "Manage the machines" %}</a></li>
|
<li><a href="{% url 'machines:index' %}"><i class="fa fa-desktop"></i> {% trans "Manage the machines" %}</a></li>
|
||||||
{% acl_end %}
|
{% acl_end %}
|
||||||
{% can_view_app cotisations %}
|
{% can_view_app cotisations %}
|
||||||
<li><a href="{% url 'cotisations:index' %}"><i class="fa fa-dollar-sign"></i> {% trans "Manage the subscriptions" %}</a></li>
|
<li><a href="{% url 'cotisations:index' %}"><i class="fa fa-usd"></i> {% trans "Manage the subscriptions" %}</a></li>
|
||||||
{% acl_end %}
|
{% acl_end %}
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
@ -97,14 +90,14 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-sitemap"></i> {% trans "Topology" %}<span class="caret"></span></a>
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-sitemap"></i> {% trans "Topology" %}<span class="caret"></span></a>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="{% url "topologie:index" %}"><i class="fa fa-microchip"></i> {% trans "Switches" %}</a></li>
|
<li><a href="{% url "topologie:index" %}"><i class="fa fa-microchip"></i> {% trans "Switches" %}</a></li>
|
||||||
<li><a href="{% url "topologie:index-ap" %}"><i class="fa fa-wifi"></i> {% trans "Access points" %}</a></li>
|
<li><a href="{% url "topologie:index-ap" %}"><i class="fa fa-wifi"></i> {% trans "Access points" %}</a></li>
|
||||||
<li><a href="{% url "topologie:index-room" %}"><i class="fa fa-home"></i> {% trans "Rooms" %}</a></li>
|
<li><a href="{% url "topologie:index-room" %}"><i class="fa fa-home"></i> {% trans "Rooms" %}</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
{% acl_end %}
|
{% acl_end %}
|
||||||
{% can_view_app logs %}
|
{% can_view_app logs %}
|
||||||
<li><a href="{% url "logs:index" %}"><i class="fa fa-chart-area"></i> {% trans "Statistics" %}</a></li>
|
<li><a href="{% url "logs:index" %}"><i class="fa fa-area-chart"></i> {% trans "Statistics" %}</a></li>
|
||||||
{% acl_end %}
|
{% acl_end %}
|
||||||
{% can_view_app preferences %}
|
{% can_view_app preferences %}
|
||||||
<li>
|
<li>
|
||||||
|
@ -116,10 +109,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="nav navbar-nav navbar-right">
|
<ul class="nav navbar-nav navbar-right">
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fas fa-info"></i> {% trans "More information" %}<span class="caret"></span></a>
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-info"></i> {% trans "More information" %}<span class="caret"></span></a>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="{% url 'about' %}"><i class="fa fa-info-circle"></i> {% trans "About" %}</a></li>
|
<li><a href="{% url 'about' %}"><i class="fa fa-info-circle"></i> {% trans "About" %}</a></li>
|
||||||
<li><a href="{% url 'contact' %}"><i class="fas fa-at"></i> {% trans "Contact" %}</a></li>
|
<li><a href="{% url 'contact' %}"><i class="fa fa-at"></i> {% trans "Contact" %}</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
{% if not request.user.is_authenticated %}
|
{% if not request.user.is_authenticated %}
|
||||||
|
@ -132,7 +125,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li>
|
<li>
|
||||||
<a id="toggle_login" href="{% url 'login' %}">
|
<a id="toggle_login" href="{% url 'login' %}">
|
||||||
<i class="fa fa-sign-in-alt"></i> {% trans "Log in" %}
|
<i class="fa fa-sign-in"></i> {% trans "Log in" %}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -148,14 +141,14 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</li>
|
</li>
|
||||||
{% acl_end %}
|
{% acl_end %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if request.user.is_authenticated %}
|
{% if request.user.is_authenticated %}
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-user-circle"></i> {{ request.user.pseudo|slice:":15" }} <span class="caret"></span></a>
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-user-circle"></i> {{ request.user.pseudo|slice:":15" }} <span class="caret"></span></a>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="{% url "users:mon-profil" %}"><i class="fa fa-user"></i> {% trans "My profile" %}</a></li>
|
<li><a href="{% url "users:mon-profil" %}"><i class="fa fa-user"></i> {% trans "My profile" %}</a></li>
|
||||||
<li><a id="toggle_login" href="{% url 'logout' %}"><i class="fa fa-sign-out-alt"></i> {% trans "Log out" %}</a></li>
|
<li><a id="toggle_login" href="{% url 'logout' %}"><i class="fa fa-sign-out"></i> {% trans "Log out" %}</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -199,7 +192,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
<td class="text-right">{{ request_user.room }}</td>
|
<td class="text-right">{{ request_user.room }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">{% trans "Internet access" %}</th>
|
<th scope="row">{% trans "Internet access" %}</th>
|
||||||
<td class="text-right">
|
<td class="text-right">
|
||||||
{% if request_user.has_access %}
|
{% if request_user.has_access %}
|
||||||
<i class="text-success">{% blocktrans with request.user.end_access|date:"d b Y" as date %}Until {{ date }}{% endblocktrans %}</i>
|
<i class="text-success">{% blocktrans with request.user.end_access|date:"d b Y" as date %}Until {{ date }}{% endblocktrans %}</i>
|
||||||
|
@ -222,11 +215,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
<div class="list-group">
|
<div class="list-group">
|
||||||
<a class="list-group-item list-group-item-info" role="button"href="{% url "users:mon-profil" %}">
|
<a class="list-group-item list-group-item-info" role="button"href="{% url "users:mon-profil" %}">
|
||||||
<i class="fa fa-user-circle"></i>
|
<i class="fa fa-user-circle"></i>
|
||||||
{% trans "View my profile" %}
|
{% trans "View my profile" %}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>{% trans "You are not logged in." %}</p>
|
<p>{% trans "You are not logged in." %}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% if request_user.is_authenticated %}
|
{% if request_user.is_authenticated %}
|
||||||
|
@ -272,6 +265,15 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
{# Load JavaScript #}
|
||||||
|
{% bootstrap_javascript %}
|
||||||
|
<script src="/static/js/typeahead/typeahead.js"></script>
|
||||||
|
<script src="/static/js/handlebars/handlebars.js"></script>
|
||||||
|
<script src="/static/js/konami/konami.js"></script>
|
||||||
|
<script src="/static/js/sapphire.js"> var s=Sapphire(); Konami(s.activate); </script>
|
||||||
|
<script src="/static/js/bootstrap-tokenfield/bootstrap-tokenfield.js"></script>
|
||||||
|
<script src="/static/js/shortcuts.js"></script>
|
||||||
|
|
||||||
{# Read the documentation for more information #}
|
{# Read the documentation for more information #}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -55,7 +55,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
<div class="panel-body dashboard">
|
<div class="panel-body dashboard">
|
||||||
{% can_create Facture %}
|
{% can_create Facture %}
|
||||||
<a class="btn btn-danger btn-sm" role="button" href="{% url 'cotisations:new-facture' users.id %}">
|
<a class="btn btn-danger btn-sm" role="button" href="{% url 'cotisations:new-facture' users.id %}">
|
||||||
<i class="fas fa-sign-in-alt"></i> {% trans "Pay for a connection" %}
|
<i class="fa fa-sign-in"></i> {% trans "Pay for a connection" %}
|
||||||
</a>
|
</a>
|
||||||
{% acl_else %}
|
{% acl_else %}
|
||||||
{% trans "Ask for someone with the appropriate rights to pay for a connection." %}
|
{% trans "Ask for someone with the appropriate rights to pay for a connection." %}
|
||||||
|
@ -68,7 +68,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
<div class="panel-body dashboard">
|
<div class="panel-body dashboard">
|
||||||
{% can_create Facture %}
|
{% can_create Facture %}
|
||||||
<a class="btn btn-success btn-sm" role="button" href="{% url 'cotisations:new-facture' users.id %}">
|
<a class="btn btn-success btn-sm" role="button" href="{% url 'cotisations:new-facture' users.id %}">
|
||||||
<i class="fas fa-sign-in-alt"></i> {% trans "Extend the connection period" %}
|
<i class="fa fa-sign-in"></i> {% trans "Extend the connection period" %}
|
||||||
</a>
|
</a>
|
||||||
{% acl_end %}
|
{% acl_end %}
|
||||||
</div>
|
</div>
|
||||||
|
@ -79,7 +79,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
<div class="col-sm-6 col-md-4">
|
<div class="col-sm-6 col-md-4">
|
||||||
<div class="panel panel-info">
|
<div class="panel panel-info">
|
||||||
<div class="panel-heading dashboard" data-parent="#accordion" data-toggle="collapse" data-target="#collapse4">
|
<div class="panel-heading dashboard" data-parent="#accordion" data-toggle="collapse" data-target="#collapse4">
|
||||||
{{ users.solde }} <i class="fas fa-euro-sign"></i>
|
{{ users.solde }} <i class="fa fa-euro-sign"></i>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body dashboard">
|
<div class="panel-body dashboard">
|
||||||
<a class="btn btn-primary btn-sm" role="button" href="{% url 'cotisations:credit-solde' users.id %}">
|
<a class="btn btn-primary btn-sm" role="button" href="{% url 'cotisations:credit-solde' users.id %}">
|
||||||
|
|
Loading…
Reference in a new issue