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.
2 parents 694a345 + f44acc7 commit 1aa1963Copy full SHA for 1aa1963
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
+ <li class="method">{{method}}</li>
64
+ </a>
65
+ {% else %}
66
67
+ {% endif %}
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