"Source" tab is shown even when no source is present #520
Labels
A-frontend
Area: Web frontend
C-bug
Category: This is a bug
E-easy
Effort: Should be easy to implement and would make a good first PR
P-low
Low priority issues
#519 fixed a panic happening when visiting a crate's source page when no source was available (due to a build failure), by showing a 404 page instead.
Still, the link to the source tab is unconditionally present in the navbar, even when we know it will lead to a 404 page. We should fix this by hiding the link in those cases.
The text was updated successfully, but these errors were encountered: