mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Fix logs and add pagination on the page
This commit is contained in:
@@ -8,6 +8,7 @@ from django.contrib.auth.decorators import login_required
|
|||||||
from django.template import RequestContext
|
from django.template import RequestContext
|
||||||
from django.http import Http404
|
from django.http import Http404
|
||||||
|
|
||||||
|
from eve_proxy.models import ApiAccessLog
|
||||||
from eve_api.forms import EveAPIForm
|
from eve_api.forms import EveAPIForm
|
||||||
from eve_api.models import EVEAccount, EVEPlayerCharacter, EVEPlayerCorporation
|
from eve_api.models import EVEAccount, EVEPlayerCharacter, EVEPlayerCorporation
|
||||||
from eve_api.tasks import import_apikey_result
|
from eve_api.tasks import import_apikey_result
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block title %}EVE API Access Logs{% endblock %}
|
{% block title %}EVE API Access Logs{% endblock %}
|
||||||
|
{% load pagination_tags %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<h1>Access Logs for API Key {{ userid }}</h1>
|
<h1>Access Logs for API Key {{ userid }}</h1>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr><th>Service ID</th><th>Date / Time</th><th>API</th></tr>
|
<tr><th>Service ID</th><th>Date / Time</th><th>API</th></tr>
|
||||||
|
{% autopaginate logs 20 %}
|
||||||
{% for log in logs %}
|
{% for log in logs %}
|
||||||
<tr><td>{{ log.service }}</td>
|
<tr><td>{{ log.service }}</td>
|
||||||
<td>{{ log.time_access }}</td>
|
<td>{{ log.time_access }}</td>
|
||||||
@@ -15,5 +16,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
{% paginate %}
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user