diff options
author | Dan McGee <dan@archlinux.org> | 2014-10-18 13:48:07 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2014-10-18 13:48:07 -0500 |
commit | 2f19529c922172007ff3894ad0e0fca0b3e33f5b (patch) | |
tree | 7287ec88e69e2d09e6c73e6a9ba3a013b354c9ab /templates/packages/details.html | |
parent | f4a6eff33815a713b1141ea94a872bd7c6233699 (diff) |
Convert details sub-tempates to Jinja2
This is a start at improving performance of rendering the package
details page, our most-visited and slowest page on the production
website. The Django template system is not very efficient due to our
heavy use of broken out templates and pulling of various attributes and
such on related packages.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/packages/details.html')
-rw-r--r-- | templates/packages/details.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/packages/details.html b/templates/packages/details.html index bfa2de16..c4c1f6b2 100644 --- a/templates/packages/details.html +++ b/templates/packages/details.html @@ -134,19 +134,19 @@ {% with pkg.provides.all as all_related %}{% if all_related %} <tr> <th>Provides:</th> - <td class="wrap relatedto">{% include "packages/details_relatedto.html" %}</td> + <td class="wrap relatedto">{% include "packages/details_relatedto.html.jinja" %}</td> </tr> {% endif %}{% endwith %} {% with pkg.replaces.all as all_related %}{% if all_related %} <tr> <th>Replaces:</th> - <td class="wrap relatedto">{% include "packages/details_relatedto.html" %}</td> + <td class="wrap relatedto">{% include "packages/details_relatedto.html.jinja" %}</td> </tr> {% endif %}{% endwith %} {% with pkg.conflicts.all as all_related %}{% if all_related %} <tr> <th>Conflicts:</th> - <td class="wrap relatedto">{% include "packages/details_relatedto.html" %}</td> + <td class="wrap relatedto">{% include "packages/details_relatedto.html.jinja" %}</td> </tr> {% endif %}{% endwith %} {% with pkg.reverse_conflicts as rev_conflicts %}{% if rev_conflicts %} @@ -205,7 +205,7 @@ <h3 title="{{ pkg.pkgname }} has the following dependencies"> Dependencies ({{deps|length}})</h3> {% if deps %}<ul id="pkgdepslist"> - {% for depend in deps %}{% include "packages/details_depend.html" %}{% endfor %} + {% for depend in deps %}{% include "packages/details_depend.html.jinja" %}{% endfor %} </ul>{% endif %} </div> {% endwith %} @@ -214,7 +214,7 @@ <h3 title="Packages that require {{ pkg.pkgname }}"> Required By ({{rqdby|length}})</h3> {% if rqdby %}<ul id="pkgreqslist"> - {% for req in rqdby %}{% include "packages/details_requiredby.html" %}{% endfor %} + {% for req in rqdby %}{% include "packages/details_requiredby.html.jinja" %}{% endfor %} </ul>{% endif %} </div> {% endwith %} |