Browse Source

Updated gitignore to dont keep non-misago debug toolbar templates

Ralfp 12 years ago
parent
commit
2ec11023e2

+ 3 - 1
.gitignore

@@ -188,4 +188,6 @@ static/avatars/custom.gif
 unidecode/**
 unidecode/**
 yaml/**
 yaml/**
 dev-manage.py
 dev-manage.py
-path.py
+path.py
+!templates/debug_toolbar/panels/acl.html
+templates/debug_toolbar/**

+ 0 - 54
templates/debug_toolbar/base.html

@@ -1,54 +0,0 @@
-{% load i18n %}
-<style type="text/css">
-@media print { #djDebug {display:none;}}
-</style>
-<link rel="stylesheet" href="{{ STATIC_URL }}debug_toolbar/css/toolbar.min.css" type="text/css">
-<script type="text/javascript" src="{{ STATIC_URL }}debug_toolbar/js/toolbar.min.js"></script>
-<div id="djDebug" style="display:none;" dir="ltr">
-	<div style="display:none;" id="djDebugToolbar">
-		<ul id="djDebugPanelList">
-			{% if panels %}
-			<li><a id="djHideToolBarButton" href="#" title="{% trans "Hide Toolbar" %}">{% trans "Hide" %} &raquo;</a></li>
-			{% else %}
-			<li id="djDebugButton">DEBUG</li>
-			{% endif %}
-			{% for panel in panels %}
-				<li class="djDebugPanelButton">
-					{% if panel.has_content %}
-						<a href="{{ panel.url|default:"#" }}" title="{{ panel.title }}" class="{{ panel.dom_id }}">
-					{% else %}
-					    <div class="contentless">
-					{% endif %}
-					{{ panel.nav_title }}
-					{% with panel.nav_subtitle as subtitle %}
-						{% if subtitle %}<br /><small>{{ subtitle }}</small>{% endif %}
-					{% endwith %}
-					{% if panel.has_content %}
-						</a>
-					{% else %}
-					    </div>
-					{% endif %}
-				</li>
-			{% endfor %}
-		</ul>
-	</div>
-	<div style="display:none;" id="djDebugToolbarHandle">
-		<a title="{% trans "Show Toolbar" %}" id="djShowToolBarButton" href="#">&laquo;</a>
-	</div>
-	{% for panel in panels %}
-		{% if panel.has_content %}
-			<div id="{{ panel.dom_id }}" class="panelContent">
-				<div class="djDebugPanelTitle">
-					<a href="" class="djDebugClose">{% trans "Close" %}</a>
-					<h3>{{ panel.title|safe }}</h3>
-				</div>
-				<div class="djDebugPanelContent">
-				    <div class="scroll">
-				        {{ panel.content|safe }}
-				    </div>
-				</div>
-			</div>
-		{% endif %}
-	{% endfor %}
-	<div id="djDebugWindow" class="panelContent"></div>
-</div>

+ 0 - 69
templates/debug_toolbar/panels/cache.html

@@ -1,69 +0,0 @@
-{% load i18n %}
-<h3>{% trans "Summary" %}</h3>
-<table>
-	<thead>
-	<tr>
-		<th>{% trans "Total Calls" %}</th>
-		<th>{% trans "Total Time" %}</th>
-		<th>{% trans "Cache Hits" %}</th>
-		<th>{% trans "Cache Misses" %}</th>
-	</tr>
-	</thead>
-	<tbody>
-	<tr>
-		<td>{{ total_calls }}</td>
-		<td>{{ total_time }} ms</td>
-		<td>{{ hits }}</td>
-		<td>{{ misses }}</td>
-	</tr>
-	</tbody>
-</table>
-<h3>{% trans "Commands" %}</h3>
-<table>
-	<thead>
-	<tr>
-	{% for name in counts.iterkeys %}
-		<th>{{ name }}</th>
-	{% endfor %}
-	</tr>
-	</thead>
-	<tbody>
-	<tr>
-	{% for value in counts.itervalues %}
-		<td>{{ value }}</td>
-	{% endfor %}
-	</tr>
-	</tbody>
-</table>
-{% if calls %}
-<h3>{% trans "Calls" %}</h3>
-<table>
-	<thead>
-		<tr>
-			<th colspan="2">{% trans "Time (ms)" %}</th>
-			<th>{% trans "Type" %}</th>
-			<th>{% trans "args" %}</th>
-			<th>{% trans "kwargs" %}</th>
-			<th>{% trans "Backend" %}</th>
-		</tr>
-	</thead>
-	<tbody>
-	{% for call in calls %}
-		<tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}" id="cacheMain_{{ forloop.counter }}">
-			<td class="toggle">
-				<a class="djToggleSwitch" data-toggle-name="cacheMain" data-toggle-id="{{ forloop.counter }}" data-toggle-open="+" data-toggle-close="-" href="javascript:void(0)">+</a>
-			</td>
-			<td>{{ call.time|floatformat:"4" }}</td>
-			<td>{{ call.name|escape }}</td>
-			<td>{{ call.args|escape }}</td>
-			<td>{{ call.kwargs|escape }}</td>
-			<td>{{ call.backend }}</td>
-		</tr>
-		<tr class="djUnselected djDebugHoverable {% cycle 'djDebugOdd' 'djDebugEven' %} djToggleDetails_{{ forloop.counter }}" id="cacheDetails_{{ forloop.counter }}">
-			<td colspan="1"></td>
-			<td colspan="5"><pre class="stack">{{ call.trace }}</pre></td>
-		</tr>
-	{% endfor %}
-	</tbody>
-</table>
-{% endif %}

+ 0 - 17
templates/debug_toolbar/panels/headers.html

@@ -1,17 +0,0 @@
-{% load i18n %}
-<table>
-	<thead>
-		<tr>
-			<th>{% trans "Key" %}</th>
-			<th>{% trans "Value" %}</th>
-		</tr>
-	</thead>
-	<tbody>
-		{% for key, value in headers.iteritems %}
-			<tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
-				<td>{{ key|escape }}</td>
-				<td>{{ value|escape }}</td>
-			</tr>
-		{% endfor %}
-	</tbody>
-</table>

+ 0 - 28
templates/debug_toolbar/panels/logger.html

@@ -1,28 +0,0 @@
-{% load i18n %}
-{% if records %}
-	<table>
-		<thead>
-			<tr>
-				<th>{% trans "Level" %}</th>
-				<th>{% trans "Time" %}</th>
-				<th>{% trans "Channel" %}</th>
-				<th>{% trans "Message" %}</th>
-				<th>{% trans "Location" %}</th>
-			</tr>
-		</thead>
-		<tbody>
-			{% for record in records %}
-				<tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
-					<td>{{ record.level }}</td>
-					<td>{{ record.time|date:"h:i:s m/d/Y" }}</td>
-					<td>{{ record.channel|default:"-" }}</td>
-					<td>{{ record.message|linebreaksbr }}</td>
-					<td>{{ record.file }}:{{ record.line }}</td>
-				</tr>
-			{% endfor %}
-		</tbody>
-	</table>
-{% else %}
-	<p>{% trans "No messages logged" %}.</p>
-{% endif %}
-

+ 0 - 43
templates/debug_toolbar/panels/profiling.html

@@ -1,43 +0,0 @@
-{% load i18n %}
-
-<table width="100%">
-	<thead>
-		<tr>
-			<th>{% trans "Call" %}</th>
-			<th>{% trans "CumTime" %}</th>
-			<th>{% trans "Per" %}</th>
-			<th>{% trans "TotTime" %}</th>
-			<th>{% trans "Per" %}</th>
-			<th>{% trans "Count" %}</th>
-		</tr>
-	</thead>
-	<tbody>
-		{% for call in func_list %}
-			<!--  style="background:{{ call.background }}" -->
-			<tr class="djDebugProfileRow{% for parent_id in call.parent_ids %} djToggleDetails_{{ parent_id }}{% endfor %}" depth="{{ call.depth }}">
-				<td>
-					<div style="padding-left: {{ call.indent }}px;">
-						{% if call.has_subfuncs %}
-							<a class="djProfileToggleDetails djToggleSwitch" data-toggle-id="{{ call.id }}" data-toggle-open="+" data-toggle-close="-" href="javascript:void(0)">-</a>
-						{% else %}
-							<span class="djNoToggleSwitch"></span>
-						{% endif %}
-						<span class="stack">{{ call.func_std_string }}</span>
-					</div>
-				</td>
-				<td>{{ call.cumtime|floatformat:3 }}</td>
-				<td>{{ call.cumtime_per_call|floatformat:3 }}</td>
-				<td>{{ call.tottime|floatformat:3 }}</td>
-				<td>{{ call.tottime_per_call|floatformat:3 }}</td>
-				<td>{{ call.count }}</td>
-			</tr>
-			{% if call.line_stats_text %}
-				<tr class="djToggleDetails_{{ call.id }}{% for parent_id in call.parent_ids %} djToggleDetails_{{ parent_id }}{% endfor %}">
-					<td colspan="6">
-						<div style="padding-left: {{ call.indent }}px;"><pre>{{ call.line_stats_text }}</pre></div>
-					</td>
-				</tr>
-			{% endif %}
-		{% endfor %}
-	</tbody>
-</table>

+ 0 - 125
templates/debug_toolbar/panels/request_vars.html

@@ -1,125 +0,0 @@
-{% load i18n %}
-
-<h4>{% trans 'View information' %}</h4>
-<table>
-	<thead>
-		<tr>
-			<th>{% trans 'View Function' %}</th>
-			<th>{% trans 'URL Name' %}</th>
-			<th>{% trans 'args' %}</th>
-			<th>{% trans 'kwargs' %}</th>
-		</tr>
-	</thead>
-	<tbody>
-		<tr>
-			<td>{{ view_func }}</td>
-			<td>{{ view_urlname }}</td>
-			<td>{{ view_args|default:"None" }}</td>
-			<td>
-			{% if view_kwargs.items %}
-				{% for k, v in view_kwargs.items %}
-					{{ k }}={{ v }}{% if not forloop.last %}, {% endif %}
-				{% endfor %}
-			{% else %}
-				None
-			{% endif %}
-			</td>
-		</tr>
-	</tbody>
-</table>
-
-<h4>{% trans 'COOKIES Variables' %}</h4>
-{% if cookies %}
-	<table>
-		<colgroup>
-			<col style="width:20%"/>
-			<col/>
-		</colgroup>
-		<thead>
-			<tr>
-				<th>{% trans "Variable" %}</th>
-				<th>{% trans "Value" %}</th>
-			</tr>
-		</thead>
-		<tbody>
-			{% for key, value in cookies %}
-				<tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
-					<td>{{ key|escape }}</td>
-					<td>{{ value|escape }}</td>
-				</tr>
-			{% endfor %}
-		</tbody>
-	</table>
-{% else %}
-	<p>{% trans "No COOKIE data" %}</p>
-{% endif %}
-
-<h4>{% trans 'SESSION Variables' %}</h4>
-{% if session %}
-	<table>
-		<colgroup>
-			<col style="width:20%"/>
-			<col/>
-		</colgroup>
-		<thead>
-			<tr>
-				<th>{% trans "Variable" %}</th>
-				<th>{% trans "Value" %}</th>
-			</tr>
-		</thead>
-		<tbody>
-			{% for key, value in session %}
-				<tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
-					<td>{{ key|escape }}</td>
-					<td>{{ value|escape }}</td>
-				</tr>
-			{% endfor %}
-		</tbody>
-	</table>
-{% else %}
-	<p>{% trans "No SESSION data" %}</p>
-{% endif %}
-
-<h4>{% trans 'GET Variables' %}</h4>
-{% if get %}
-	<table>
-		<thead>
-			<tr>
-				<th>{% trans "Variable" %}</th>
-				<th>{% trans "Value" %}</th>
-			</tr>
-		</thead>
-		<tbody>
-			{% for key, value in get %}
-				<tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
-					<td>{{ key|escape }}</td>
-					<td>{{ value|join:", "|escape }}</td>
-				</tr>
-			{% endfor %}
-		</tbody>
-	</table>
-{% else %}
-	<p>{% trans "No GET data" %}</p>
-{% endif %}
-
-<h4>{% trans 'POST Variables' %}</h4>
-{% if post %}
-	<table>
-		<thead>
-			<tr>
-				<th>{% trans "Variable" %}</th>
-				<th>{% trans "Value" %}</th>
-			</tr>
-		</thead>
-		<tbody>
-			{% for key, value in post %}
-				<tr class="{% cycle 'row1' 'row2' %}">
-					<td>{{ key|escape }}</td>
-					<td>{{ value|join:", "|escape }}</td>
-				</tr>
-			{% endfor %}
-		</tbody>
-	</table>
-{% else %}
-	<p>{% trans "No POST data" %}</p>
-{% endif %}

+ 0 - 17
templates/debug_toolbar/panels/settings_vars.html

@@ -1,17 +0,0 @@
-{% load i18n %}
-<table>
-	<thead>
-		<tr>
-			<th>{% trans "Setting" %}</th>
-			<th>{% trans "Value" %}</th>
-		</tr>
-	</thead>
-	<tbody>
-		{% for name, value in settings.items %}
-			<tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
-				<td>{{ name }}</td>
-				<td><code>{{ value|pprint }}</code></td>
-			</tr>
-		{% endfor %}
-	</tbody>
-</table>

+ 0 - 19
templates/debug_toolbar/panels/signals.html

@@ -1,19 +0,0 @@
-{% load i18n %}
-<table>
-	<thead>
-		<tr>
-			<th>{% trans 'Signal' %}</th>
-			<th>{% trans 'Providing Args' %}</th>
-			<th>{% trans 'Receivers' %}</th>
-		</tr>
-	</thead>
-	<tbody>
-		{% for name, signal, receivers in signals %}
-			<tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
-				<td>{{ name|escape }}</td>
-				<td>{{ signal.providing_args|join:", " }}</td>
-				<td>{{ receivers|join:", " }}</td>
-			</tr>
-		{% endfor %}
-	</tbody>
-</table>

+ 0 - 88
templates/debug_toolbar/panels/sql.html

@@ -1,88 +0,0 @@
-{% load i18n %}
-{% load debug_toolbar_utils %}
-<div class="clearfix">
-	<ul class="stats">
-		{% for alias, info in databases %}
-			<li>
-				<strong class="label"><span style="background-color: rgb({{ info.rgb_color|join:", " }})" class="color">&nbsp;</span> {{ alias }}</strong>
-				<span class="info">{{ info.time_spent|floatformat:"2" }} ms ({% blocktrans count info.num_queries as num %}{{ num }} query{% plural %}{{ num }} queries{% endblocktrans %})</span>
-			</li>
-		{% endfor %}
-	</ul>
-</div>
-
-{% if queries %}
-	<table>
-		<thead>
-			<tr>
-				<th class="color">&nbsp;</th>
-				<th class="query" colspan="2">{% trans 'Query' %}</th>
-				<th class="timeline">{% trans 'Timeline' %}</th>
-				<th class="time">{% trans 'Time (ms)' %}</th>
-				<th class="actions">{% trans "Action" %}</th>
-			</tr>
-		</thead>
-		<tbody>
-			{% for query in queries %}
-				<tr class="djDebugHoverable {% cycle 'djDebugOdd' 'djDebugEven' %}{% if query.is_slow %} djDebugRowWarning{% endif %}{% if query.starts_trans %} djDebugStartTransaction{% endif %}{% if query.ends_trans %} djDebugEndTransaction{% endif %}{% if query.in_trans %} djDebugInTransaction{% endif %}" id="sqlMain_{{ forloop.counter }}">
-					<td class="color"><span style="background-color: rgb({{ query.rgb_color|join:", " }});">&nbsp;</span></td>
-					<td class="toggle">
-						<a class="djToggleSwitch" data-toggle-name="sqlMain" data-toggle-id="{{ forloop.counter }}" data-toggle-open="+" data-toggle-close="-" href="javascript:void(0)">+</a>
-					</td>
-					<td class="query">
-						<div class="djDebugSqlWrap">
-							<div class="djDebugSql">{{ query.sql|safe }}</div>
-						</div>
-					</td>
-					<td class="timeline">
-						<div class="djDebugTimeline"><div class="djDebugLineChart{% if query.is_slow %} djDebugLineChartWarning{% endif %}" style="left:{{ query.start_offset|dotted_number }}%;"><strong style="width:{{ query.width_ratio_relative|dotted_number }}%;">{{ query.width_ratio }}%</strong></div></div>
-					</td>
-					<td class="time">
-						{{ query.duration|floatformat:"2" }}
-					</td>
-					<td class="actions">
-					{% if query.params %}
-						{% if query.is_select %}
-							<a class="remoteCall" href="/__debug__/sql_select/?sql={{ query.raw_sql|urlencode }}&amp;params={{ query.params|urlencode }}&amp;duration={{ query.duration|floatformat:"2"|urlencode }}&amp;hash={{ query.hash }}&amp;alias={{ query.alias|urlencode }}">Sel</a>
-							<a class="remoteCall" href="/__debug__/sql_explain/?sql={{ query.raw_sql|urlencode }}&amp;params={{ query.params|urlencode }}&amp;duration={{ query.duration|floatformat:"2"|urlencode }}&amp;hash={{ query.hash }}&amp;alias={{ query.alias|urlencode }}">Expl</a>
-							{% ifequal query.engine 'mysql' %}
-								<a class="remoteCall" href="/__debug__/sql_profile/?sql={{ query.raw_sql|urlencode }}&amp;params={{ query.params|urlencode }}&amp;duration={{ query.duration|floatformat:"2"|urlencode }}&amp;hash={{ query.hash }}&amp;alias={{ query.alias|urlencode }}">Prof</a>
-							{% endifequal %}
-						{% endif %}
-					{% endif %}
-					</td>
-				</tr>
-				<tr class="djUnselected djDebugHoverable {% cycle 'djDebugOdd' 'djDebugEven' %}{% if query.is_slow %} djDebugRowWarning{% endif %} djToggleDetails_{{ forloop.counter }}" id="sqlDetails_{{ forloop.counter }}">
-					<td colspan="2"></td>
-					<td colspan="4">
-						<div class="djSQLDetailsDiv">
-							<p><strong>{% trans "Connection:" %}</strong> {{ query.alias }}</p>
-							{% if query.iso_level %}
-								<p><strong>{% trans "Isolation level:" %}</strong> {{ query.iso_level }}</p>
-							{% endif %}
-							{% if query.trans_status %}
-								<p><strong>{% trans "Transaction status:" %}</strong> {{ query.trans_status }}</p>
-							{% endif %}
-							{% if query.stacktrace %}
-								<pre class="stack">{{ query.stacktrace }}</pre>
-							{% endif %}
-							{% if query.template_info %}
-								<table>
-									{% for line in query.template_info.context %}
-									<tr>
-										<td>{{ line.num }}</td>
-										<td><code style="font-family: monospace;{% if line.highlight %}background-color: lightgrey{% endif %}">{{ line.content }}</code></td>
-									</tr>
-									{% endfor %}
-								</table>
-								<p><strong>{{ query.template_info.name|default:_("(unknown)") }}</strong></p>
-							{% endif %}
-						</div>
-					</td>
-				</tr>
-			{% endfor %}
-		</tbody>
-	</table>
-{% else %}
-	<p>{% trans "No SQL queries were recorded during this request." %}</p>
-{% endif %}

+ 0 - 35
templates/debug_toolbar/panels/sql_explain.html

@@ -1,35 +0,0 @@
-{% load i18n %}
-<div class="djDebugPanelTitle">
-	<a class="djDebugClose djDebugBack" href="">{% trans "Back" %}</a>
-	<h3>{% trans "SQL Explained" %}</h3>
-</div>
-<div class="djDebugPanelContent">
-	<div class="scroll">
-		<dl>
-			<dt>{% trans "Executed SQL" %}</dt>
-			<dd>{{ sql|safe }}</dd>
-			<dt>{% trans "Time" %}</dt>
-			<dd>{{ duration }} ms</dd>
-			<dt>{% trans "Database" %}</dt>
-			<dd>{{ alias }}</dd>
-		</dl>
-		<table class="djSqlExplain">
-			<thead>
-				<tr>
-					{% for h in headers %}
-						<th>{{ h|upper }}</th>
-					{% endfor %}
-				</tr>
-			</thead>
-			<tbody>
-				{% for row in result %}
-					<tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
-						{% for column in row %}
-							<td>{{ column|escape }}</td>
-						{% endfor %}
-					</tr>
-				{% endfor %}
-			</tbody>
-		</table>
-	</div>
-</div>

+ 0 - 42
templates/debug_toolbar/panels/sql_profile.html

@@ -1,42 +0,0 @@
-{% load i18n %}
-<div class="djDebugPanelTitle">
-	<a class="djDebugClose djDebugBack" href="">{% trans "Back" %}</a>
-	<h3>{% trans "SQL Profiled" %}</h3>
-</div>
-<div class="djDebugPanelContent">
-	<div class="scroll">
-		{% if result %}
-			<dl>
-				<dt>{% trans "Executed SQL" %}</dt>
-				<dd>{{ sql|safe }}</dd>
-				<dt>{% trans "Time" %}</dt>
-				<dd>{{ duration }} ms</dd>
-				<dt>{% trans "Database" %}</dt>
-				<dd>{{ alias }}</dd>
-			</dl>
-			<table class="djSqlProfile">
-				<thead>
-					<tr>
-						{% for h in headers %}
-							<th>{{ h|upper }}</th>
-						{% endfor %}
-					</tr>
-				</thead>
-				<tbody>
-					{% for row in result %}
-						<tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
-							{% for column in row %}
-								<td>{{ column|escape }}</td>
-							{% endfor %}
-						</tr>
-					{% endfor %}
-				</tbody>
-			</table>
-		{% else %}
-			<dl>
-				<dt>{% trans 'Error' %}</dt>
-				<dd>{{ result_error }}</dd>
-			</dl>
-		{% endif %}
-	</div>
-</div>

+ 0 - 39
templates/debug_toolbar/panels/sql_select.html

@@ -1,39 +0,0 @@
-{% load i18n %}
-<div class="djDebugPanelTitle">
-	<a class="djDebugClose djDebugBack" href="">{% trans "Back" %}</a>
-	<h3>{% trans "SQL Selected" %}</h3>
-</div>
-<div class="djDebugPanelContent">
-	<div class="scroll">
-		<dl>
-			<dt>{% trans "Executed SQL" %}</dt>
-			<dd>{{ sql|safe }}</dd>
-			<dt>{% trans "Time" %}</dt>
-			<dd>{{ duration }} ms</dd>
-			<dt>{% trans "Database" %}</dt>
-			<dd>{{ alias }}</dd>
-		</dl>
-		{% if result %}
-		<table class="djSqlSelect">
-			<thead>
-				<tr>
-					{% for h in headers %}
-						<th>{{ h|upper }}</th>
-					{% endfor %}
-				</tr>
-			</thead>
-			<tbody>
-				{% for row in result %}
-					<tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
-						{% for column in row %}
-							<td>{{ column|escape }}</td>
-						{% endfor %}
-					</tr>
-				{% endfor %}
-			</tbody>
-		</table>
-		{% else %}
-			<p>{% trans "Empty set" %}</p>
-		{% endif %}
-	</div>
-</div>

+ 0 - 14
templates/debug_toolbar/panels/template_source.html

@@ -1,14 +0,0 @@
-{% load i18n %}
-<div class="djDebugPanelTitle">
-	<a class="djDebugClose djDebugBack" href="">{% trans "Back" %}</a>
-	<h3>{% trans 'Template Source' %}: <code>{{ template_name }}</code></h3>
-</div>
-<div class="djDebugPanelContent">
-	<div class="scroll">
-		{% if not source.pygmentized %}
-			<code>{{ source }}</code>
-		{% else %}
-			{{ source }}
-		{% endif %}
-	</div>
-</div>

+ 0 - 44
templates/debug_toolbar/panels/templates.html

@@ -1,44 +0,0 @@
-{% load i18n %}
-<h4>{% blocktrans count template_dirs|length as template_count %}Template path{% plural %}Template paths{% endblocktrans %}</h4>
-{% if template_dirs %}
-	<ol>
-	{% for template in template_dirs %}
-		<li>{{ template }}</li>
-	{% endfor %}
-	</ol>
-{% else %}
-	<p>{% trans "None" %}</p>
-{% endif %}
-
-<h4>{% blocktrans count templates|length as template_count %}Template{% plural %}Templates{% endblocktrans %}</h4>
-{% if templates %}
-<dl>
-{% for template in templates %}
-	<dt><strong><a class="remoteCall toggleTemplate" href="/__debug__/template_source/?template={{ template.template.name }}">{{ template.template.name|addslashes }}</a></strong></dt>
-	<dd><samp>{{ template.template.origin_name|addslashes }}</samp></dd>
-	{% if template.context %}
-	<dd>
-		<div class="djTemplateShowContextDiv"><a class="djTemplateShowContext"><span class="toggleArrow">&#x25B6;</span> {% trans 'Toggle Context' %}</a></div>
-		<div class="djTemplateHideContextDiv" style="display:none;"><code>{{ template.context }}</code></div>
-	</dd>
-	{% endif %}
-{% endfor %}
-</dl>
-{% else %}
-	<p>{% trans 'None' %}</p>
-{% endif %}
-
-<h4>{% blocktrans count context_processors|length as context_processors_count %}Context processor{% plural %}Context processors{% endblocktrans %}</h4>
-{% if context_processors %}
-<dl>
-{% for key, value in context_processors.iteritems %}
-	<dt><strong>{{ key|escape }}</strong></dt>
-	<dd>
-		<div class="djTemplateShowContextDiv"><a class="djTemplateShowContext"><span class="toggleArrow">&#x25B6;</span> {% trans 'Toggle Context' %}</a></div>
-		<div class="djTemplateHideContextDiv" style="display:none;"><code>{{ value|escape }}</code></div>
-	</dd>
-{% endfor %}
-</dl>
-{% else %}
-	<p>{% trans 'None' %}</p>
-{% endif %}

+ 0 - 21
templates/debug_toolbar/panels/timer.html

@@ -1,21 +0,0 @@
-{% load i18n %}
-<table>
-	<colgroup>
-		<col style="width:20%"/>
-		<col/>
-	</colgroup>
-	<thead>
-		<tr>
-			<th>{% trans "Resource" %}</th>
-			<th>{% trans "Value" %}</th>
-		</tr>
-	</thead>
-	<tbody>
-		{% for key, value in rows %}
-			<tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
-				<td>{{ key|escape }}</td>
-				<td>{{ value|escape }}</td>
-			</tr>
-		{% endfor %}
-	</tbody>
-</table>

+ 0 - 17
templates/debug_toolbar/panels/versions.html

@@ -1,17 +0,0 @@
-{% load i18n %}
-<table>
-	<thead>
-		<tr>
-			<th>{% trans "Name" %}</th>
-			<th>{% trans "Version" %}</th>
-		</tr>
-	</thead>
-	<tbody>
-		{% for package, version in versions.iteritems %}
-			<tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
-				<td>{{ package }}</td>
-				<td>{{ version }}</td>
-			</tr>
-		{% endfor %}
-	</tbody>
-</table>

+ 0 - 15
templates/debug_toolbar/redirect.html

@@ -1,15 +0,0 @@
-{% load i18n %}
-<html>
-<head>
-</head>
-<body>
-<h1>HttpResponseRedirect</h1>
-<p>{% trans 'Location' %}: <a id="redirect_to" href="{{ redirect_to }}">{{ redirect_to }}</a></p>
-<p class="notice">
-	{% trans "The Django Debug Toolbar has intercepted a redirect to the above URL for debug viewing purposes.  You can click the above link to continue with the redirect as normal.  If you'd like to disable this feature, set the <code>DEBUG_TOOLBAR_CONFIG</code> dictionary's key <code>INTERCEPT_REDIRECTS</code> to <code>False</code>." %}
-</p>
-<script type="text/javascript">
-    document.getElementById('redirect_to').focus();
-</script>
-</body>
-</html>