Semaine 11
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Home - Network Inventory{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Welcome, {{ username }}.</h1>
|
||||
|
||||
{% if username == "administratort" %}
|
||||
<p>You signed-in with ADMIN rights.</p>
|
||||
{% else %}
|
||||
<p>You signed-in with USER rights.</p>
|
||||
{% endif %}
|
||||
|
||||
<h2>Devices list:</h2>
|
||||
<ul>
|
||||
{% for equipment in equipments %}
|
||||
<li>{{ equipment.hostname }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user