From 5c1c6ad3418d58acd684b46b4872897339c3fdff Mon Sep 17 00:00:00 2001 From: Lubomír Sedlář Date: Dec 22 2015 08:26:30 +0000 Subject: Highlight specific lines When a specific line in a file is linked, highlight it. This patch also adds the ability to highlight a line range. Regular click on line number always selects that one line. Shift+Left click allows selecting a range. Pagure issue: #528 Signed-off-by: Lubomír Sedlář --- diff --git a/pagure/static/koji.css b/pagure/static/koji.css index a39e7e1..c4b4370 100644 --- a/pagure/static/koji.css +++ b/pagure/static/koji.css @@ -455,3 +455,7 @@ a.headerlink { header:hover > a.headerlink { visibility: visible; } + +.highlighted-line { + background-color: #FFFABA; +} diff --git a/pagure/templates/file.html b/pagure/templates/file.html index f806fd6..dc8589f 100644 --- a/pagure/templates/file.html +++ b/pagure/templates/file.html @@ -83,3 +83,37 @@ No content found in this repository {% endif %} {% endblock %} + +{% block jscripts %} +{{ super() }} + +{% endblock %}