cubicweb/pyramid/debug_toolbar_templates/sql.dbtmako
changeset 12777 7c4216ed7497
parent 12765 771c99f16780
child 12930 665f66e57fc6
--- a/cubicweb/pyramid/debug_toolbar_templates/sql.dbtmako	Fri Sep 27 07:00:51 2019 +0200
+++ b/cubicweb/pyramid/debug_toolbar_templates/sql.dbtmako	Tue Nov 26 20:26:58 2019 +0100
@@ -29,7 +29,7 @@
             </tr>
             <tr style="display: none" id="sql-stack-${i}">
                 <td colspan="6">
-                    <pre>${highlight(query["callstack"], "py3tb", linenos="inline") | n}</pre>
+                    <pre>${source_code_url_in_stack(highlight(query["callstack"], "py3tb", linenos="inline"), highlighted=has_pygments) | n}</pre>
                 </td>
             </tr>
             <tr style="display: none"></tr> <!-- css hack because of previous hidden tr for -stripped -->