diff options
| author | Marian Csontos <mcsontos@redhat.com> | 2016-12-20 10:45:37 +0100 |
|---|---|---|
| committer | Pierre-Yves Chibon <pingou@pingoured.fr> | 2016-12-20 11:51:58 +0100 |
| commit | de3af0e0d052ea21ea21850eea5a6f14fbdaaabb (patch) | |
| tree | d38e7abdf71a35fffef4e075bfe9821770c058be /roles/distgit/templates/cgit-header.html | |
| parent | 376b5d1098c6d2ae9f75b92b8228d05fdefc2276 (diff) | |
| download | ansible-de3af0e0d052ea21ea21850eea5a6f14fbdaaabb.tar.gz ansible-de3af0e0d052ea21ea21850eea5a6f14fbdaaabb.tar.xz ansible-de3af0e0d052ea21ea21850eea5a6f14fbdaaabb.zip | |
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 <mcsontos@redhat.com>
Diffstat (limited to 'roles/distgit/templates/cgit-header.html')
| -rw-r--r-- | roles/distgit/templates/cgit-header.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/distgit/templates/cgit-header.html b/roles/distgit/templates/cgit-header.html index c3ac46657..23058e2d6 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', |
