fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sort_key can has ą, fixes #673
[wolnelektury.git]
/
apps
/
piston
/
templates
/
documentation.html
diff --git
a/apps/piston/templates/documentation.html
b/apps/piston/templates/documentation.html
index
d7b1830
..
8fdfb8f
100644
(file)
--- a/
apps/piston/templates/documentation.html
+++ b/
apps/piston/templates/documentation.html
@@
-16,40
+16,40
@@
</head>
<body>
<h1>API Documentation</h1>
</head>
<body>
<h1>API Documentation</h1>
-
+
{% for doc in docs %}
{% for doc in docs %}
-
+
<h3>{{ doc.name|cut:"Handler" }}:</h3>
<p>
{{ doc.get_doc|default:""|restructuredtext }}
</p>
<h3>{{ doc.name|cut:"Handler" }}:</h3>
<p>
{{ doc.get_doc|default:""|restructuredtext }}
</p>
-
+
<p>
URL: <b>{{ doc.get_resource_uri_template }}</b>
</p>
<p>
URL: <b>{{ doc.get_resource_uri_template }}</b>
</p>
-
+
<p>
Accepted methods: {% for meth in doc.allowed_methods %}<b>{{ meth }}</b>{% if not forloop.last %}, {% endif %}{% endfor %}
</p>
<p>
Accepted methods: {% for meth in doc.allowed_methods %}<b>{{ meth }}</b>{% if not forloop.last %}, {% endif %}{% endfor %}
</p>
-
+
<dl>
{% for method in doc.get_all_methods %}
<dl>
{% for method in doc.get_all_methods %}
-
+
<dt>
method <i>{{ method.name }}</i>({{ method.signature }}){% if method.stale %} <i>- inherited</i>{% else %}:{% endif %}
<dt>
method <i>{{ method.name }}</i>({{ method.signature }}){% if method.stale %} <i>- inherited</i>{% else %}:{% endif %}
-
- </dt>
-
+
+ </dt>
+
{% if method.get_doc %}
<dd>
{{ method.get_doc|default:""|restructuredtext }}
<dd>
{% endif %}
{% if method.get_doc %}
<dd>
{{ method.get_doc|default:""|restructuredtext }}
<dd>
{% endif %}
-
+
{% endfor %}
</dl>
{% endfor %}
</dl>
-
+
{% endfor %}
</body>
</html>
{% endfor %}
</body>
</html>