Skip to content

"Source" tab is shown even when no source is present #520

Open

Description

#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Web frontendC-bugCategory: This is a bugE-easyEffort: Should be easy to implement and would make a good first PRP-lowLow priority issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions