-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved arplogs into the staff menu and interface
- Loading branch information
Showing
11 changed files
with
118 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block sub-title %}Logs | {% endblock %} | ||
|
||
{% block content %} | ||
{% include "arpwatch/logs_menu.frag" %} | ||
|
||
<div> | ||
<div style="size:large; float:right;"><strong>{{ device_logs|length }} Logs</strong></div> | ||
<h2>Device Logs - {{ day|date:"M d, Y" }}</h2> | ||
</div> | ||
|
||
<h4 align="center"> | ||
<a href="{% url arpwatch.views.device_logs_by_day previous_day.year previous_day.month previous_day.day %}">« Prev</a> | ||
[ <a href="{% url arpwatch.views.device_logs_today %}">Today</a> ] | ||
<a href="{% url arpwatch.views.device_logs_by_day next_day.year next_day.month next_day.day %}">Next »</a> | ||
</h4> | ||
|
||
<table border=1> | ||
<tr> | ||
<th>Device</th> | ||
<th>Start</th> | ||
<th>End</th> | ||
<th>Duration</th> | ||
<th></th> | ||
</tr> | ||
{% for l in device_logs %} | ||
<tr> | ||
<td><a href="{% url arpwatch.views.device l.device.id %}">{{ l.device }}</a></td> | ||
<td>{{ l.start|date:"h:i a" }}</td> | ||
<td>{{ l.end|date:"h:i a" }}</td> | ||
<td>{{ l.diff }}</td> | ||
<td></td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<div class="submenu"> | ||
<a href="{% url arpwatch.views.device_logs_today %}">device logs</a> | | ||
<a href="{% url arpwatch.views.logins_today %}">user logins</a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block sub-title %}Logs | {% endblock %} | ||
|
||
{% block content %} | ||
{% include "arpwatch/logs_menu.frag" %} | ||
|
||
<div> | ||
<div style="size:large; float:right;"><strong>{{ logs|length }} Logins</strong></div> | ||
<h2>User Logins - {{ day|date:"M d, Y" }}</h2> | ||
</div> | ||
|
||
<h4 align="center"> | ||
<a href="{% url arpwatch.views.logins_by_day previous_day.year previous_day.month previous_day.day %}">« Prev</a> | ||
[ <a href="{% url arpwatch.views.logins_today %}">Today</a> ] | ||
<a href="{% url arpwatch.views.logins_by_day next_day.year next_day.month next_day.day %}">Next »</a> | ||
</h4> | ||
|
||
<table border=1> | ||
<tr> | ||
<th>Time</th> | ||
<th>User</th> | ||
<th>IP Address</th> | ||
<th></th> | ||
</tr> | ||
{% for l in logs %} | ||
<tr> | ||
<td>{{ l.logintime|date:"h:i a" }}</td> | ||
<td>{{ l.user }}</td> | ||
<td>{{ l.ip_address }}</td> | ||
<td></td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters