diff options
| author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-09-14 19:16:44 -0400 |
|---|---|---|
| committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-09-14 19:16:44 -0400 |
| commit | a36426296a528fed9952e7eb6f504ee090c0179d (patch) | |
| tree | 9ea134b1dc8673a43cfd112466603612799d4db5 /src/SMAPI.Web/Views | |
| parent | 7ca168269fc8cc76d900fba6c6d04d2b02287956 (diff) | |
| parent | 98a56169e76432bd9efc43caddc59717278d758e (diff) | |
| download | SMAPI-a36426296a528fed9952e7eb6f504ee090c0179d.tar.gz SMAPI-a36426296a528fed9952e7eb6f504ee090c0179d.tar.bz2 SMAPI-a36426296a528fed9952e7eb6f504ee090c0179d.zip | |
Merge pull request #658 from danvolchek/log-parser-user-agent-detection
[SMAPI.Web] Detect the client's platform and check the right log parser input accordingly
Diffstat (limited to 'src/SMAPI.Web/Views')
| -rw-r--r-- | src/SMAPI.Web/Views/LogParser/Index.cshtml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/SMAPI.Web/Views/LogParser/Index.cshtml b/src/SMAPI.Web/Views/LogParser/Index.cshtml index e974c308..9a06d85a 100644 --- a/src/SMAPI.Web/Views/LogParser/Index.cshtml +++ b/src/SMAPI.Web/Views/LogParser/Index.cshtml @@ -1,4 +1,5 @@ @using Newtonsoft.Json +@using StardewModdingAPI.Toolkit.Utilities @using StardewModdingAPI.Web.Framework.LogParsing.Models @model StardewModdingAPI.Web.ViewModels.LogParserModel @@ -67,10 +68,13 @@ else if (Model.ParsedLog?.IsValid == true) <h2>Where do I find my SMAPI log?</h2> <div>What system do you use?</div> <ul id="os-list"> - <li><input type="radio" name="os" value="android" id="os-android" /> <label for="os-android">Android</label></li> - <li><input type="radio" name="os" value="linux" id="os-linux" /> <label for="os-linux">Linux</label></li> - <li><input type="radio" name="os" value="mac" id="os-mac" /> <label for="os-mac">Mac</label></li> - <li><input type="radio" name="os" value="windows" id="os-windows" /> <label for="os-windows">Windows</label></li> + @foreach (Platform platform in new[] { Platform.Android, Platform.Linux, Platform.Mac, Platform.Windows }) + { + <li> + <input type="radio" name="os" value="@platform" id="os-@platform" checked="@(Model.DetectedPlatform == platform)"/> + <label for="os-@platform">@platform</label> + </li> + } </ul> <div data-os="android"> On Android: |
