diff --git a/django/views/templates/technical_500.html b/django/views/templates/technical_500.html index 31f0dfe1b9..7977704daf 100644 --- a/django/views/templates/technical_500.html +++ b/django/views/templates/technical_500.html @@ -17,6 +17,7 @@ h4 { margin:0 0 .5em 0; font-weight: normal; } code, pre { font-size: 100%; white-space: pre-wrap; word-break: break-word; } summary { cursor: pointer; } + details ol.context-line { cursor: pointer; } table { border:1px solid #ccc; border-collapse: collapse; width:100%; background:white; } tbody td, tbody th { vertical-align:top; padding:2px 3px; } thead th { @@ -34,14 +35,17 @@ ul.traceback li.cause { word-break: break-word; } ul.traceback li.frame { padding-bottom:1em; color:#4f4f4f; } ul.traceback li.user { background-color:#e0e0e0; color:#000 } - div.context { padding:10px 0; overflow:hidden; } - div.context ol { padding-left:30px; margin:0 10px; list-style-position: inside; } - div.context ol li { font-family:monospace; white-space:pre; color:#777; cursor:pointer; padding-left: 2px; } - div.context ol li pre { display:inline; } - div.context ol.context-line li { color:#464646; background-color:#dfdfdf; padding: 3px 2px; } - div.context ol.context-line li span { position:absolute; right:32px; } - .user div.context ol.context-line li { background-color:#bbb; color:#000; } - .user div.context ol li { color:#666; } + details.context { padding:10px 0; overflow:hidden; } + details.context ol { padding-left:30px; margin:0 10px; list-style-position: inside; } + details.context ol li { font-family:monospace; white-space:pre; color:#777; cursor:pointer; padding-left: 2px; } + details.context ol li pre { display:inline; } + details.context ol.context-line li { color:#464646; background-color:#dfdfdf; padding: 3px 2px; } + details.context ol.context-line li span { position:absolute; right:32px; } + details.context summary { list-style: none; } + .django details.context ol.context-line li { border: 1px double #bbb; } + .user details.context ol.context-line li { background-color:#bbb; color:#000; border: 1px double #999; } + .user details.context ol li { color:#666; } + details summary.commands { width: fit-content; } div.commands, summary.commands { margin-left: 40px; } div.commands a, summary.commands { color:#555; text-decoration:none; } .user div.commands a { color: black; } @@ -66,6 +70,12 @@ pre.exception_value { font-family: sans-serif; color: #575757; font-size: 1.5rem; margin: 10px 0 10px 0; } .append-bottom { margin-bottom: 10px; } .fname { user-select: all; } + {% if not is_email %} + details.context ol.context-line li::before { content: "\002b"; position: absolute; left: 40px; } + details[open].context ol.context-line li::before { content: "\002d"; } + .django details.context ol.context-line { background-color: #bbb; } + .user details.context ol.context-line { background-color: #999; } + {% endif %} {% if not is_email %}