Index: templates/interface.tmpl |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/templates/interface.tmpl |
@@ -0,0 +1,71 @@ |
+{% extends "templates/default" %} |
+ |
+{% block body %} |
+ <h2>{{ "general_notes" |translate }}</h2> |
+ |
+ {{body|safe}} |
+ |
+ <h2>{{ "methods_and_properties" |translate }}</h2> |
+ <ul> |
+ {% for i in range(0, 100) %} |
+ {% if ("property%dname" % i) in localedata %} |
+ <li> |
+ {{ ("property%dmodifier" % i) |translate }} {{ ("property%dtype" % i) |translate }} |
+ <a href="#prop_{{ ("property%dname" % i) |translate }}" class="propname">{{ ("property%dname" % i) |translate }}</a> |
+ </li> |
+ {% endif %} |
+ {% endfor %} |
+ {% for i in range(0, 100) %} |
+ {% if ("method%dname" % i) in localedata %} |
+ <li> |
+ {{ ("method%dreturn_type" % i) |translate }} |
+ <a href="#method_{{ ("method%dname" % i) |translate }}" class="methodname">{{ ("method%dname" % i) |translate }}</a> |
+ ( |
+ {% for j in range(0, 100) %} |
+ {% if ("method%dargument%dname" % (i, j)) in localedata %} |
+ {{ ("method%dargument%dtype" % (i, j)) |translate }} {{ ("method%dargument%dname" % (i, j))|translate }} |
+ {%- if ("method%dargument%dname" % (i, j + 1)) in localedata %},{% endif %} |
+ {% endif %} |
+ {% endfor %}} |
+ ) |
+ </li> |
+ {% endif %} |
+ {% endfor %} |
+ </ul> |
+ |
+ {% for i in range(0, 100) %} |
+ {% if ("property%dname" % i) in localedata %} |
+ <hr> |
+ <p id="prop_{{ ("property%dname" % i) |translate }}"> |
+ {{ ("property%dmodifier" % i) |translate }} {{ ("property%dtype" % i) |translate }} |
+ <span class="propname">{{ ("property%dname" % i) |translate }}</span> |
+ </p> |
+ <p>{{ ("property%ddescription" % i)|translate|unescape|safe }}</p> |
+ {% endif %} |
+ {% endfor %} |
+ |
+ {% for i in range(0, 100) %} |
+ {% if ("method%dname" % i) in localedata %} |
+ <hr> |
+ <p id="method_{{ ("method%dname" % i) |translate }}"> |
+ {% if ("method%dreturn_type" % i) |translate|truncate(1, True, "") == "I" %} |
+ {{ ("method%dreturn_type" % i) |translate|linkify }} |
+ {{ ("method%dreturn_type" % i) |translate }} |
+ </a> |
+ {% else %} |
+ {{ ("method%dreturn_type" % i) |translate }} |
+ {% endif %} |
+ <span class="methodname">{{ ("method%dname" % i) |translate }}</span> |
+ ( |
+ {% for j in range(0, 100) %} |
+ {% if ("method%dargument%dname" % (i, j)) in localedata %} |
+ {{ ("method%dargument%dtype" % (i, j))|translate }} {{ ("method%dargument%dname" % (i, j))|translate }} |
+ {%- if ("method%dargument%dname" % (i, j + 1)) in localedata %},{% endif %} |
+ {% endif %} |
+ {% endfor %} |
+ ) |
+ </p> |
+ {{ ("method%ddescription" % i) |translate | unescape | safe }} |
+ {% endif %} |
+ {% endfor %} |
+{% endblock %} |