[Python-modules-commits] r33352 - in packages/circuits/trunk/debian (2 files)

eriol-guest at users.alioth.debian.org eriol-guest at users.alioth.debian.org
Sun Jul 12 16:34:44 UTC 2015


    Date: Sunday, July 12, 2015 @ 16:34:43
  Author: eriol-guest
Revision: 33352

Refresh 02_remove_templatebuiltins_js.patch

Modified:
  packages/circuits/trunk/debian/changelog
  packages/circuits/trunk/debian/patches/02_remove_templatebuiltins_js.patch

Modified: packages/circuits/trunk/debian/changelog
===================================================================
--- packages/circuits/trunk/debian/changelog	2015-07-12 16:09:54 UTC (rev 33351)
+++ packages/circuits/trunk/debian/changelog	2015-07-12 16:34:43 UTC (rev 33352)
@@ -5,12 +5,14 @@
     - Use pypi.debian.net redirector.
   * debian/patches/01_disable_sphinxcontrib_extensions.patch
     - Refresh.
+  * debian/patches/02_remove_templatebuiltins_js.patch
+    - Refresh.
   * debian/patches/04_fix-python3-sintax-error.patch
     - Remove since it is not needed anymore.
   * debian/patches/05_fix-pil-import.patch
     - Remove since it is not needed anymore.
 
- -- Daniele Tricoli <eriol at mornie.org>  Sun, 12 Jul 2015 18:08:34 +0200
+ -- Daniele Tricoli <eriol at mornie.org>  Sun, 12 Jul 2015 18:33:02 +0200
 
 circuits (2.1.0-2) unstable; urgency=low
 

Modified: packages/circuits/trunk/debian/patches/02_remove_templatebuiltins_js.patch
===================================================================
--- packages/circuits/trunk/debian/patches/02_remove_templatebuiltins_js.patch	2015-07-12 16:09:54 UTC (rev 33351)
+++ packages/circuits/trunk/debian/patches/02_remove_templatebuiltins_js.patch	2015-07-12 16:34:43 UTC (rev 33352)
@@ -1,14 +1,48 @@
 Description: Remove templatebuiltins.js because it contains names of Django
 builtin tags and filters not used in circuits documentation.
 Author: Daniele Tricoli <eriol at mornie.org>
+Forwarded: https://github.com/circuits/circuits/pull/106
+Last-Update: 2015-07-12
+
 --- a/docs/source/_themes/om/layout.html
 +++ b/docs/source/_themes/om/layout.html
-@@ -18,7 +18,7 @@
+@@ -18,39 +18,6 @@
  
  {% block extrahead %}
  {{ super() }}
 -<script type="text/javascript" src="{{ pathto('templatebuiltins.js', 1) }}"></script>
-+<script type="text/javascript" src=""></script>
- <script type="text/javascript">
- (function($) {
-     if (!django_template_builtins) {
+-<script type="text/javascript">
+-(function($) {
+-    if (!django_template_builtins) {
+-       // templatebuiltins.js missing, do nothing.
+-       return;
+-    }
+-    $(document).ready(function() {
+-        // Hyperlink Django template tags and filters
+-        var base = "{{ pathto('ref/templates/builtins') }}";
+-        if (base == "#") {
+-            // Special case for builtins.html itself
+-            base = "";
+-        }
+-        // Tags are keywords, class '.k'
+-        $("div.highlight\\-html\\+django span.k").each(function(i, elem) {
+-             var tagname = $(elem).text();
+-             if ($.inArray(tagname, django_template_builtins.ttags) != -1) {
+-                 var fragment = tagname.replace(/_/, '-');
+-                 $(elem).html("<a href='" + base + "#" + fragment + "'>" + tagname + "</a>");
+-             }
+-        });
+-        // Filters are functions, class '.nf'
+-        $("div.highlight\\-html\\+django span.nf").each(function(i, elem) {
+-             var filtername = $(elem).text();
+-             if ($.inArray(filtername, django_template_builtins.tfilters) != -1) {
+-                 var fragment = filtername.replace(/_/, '-');
+-                 $(elem).html("<a href='" + base + "#" + fragment + "'>" + filtername + "</a>");
+-             }
+-        });
+-    });
+-})(jQuery);
+-</script>
+ {% endblock %}
+ 
+ {% block document %}




More information about the Python-modules-commits mailing list