First item in deploy key project usage does not link to project
Summary
In Settings > Repository > Deploy keys, it shows a list of projects that have the deploy key enabled. The first badge is a <span> without a link. Subsequent badges are <a> with a link to the project.
Steps to reproduce
- Add a deploy key
- Associate key with multiple projects
- Navigate to Settings > Repository > Deploy keys
- Hover over badges under project usage
Example Project
https://gitlab.com/endera_/deploy-key-bug
What is the current bug behavior?
First badge does not link to project
What is the expected correct behavior?
First badge should be a <a> and link to project as other badges
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)(we will only investigate if the tests are passing)
Possible fixes
Edited by Chris Ye


