forked from progrium/postbin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bin.html
36 lines (36 loc) · 1.3 KB
/
bin.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{% extends 'base.html' %}
{% block title %}PostBin - {{ bin.name }}{% endblock %}
{% block content %}
<p>All POST requests to this URL are logged for you to see here, sorted newest to oldest.</p>
<ul>
{% for post in posts %}
<li id="{{ post.id }}">
<div>
<a href="#{{ post.id }}" title="A unique ID for this request">#{{ post.id }}</a> @
{{ post.created|time:"H:i" }} {{ post.created|date:"M d Y" }}
--
{{ post.remote_addr }}
{% if post.query_string %}?{{ post.query_string }}{% endif %}
<!-- Headers:
{% for h in post.headers.items %}{{ h.0 }}: {{ h.1 }}
{% endfor %}
-->
</div>
<table>
{% for part in post %}
<tr>
<td title="{{ part.0 }}" valign="top" class="key">{{ part.0 }}</td>
<td>{% ifequal part.0 "body" %}<pre>{% endifequal %}{{ part.1|escape }}{% ifequal part.0 "body" %}</pre>{% endifequal %}</td></tr>
{% endfor %}
</table>
</li>
{% endfor %}
</ul>
<form action="?test" method="post">
<input type="hidden" name="foo" value="bar" />
<input type="hidden" name="bar" value="baz" />
<input type="hidden" name="bar" value="baz two" />
<input type="submit" value="Test Post" />
</form>
<a href="/">Back Home</a>
{% endblock %}