Finish moving the eve_api functions out to the eve_api app

This commit is contained in:
2011-01-13 12:58:41 +00:00
parent 846964f778
commit d34ca5bfa5
9 changed files with 144 additions and 94 deletions

View File

@@ -0,0 +1,19 @@
{% extends "base.html" %}
{% block title %}Add EVE API Key{% endblock %}
{% block content %}
<p>Please fill in your API key as provided on the <a
href="http://eve-online.com/api">EVE Online API
page</a> and a optional description.</p>
<form action="{% url eve_api.views.eveapi_add %}" method="post">
<table>
{{ form.as_table }}
</table>
<br />
{% csrf_token %}
<input type="submit" value="Add Key" />
</form>
{% endblock %}

View File

@@ -0,0 +1,19 @@
{% extends "base.html" %}
{% block title %}EVE API Access Logs{% endblock %}
{% block content %}
<h1>Access Logs for API Key {{ userid }}</h1>
<table>
<tr><th>Service ID</th><th>Date / Time</th><th>API</th></tr>
{% for log in logs %}
<tr><td>{{ log.service }}</td>
<td>{{ log.time_access }}</td>
<td>{{ log.document }}</td>
</tr>
{% endfor %}
</table>
{% endblock %}