#668 Hide Commits and FIles tabs if repo is new
Closed: Fixed Opened by ryanlerch.

If the repo is new (i.e. a project is created, but no git repo pushed yet)
we really should hide the commits and files tabs in the repo view header, as they will never have any content in them

Perhaps the same should be done for releases, as if there is no repo, there can't be tags.

Also, Pull requests is probably also a good candidate for not showing in this case too.


In a way I agree, on the other hand it moves all the other tabs to the left which I find confusing

hmm, maybe disabling the tabs is an option here? rather than removing them?

hmm, maybe disabling the tabs is an option here? rather than removing them?

Yeah, I like this :)

@ryanlerch, still up for this one?

Or do you want me to do it?

Finally I just went ahead and did it, it's almost a 2 liner patch :)

Implemented in https://pagure.io/pagure/pull-request/823

And finished in https://pagure.io/pagure/pull-request/824

Metadata