From de3af0e0d052ea21ea21850eea5a6f14fbdaaabb Mon Sep 17 00:00:00 2001 From: Marian Csontos Date: Tue, 20 Dec 2016 10:45:37 +0100 Subject: [PATCH] Fix package injected to fedmenu on pkgs.fp.o Fedmenu is used to link other package related services. On pkgs.fp.o constant "rpms" is used instead of package name. Signed-off-by: Marian Csontos --- roles/distgit/templates/cgit-header.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/distgit/templates/cgit-header.html b/roles/distgit/templates/cgit-header.html index c3ac46657c..23058e2d64 100644 --- a/roles/distgit/templates/cgit-header.html +++ b/roles/distgit/templates/cgit-header.html @@ -14,8 +14,8 @@ {% endif %} var tokens = window.location.href.split('/'); var repo = null; - if (tokens.length > 4 && tokens[4] != '') { - repo = tokens[4].split('.')[0]; + if (tokens.length > 5 && tokens[4] == 'rpms' && tokens[5] != '') { + repo = tokens[5].split('.')[0]; } fedmenu({ 'url': base + 'js/data.js',