From 84b44ab6b58492c738d60c1aa8bbc02c2d2e4103 Mon Sep 17 00:00:00 2001 From: jomae Date: Mon, 28 Oct 2024 08:20:15 +0000 Subject: [PATCH 1/2] 1.6.1dev: set background color of focused item in the autocomplete menu of diff view (closes #13802) [skip ci] git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.6-stable@17864 af82e41b-90c4-0310-8c96-b1721e28e2e2 --- trac/htdocs/css/diff.css | 1 + trac/versioncontrol/templates/diff_form.html | 26 +++++++++----------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/trac/htdocs/css/diff.css b/trac/htdocs/css/diff.css index 828f75aea2..5123111dcd 100644 --- a/trac/htdocs/css/diff.css +++ b/trac/htdocs/css/diff.css @@ -218,3 +218,4 @@ pre.diff .add { background: #dfd; } /* Styles for the diff page */ .trac-autocomplete-dir { font-weight: bold } +.trac-autocomplete-dir .ui-state-active { font-weight: inherit } diff --git a/trac/versioncontrol/templates/diff_form.html b/trac/versioncontrol/templates/diff_form.html index e2209d97a2..b6eedda07a 100644 --- a/trac/versioncontrol/templates/diff_form.html +++ b/trac/versioncontrol/templates/diff_form.html @@ -23,20 +23,18 @@ ${ super() } # endblock head From 0814f4ace065752aa704afdf3bd4429d03a825e1 Mon Sep 17 00:00:00 2001 From: jomae Date: Mon, 28 Oct 2024 08:32:41 +0000 Subject: [PATCH 2/2] 1.6.1dev: fix `//` entry listed wrongly in the autocomplete menu in diff view when the repository's name is configured to empty (refs #13802) git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.6-stable@17865 af82e41b-90c4-0310-8c96-b1721e28e2e2 --- trac/versioncontrol/web_ui/changeset.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trac/versioncontrol/web_ui/changeset.py b/trac/versioncontrol/web_ui/changeset.py index 30fdc860e7..b17a22c50e 100644 --- a/trac/versioncontrol/web_ui/changeset.py +++ b/trac/versioncontrol/web_ui/changeset.py @@ -1189,7 +1189,8 @@ def kind_order(entry): if not reponame: entries.extend((True, repos.reponame, '/' + repos.reponame) for repos in rm.get_real_repositories() - if repos.is_viewable(req.perm)) + if repos.reponame and + repos.is_viewable(req.perm)) paths = [{'label': path + ('/' if isdir else ''), 'value': path, 'isdir': isdir}