diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-08-26 12:25:25 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-08-26 12:25:25 -0400 |
commit | da29f3f08f2192cdce2d3a9ed3c55680421e0caf (patch) | |
tree | dea9bf89cf4e12322960b5efa8dfc9598d51a235 /src/SMAPI.Web/Controllers | |
parent | fb3b7aefa79ed9edeee85cf64004e928d203de81 (diff) | |
download | SMAPI-da29f3f08f2192cdce2d3a9ed3c55680421e0caf.tar.gz SMAPI-da29f3f08f2192cdce2d3a9ed3c55680421e0caf.tar.bz2 SMAPI-da29f3f08f2192cdce2d3a9ed3c55680421e0caf.zip |
make beta download blurb configurable (#585)
Diffstat (limited to 'src/SMAPI.Web/Controllers')
-rw-r--r-- | src/SMAPI.Web/Controllers/IndexController.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SMAPI.Web/Controllers/IndexController.cs b/src/SMAPI.Web/Controllers/IndexController.cs index 8c4a0332..dadbedd1 100644 --- a/src/SMAPI.Web/Controllers/IndexController.cs +++ b/src/SMAPI.Web/Controllers/IndexController.cs @@ -67,12 +67,12 @@ namespace StardewModdingAPI.Web.Controllers IndexVersionModel stableVersionModel = stableVersion != null ? new IndexVersionModel(stableVersion.Version.ToString(), stableVersion.Release.Body, stableVersion.Asset.DownloadUrl, stableVersionForDevs?.Asset.DownloadUrl) : new IndexVersionModel("unknown", "", "https://github.com/Pathoschild/SMAPI/releases", null); // just in case something goes wrong) - IndexVersionModel betaVersionModel = betaVersion != null && this.SiteConfig.EnableSmapiBeta + IndexVersionModel betaVersionModel = betaVersion != null && this.SiteConfig.BetaEnabled ? new IndexVersionModel(betaVersion.Version.ToString(), betaVersion.Release.Body, betaVersion.Asset.DownloadUrl, betaVersionForDevs?.Asset.DownloadUrl) : null; // render view - var model = new IndexModel(stableVersionModel, betaVersionModel); + var model = new IndexModel(stableVersionModel, betaVersionModel, this.SiteConfig.BetaBlurb); return this.View(model); } |