File tree Expand file tree Collapse file tree 15 files changed +26
-13
lines changed
templates/debug_toolbar/panels Expand file tree Collapse file tree 15 files changed +26
-13
lines changed Original file line number Diff line number Diff line change 1
- {% load i18n %}{% load cycle from future %}
1
+ {% load i18n %}{% load cycle from debug_toolbar_compat %}
2
2
< h4 > {% trans "Summary" %}</ h4 >
3
3
< table >
4
4
< thead >
Original file line number Diff line number Diff line change 1
- {% load i18n %}{% load cycle from future %}
1
+ {% load i18n %}{% load cycle from debug_toolbar_compat %}
2
2
3
3
< h4 > {% trans "Request headers" %}</ h4 >
4
4
Original file line number Diff line number Diff line change 1
- {% load i18n %}{% load cycle from future %}
1
+ {% load i18n %}{% load cycle from debug_toolbar_compat %}
2
2
{% if records %}
3
3
< table >
4
4
< thead >
Original file line number Diff line number Diff line change 1
- {% load i18n %}{% load cycle from future %}
1
+ {% load i18n %}{% load cycle from debug_toolbar_compat %}
2
2
3
3
< h4 > {% trans "View information" %}</ h4 >
4
4
< table >
Original file line number Diff line number Diff line change 1
- {% load i18n %}{% load cycle from future %}
1
+ {% load i18n %}{% load cycle from debug_toolbar_compat %}
2
2
< table >
3
3
< thead >
4
4
< tr >
Original file line number Diff line number Diff line change 1
- {% load i18n %}{% load cycle from future %}
1
+ {% load i18n %}{% load cycle from debug_toolbar_compat %}
2
2
< table >
3
3
< thead >
4
4
< tr >
Original file line number Diff line number Diff line change 1
- {% load i18n l10n %}{% load cycle from future %}{% load static from staticfiles %}
1
+ {% load i18n l10n %}{% load cycle from debug_toolbar_compat %}{% load static from staticfiles %}
2
2
< div class ="djdt-clearfix ">
3
3
< ul class ="djdt-stats ">
4
4
{% for alias, info in databases %}
Original file line number Diff line number Diff line change 1
- {% load i18n %}{% load cycle from future %}{% load static from staticfiles %}
1
+ {% load i18n %}{% load cycle from debug_toolbar_compat %}{% load static from staticfiles %}
2
2
< div class ="djDebugPanelTitle ">
3
3
< a class ="djDebugClose djDebugBack " href =""> </ a >
4
4
< h3 > {% trans "SQL explained" %}</ h3 >
Original file line number Diff line number Diff line change 1
- {% load i18n %}{% load cycle from future %}{% load static from staticfiles %}
1
+ {% load i18n %}{% load cycle from debug_toolbar_compat %}{% load static from staticfiles %}
2
2
< div class ="djDebugPanelTitle ">
3
3
< a class ="djDebugClose djDebugBack " href =""> </ a >
4
4
< h3 > {% trans "SQL profiled" %}</ h3 >
Original file line number Diff line number Diff line change 1
- {% load i18n %}{% load cycle from future %}{% load static from staticfiles %}
1
+ {% load i18n %}{% load cycle from debug_toolbar_compat %}{% load static from staticfiles %}
2
2
< div class ="djDebugPanelTitle ">
3
3
< a class ="djDebugClose djDebugBack " href =""> </ a >
4
4
< h3 > {% trans "SQL selected" %}</ h3 >
Original file line number Diff line number Diff line change 1
- {% load i18n %}{% load cycle from future %}{% load static from staticfiles%}
1
+ {% load i18n %}{% load cycle from debug_toolbar_compat %}{% load static from staticfiles%}
2
2
3
3
< h4 > {% blocktrans count staticfiles_dirs|length as dirs_count %}Static file path{% plural %}Static file paths{% endblocktrans %}</ h4 >
4
4
{% if staticfiles_dirs %}
Original file line number Diff line number Diff line change 1
- {% load i18n %}{% load cycle from future %}{% load static from staticfiles %}
1
+ {% load i18n %}{% load cycle from debug_toolbar_compat %}{% load static from staticfiles %}
2
2
< h4 > {% trans "Resource usage" %}</ h4 >
3
3
< table >
4
4
< colgroup >
Original file line number Diff line number Diff line change 1
- {% load i18n %}{% load cycle from future %}
1
+ {% load i18n %}{% load cycle from debug_toolbar_compat %}
2
2
< table >
3
3
< thead >
4
4
< tr >
Original file line number Diff line number Diff line change
1
+ import django
2
+ from django .template import Library
3
+
4
+ if django .VERSION >= (1 , 8 ):
5
+ from django .template .defaulttags import cycle
6
+ else :
7
+ from django .templatetags .future import cycle
8
+
9
+
10
+ register = Library ()
11
+
12
+
13
+ cycle = register .tag (cycle )
You can’t perform that action at this time.
0 commit comments