|
|
|
@ -96,14 +96,14 @@ with this program; if not, write to the Free Software Foundation, Inc., |
|
|
|
<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> |
|
|
|
<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-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' %}"><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-room' %}"><i class="fa fa-home"></i> {% trans "Rooms" %}</a></li> |
|
|
|
</ul> |
|
|
|
</li> |
|
|
|
{% acl_end %} |
|
|
|
{% can_view_app logs %} |
|
|
|
<li><a href="{% url "logs:index" %}"><i class="fa fa-area-chart"></i> {% trans "Statistics" %}</a></li> |
|
|
|
<li><a href="{% url 'logs:index' %}"><i class="fa fa-area-chart"></i> {% trans "Statistics" %}</a></li> |
|
|
|
{% acl_end %} |
|
|
|
{% can_view_app preferences %} |
|
|
|
<li> |
|
|
|
@ -137,12 +137,12 @@ with this program; if not, write to the Free Software Foundation, Inc., |
|
|
|
{% else %} |
|
|
|
{% can_view_any_app users machines cotisations %} |
|
|
|
<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"> |
|
|
|
<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"> |
|
|
|
<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> |
|
|
|
</form> |
|
|
|
@ -153,7 +153,7 @@ with this program; if not, write to the Free Software Foundation, Inc., |
|
|
|
<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> |
|
|
|
<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"></i> {% trans "Log out" %}</a></li> |
|
|
|
</ul> |
|
|
|
</li> |
|
|
|
@ -200,7 +200,7 @@ with this program; if not, write to the Free Software Foundation, Inc., |
|
|
|
<th scope="row">{% trans "Internet access" %}</th> |
|
|
|
<td class="text-right"> |
|
|
|
{% 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 end_access_date=request.user.end_access|date:"d b Y" %}Until {{ end_access_date }}{% endblocktrans %}</i> |
|
|
|
{% else %} |
|
|
|
<i class="text-danger">{% trans "Disabled" %}</i> |
|
|
|
{% endif %} |
|
|
|
@ -210,15 +210,15 @@ with this program; if not, write to the Free Software Foundation, Inc., |
|
|
|
<th scope="row">{% trans "Membership" %}</th> |
|
|
|
<td class="text-right"> |
|
|
|
{% if request_user.is_adherent %} |
|
|
|
<i class="text-success">{% blocktrans with request_user.end_adhesion|date:"d b Y" as date %}Until {{ 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 %} |
|
|
|
<i class="text-danger">{% trans "Not a member" %}</i> |
|
|
|
<i class="text-danger">{% trans "Non member" %}</i> |
|
|
|
{% endif %} |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
<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> |
|
|
|
{% trans "View my profile" %} |
|
|
|
</a> |
|
|
|
@ -236,10 +236,10 @@ with this program; if not, write to the Free Software Foundation, Inc., |
|
|
|
</div> |
|
|
|
<ul class="list-group"> |
|
|
|
{% for interface in interfaces|slice:":5" %} |
|
|
|
<div class="list-group-item">{{interface}}</div> |
|
|
|
<div class="list-group-item">{{ interface }}</div> |
|
|
|
{% endfor %} |
|
|
|
{% 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> |
|
|
|
{% trans "View my machines" %} |
|
|
|
</a> |
|
|
|
|