mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-24 20:33:11 +00:00
Title block for compatibility
This commit is contained in:
parent
0c49a3b077
commit
46cb6dddb3
1 changed files with 260 additions and 232 deletions
|
@ -92,28 +92,38 @@ 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" %}
|
||||||
<li><a href="{% url 'users:index-clubs' %}"><i class="fa fa-users"></i> {% trans "Manage the clubs" %}</a></li>
|
</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-eur"></i> {% trans "Manage the subscriptions" %}</a></li>
|
<li><a href="{% url 'cotisations:index' %}"><i
|
||||||
|
class="fa fa-eur"></i> {% trans "Manage the subscriptions" %}</a></li>
|
||||||
{% acl_end %}
|
{% acl_end %}
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
{% acl_end %}
|
{% acl_end %}
|
||||||
{% can_view_app topologie %}
|
{% can_view_app topologie %}
|
||||||
<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" %}
|
||||||
<li><a href="{% url 'topologie:index-ap' %}"><i class="fa fa-wifi"></i> {% trans "Access points" %}</a></li>
|
</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-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>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
{% acl_end %}
|
{% acl_end %}
|
||||||
|
@ -130,7 +140,9 @@ 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="fa 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="fa fa-at"></i> {% trans "Contact" %}</a></li>
|
<li><a href="{% url 'contact' %}"><i class="fa fa-at"></i> {% trans "Contact" %}</a></li>
|
||||||
|
@ -154,10 +166,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
<li>
|
<li>
|
||||||
<form action="{% url 'search:search' %}" class="navbar-form" role="search">
|
<form action="{% url 'search:search' %}" class="navbar-form" role="search">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input type="text" class="form-control" placeholder="{% trans "Search" %}" name="q" id="search-term" {% if search_term %}value="{{ search_term }}"{% endif %}>
|
<input type="text" class="form-control" placeholder="{% trans "Search" %}" name="q"
|
||||||
|
id="search-term" {% if search_term %}value="{{ search_term }}"{% endif %}>
|
||||||
<div class="input-group-btn">
|
<div class="input-group-btn">
|
||||||
<button class="btn btn-default" type="submit"><i class="fa fa-search"></i></button>
|
<button class="btn btn-default" type="submit"><i class="fa fa-search"></i></button>
|
||||||
<a href="{% url 'search:searchp' %}" class="btn btn-default" role="button"><i class="fa fa-plus"></i></a>
|
<a href="{% url 'search:searchp' %}" class="btn btn-default" role="button"><i
|
||||||
|
class="fa fa-plus"></i></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
@ -166,10 +180,14 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
{% 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
|
||||||
<li><a id="toggle_login" href="{% url 'logout' %}"><i class="fa fa-sign-out"></i> {% trans "Log out" %}</a></li>
|
class="fa fa-user"></i> {% trans "My profile" %}</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 %}
|
||||||
|
@ -195,6 +213,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
{# Display breadcrumbs #}
|
{# Display breadcrumbs #}
|
||||||
{% block breadcrumbs %}{% endblock %}
|
{% block breadcrumbs %}{% endblock %}
|
||||||
|
|
||||||
|
{# Some pages need a title block #}
|
||||||
|
{% block content_title %}{% if title %}<h2>{{ title }}</h2>{% endif %}{% endblock %}
|
||||||
|
|
||||||
{# Display django.contrib.messages as Bootstrap alerts #}
|
{# Display django.contrib.messages as Bootstrap alerts #}
|
||||||
{% bootstrap_messages %}
|
{% bootstrap_messages %}
|
||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
|
@ -218,7 +239,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
<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 end_access_date=request.user.end_access|date:"d b Y" %}Until {{ end_access_date }}{% endblocktrans %}</i>
|
<i class="text-success">
|
||||||
|
{% blocktrans with end_access_date=request.user.end_access|date:"d b Y" %}Until
|
||||||
|
{{ end_access_date }}{% endblocktrans %}</i>
|
||||||
{% else %}
|
{% else %}
|
||||||
<i class="text-danger">{% trans "Disabled" %}</i>
|
<i class="text-danger">{% trans "Disabled" %}</i>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -228,7 +251,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
<th scope="row">{% trans "Membership" %}</th>
|
<th scope="row">{% trans "Membership" %}</th>
|
||||||
<td class="text-right">
|
<td class="text-right">
|
||||||
{% if request_user.is_adherent %}
|
{% if request_user.is_adherent %}
|
||||||
<i class="text-success">{% blocktrans with end_adhesion_date=request_user.end_adhesion|date:"d b Y" %}Until {{ end_adhesion_date }}{% endblocktrans %}</i>
|
<i class="text-success">
|
||||||
|
{% blocktrans with end_adhesion_date=request_user.end_adhesion|date:"d b Y" %}
|
||||||
|
Until {{ end_adhesion_date }}{% endblocktrans %}</i>
|
||||||
{% else %}
|
{% else %}
|
||||||
<i class="text-danger">{% trans "Non member" %}</i>
|
<i class="text-danger">{% trans "Non member" %}</i>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -236,7 +261,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<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>
|
||||||
|
@ -250,14 +276,16 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
{% if request_user.is_authenticated %}
|
{% if request_user.is_authenticated %}
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h4>{% blocktrans count interfaces|length as nb %}{{ nb }} active machine{% plural %}{{ nb }} active machines{% endblocktrans %}</h4>
|
<h4>{% blocktrans count interfaces|length as nb %}{{ nb }} active machine{% plural %}{{ nb }}
|
||||||
|
active machines{% endblocktrans %}</h4>
|
||||||
</div>
|
</div>
|
||||||
<ul class="list-group">
|
<ul class="list-group">
|
||||||
{% for interface in interfaces|slice:":5" %}
|
{% for interface in interfaces|slice:":5" %}
|
||||||
<div class="list-group-item">{{ interface }}</div>
|
<div class="list-group-item">{{ interface }}</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if interfaces|length > 5 %}
|
{% if interfaces|length > 5 %}
|
||||||
<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-plus"></i>
|
<i class="fa fa-plus"></i>
|
||||||
{% trans "View my machines" %}
|
{% trans "View my machines" %}
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in a new issue