Don't display pipeline status if pipelines are disabled

Problem to solve

You end up with the red 'build: failed' icon which appears to be impossible to delete/hide even if you disable Pipelines under project permissions and disable everything under CI/CD.

Further details

Proposal

  1. If pipelines are disabled, hide the pipeline status, at least from the project profile page.
  2. If Pipelines access is restricted (i.e. visibility is set to members only and the viewer is not a member), hide the pipeline status, at least from the project profile page.

What does success look like, and how can we measure that?

(If no way to measure success, link to an issue that will implement a way to measure this)

Edited by Elliot Rushton