From f144b769fedd421f3ec24dfd3a4f10c681192337 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Tue, 4 Jan 2011 17:42:23 +0000 Subject: Lots of good form validation and default actions --- src/rest/templates/emitter.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/rest/templates') 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 @@

{{ resource_name }}

{{ resource_doc }}

{% autoescape off %}{{ status }} {{ reason }}
-{% for key, val in headers.items %}{{ key }}: {{ val }}
+{% for key, val in headers.items %}{{ key }}: {{ val|urlize_quoted_links }}
 {% endfor %}
 {{ content|urlize_quoted_links }}{% endautoescape %}    
-{% if 'GET' in allowed_methods %} +{% if 'read' in resource.allowed_operations %}
Read
{% endif %} -{% if 'POST' in resource.allowed_methods %} +{% if 'create' in resource.allowed_operations %}
{% csrf_token %} @@ -32,7 +32,7 @@
{% endif %} -{% if 'PUT' in resource.allowed_methods %} +{% if 'update' in resource.allowed_operations %}
@@ -43,7 +43,7 @@
{% endif %} -{% if 'DELETE' in resource.allowed_methods %} +{% if 'delete' in resource.allowed_operations %}
{% csrf_token %} -- cgit v1.2.3