Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make better efforts to present users with homepages for mods aka "give homes to the homeless" #1254

Merged
merged 4 commits into from
Jul 7, 2015

Conversation

mheguy
Copy link
Contributor

@mheguy mheguy commented Jul 6, 2015

A pet peeve of mine is seeing "N/A" in CKAN and not being able to get more information about a given mod.

This will have the GUI present the KerbalStuff or GitHub page (with the former superceding the latter) when homepage isn't provided in the metadata.

I suck at coding, if this can be done more efficiently please let me know.



// If we have homepage provided use that, otherwise use the kerbalstuff page or the github repo so that users have somewhere to get more info than just the abstract.
if (mod.resources != null && mod.resources.homepage != null)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe only do the "mod.resources != null" check once?

@mheguy
Copy link
Contributor Author

mheguy commented Jul 6, 2015

For testing:
KerbalStuff with homepage: AB Launchers (ID: ABLaunchers)
KerbalStuff without homepage: Docking Sounds (ID:DockingSounds)
GitHub with homepage: (Semi)Saturatable Reaction Wheels (ID: SemiSaturatableRW
GitHub without homepage: Animate Emissive Module (ID: ModuleAnimateEmissive)
Other host with homepage:MechJeb 2 (ID: MechJeb2)
Oether host without homepage: z_DEPRECATED - Contract Pack: SCANSat (ID: ContractConfigurator)

Postremus added a commit that referenced this pull request Jul 7, 2015
Make better efforts to present users with homepages for mods aka "give homes to the homeless"
@Postremus Postremus merged commit 257db8c into KSP-CKAN:master Jul 7, 2015
@mheguy mheguy deleted the homepagesInGUI branch July 7, 2015 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants