aboutsummaryrefslogtreecommitdiffstats
path: root/src/rest/templates/emitter.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/rest/templates/emitter.html')
-rw-r--r--src/rest/templates/emitter.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rest/templates/emitter.html b/src/rest/templates/emitter.html
index f5d0df08..8be41b7c 100644
--- a/src/rest/templates/emitter.html
+++ b/src/rest/templates/emitter.html
@@ -12,17 +12,17 @@
<h1>{{ resource_name }}</h1>
<p>{{ resource_doc }}</p>
<pre>{% autoescape off %}<b>{{ status }} {{ reason }}</b>
-{% for key, val in headers.items %}<b>{{ key }}:</b> {{ val }}
+{% for key, val in headers.items %}<b>{{ key }}:</b> {{ val|urlize_quoted_links }}
{% endfor %}
{{ content|urlize_quoted_links }}{% endautoescape %} </pre>
-{% if 'GET' in allowed_methods %}
+{% if 'read' in resource.allowed_operations %}
<div class='action'>
<a href='{{ request.path }}'>Read</a>
</div>
{% endif %}
-{% if 'POST' in resource.allowed_methods %}
+{% if 'create' in resource.allowed_operations %}
<div class='action'>
<form action="{{ request.path }}" method="POST">
{% csrf_token %}
@@ -32,7 +32,7 @@
</div>
{% endif %}
-{% if 'PUT' in resource.allowed_methods %}
+{% if 'update' in resource.allowed_operations %}
<div class='action'>
<form action="{{ request.path }}" method="POST">
<input type="hidden" name="{{ resource.METHOD_PARAM}}" value="PUT" />
@@ -43,7 +43,7 @@
</div>
{% endif %}
-{% if 'DELETE' in resource.allowed_methods %}
+{% if 'delete' in resource.allowed_operations %}
<div class='action'>
<form action="{{ request.path }}" method="POST">
{% csrf_token %}