Mostly a copy/paste from https://github.com/Katello/katello/blob/cv-rework/engines/bastion/app/assets/javascripts/bastion/content-views/details/views/content-view-repositories.html