Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: templates/interface.tmpl

Issue 6021528219025408: Issue #1170 More progress migrating adblockplus.org to our CMS. (Closed)
Patch Set: Created Sept. 1, 2014, 10:45 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « templates/default.tmpl ('k') | templates/preftable.tmpl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 %}
« no previous file with comments | « templates/default.tmpl ('k') | templates/preftable.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld