KSP-SpaceDock / SpaceDock

Current Codebase (Python /Flask)
https://spacedock.info
Other
72 stars 33 forks source link

Show add-mod button instead of empty game sections #492

Closed HebaruSan closed 1 year ago

HebaruSan commented 1 year ago

Motivation

Currently Kitbash Model Club's page is empty because there are no mods for it, which looks like an error to any user wandering in there:

History

Games with no mods were hidden from the front page in #477 and restored in 707f1afc04028a34989402f744e3f2e39bf739b5, because the team did not agree on the solution.

Changes

Now when a game has no mods, we show an explicit explanation instead and a button inviting the user to upload something:

image

This somewhat addresses the concern about a useless empty page while still keeping newly enabled games visible on the front page.

In addition, we no longer show a link to the list of modpacks if there are no modpacks for that game.