diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-05-07 22:41:37 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-05-07 22:41:37 -0400 |
commit | a500812e88ac5a8acdd9732963e6fae95c0a73e6 (patch) | |
tree | 9f36571698b14ab4d898385d7bb14998efd30836 /src/SMAPI.Web/Views/Mods | |
parent | c58d01d0cf45d6f5c7f75281cb6270afc68272db (diff) | |
download | SMAPI-a500812e88ac5a8acdd9732963e6fae95c0a73e6.tar.gz SMAPI-a500812e88ac5a8acdd9732963e6fae95c0a73e6.tar.bz2 SMAPI-a500812e88ac5a8acdd9732963e6fae95c0a73e6.zip |
update web project to .NET Core 3.1
Diffstat (limited to 'src/SMAPI.Web/Views/Mods')
-rw-r--r-- | src/SMAPI.Web/Views/Mods/Index.cshtml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/SMAPI.Web/Views/Mods/Index.cshtml b/src/SMAPI.Web/Views/Mods/Index.cshtml index b1d9ae2c..f5506287 100644 --- a/src/SMAPI.Web/Views/Mods/Index.cshtml +++ b/src/SMAPI.Web/Views/Mods/Index.cshtml @@ -1,6 +1,6 @@ @using Humanizer @using Humanizer.Localisation -@using Newtonsoft.Json +@using StardewModdingAPI.Web.Framework @model StardewModdingAPI.Web.ViewModels.ModListModel @{ ViewData["Title"] = "Mod compatibility"; @@ -15,8 +15,8 @@ <script src="~/Content/js/mods.js?r=20200218"></script> <script> $(function() { - var data = @Json.Serialize(Model.Mods, new JsonSerializerSettings { Formatting = Formatting.None }); - var enableBeta = @Json.Serialize(Model.BetaVersion != null); + var data = @this.ForJson(Model.Mods); + var enableBeta = @this.ForJson(Model.BetaVersion != null); smapi.modList(data, enableBeta); }); </script> @@ -86,7 +86,7 @@ else </td> <td class="mod-page-links"> <span v-for="(link, i) in mod.ModPages"> - <a v-bind:href="link.Url">{{link.Text}}</a>{{i < mod.ModPages.length - 1 ? ', ' : ''}} + <a v-bind:href="link.Url">{{link.Text}}</a>{{i < mod.ModPages.length - 1 ? ', ' : ''}} </span> </td> <td> |