From b75d2f0e03317c9b37dfdb702f3a959555309890 Mon Sep 17 00:00:00 2001 From: Chris DeLuca Date: Tue, 26 Apr 2022 21:37:47 -0400 Subject: [PATCH] Change markup for diff insert/delete lines HTML provides semantic markup for the concept of inserting and deleting content from a document. Leveraging these tags can increase the correctness and accessibility of the document without effecting its presentation. See: - https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ins - https://developer.mozilla.org/en-US/docs/Web/HTML/Element/del --- gitsrht/templates/utils.html | 4 ++-- scss/main.scss | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gitsrht/templates/utils.html b/gitsrht/templates/utils.html index 14d6c75..9a9637d 100644 --- a/gitsrht/templates/utils.html +++ b/gitsrht/templates/utils.html @@ -195,8 +195,8 @@ instead. target="_blank" {% endif %} >{{patch.delta.new_file.raw_path.decode('utf-8', 'replace')}}{# - #} +{{patch.line_stats[1]}}{# - #} -{{patch.line_stats[2]}}{% + #} +{{patch.line_stats[1]}}{# + #} -{{patch.line_stats[2]}}{% if patch.delta.old_file.mode != patch.delta.new_file.mode %}{# #}{# #}{% endif %} diff --git a/scss/main.scss b/scss/main.scss index 658a3f3..a197920 100644 --- a/scss/main.scss +++ b/scss/main.scss @@ -230,6 +230,7 @@ dt { } .diff { + ins, del, .lineno { text-decoration: none; } -- 2.38.4