We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 375dd08 commit 0891f1cCopy full SHA for 0891f1c
flask_autodoc/templates/autodoc_default.html
@@ -57,9 +57,15 @@ <h1>
57
<div class="mapping">
58
<a id="rule-{{doc.rule|urlencode}}" class="rule"><h2>{{doc.rule|escape}}</h2></a>
59
<ul class="methods">
60
- {% for method in doc.methods -%}
61
- <li class="method">{{method}}</li>
62
- {% endfor %}
+ {% for method in doc.methods -%}
+ {% if method == 'GET' and doc.args == ['None'] %}
+ <a href="{{doc.rule}}" class="getmethod">
63
+ {% endif %}
64
+ <li class="method">{{method}}</li>
65
+ {% if method == 'GET' %}
66
+ </a>
67
68
+ {% endfor %}
69
</ul>
70
<ul class="arguments">
71
{% for arg in doc.args %}
@@ -73,4 +79,4 @@ <h1>
73
79
</div>
74
80
{% endfor %}
75
81
</body>
76
-</html>
82
+</html>
0 commit comments