[debug-toolbar/display_source_code] change link display from "<>" to "[source]"
authorLaurent Peuch <cortex@worlddomination.be>
Thu, 05 Dec 2019 02:08:01 +0100
changeset 12794 9c6dc1b071e3
parent 12793 752de3f8cb3e
child 12795 30448f475a35
[debug-toolbar/display_source_code] change link display from "<>" to "[source]" It is way more explicit and understandable and doesn't take that much place.
cubicweb/pyramid/debug_source_code.py
--- a/cubicweb/pyramid/debug_source_code.py	Fri Dec 06 13:21:56 2019 +0100
+++ b/cubicweb/pyramid/debug_source_code.py	Thu Dec 05 02:08:01 2019 +0100
@@ -38,7 +38,7 @@
 FILES_WHITE_LIST = set()
 
 
-def _generate_link_to_source(file_path, start=None, end=None, tag_body="&lt;&gt;"):
+def _generate_link_to_source(file_path, start=None, end=None, tag_body="[source]"):
     if start:
         # step back a bit so we have a bit of top padding wen displaying the page
         # and the highlighted line isn't glued to top of the browser window