summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Views/LogParser
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-11-24 13:49:30 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-11-24 13:49:30 -0500
commita3f21685049cabf2d824c8060dc0b1de47e9449e (patch)
treead9add30e9da2a50e0ea0245f1546b7378f0d282 /src/SMAPI.Web/Views/LogParser
parent6521df7b131924835eb797251c1e956fae0d6e13 (diff)
parent277bf082675b98b95bf6184fe3c7a45b969c7ac2 (diff)
downloadSMAPI-a3f21685049cabf2d824c8060dc0b1de47e9449e.tar.gz
SMAPI-a3f21685049cabf2d824c8060dc0b1de47e9449e.tar.bz2
SMAPI-a3f21685049cabf2d824c8060dc0b1de47e9449e.zip
Merge branch 'develop' into stable
Diffstat (limited to 'src/SMAPI.Web/Views/LogParser')
-rw-r--r--src/SMAPI.Web/Views/LogParser/Index.cshtml22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/SMAPI.Web/Views/LogParser/Index.cshtml b/src/SMAPI.Web/Views/LogParser/Index.cshtml
index 1b40cfa9..f98ffdf9 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,12 +68,15 @@ 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">
+ <div data-os="@Platform.Android">
On Android:
<ol>
<li>Open a file app (like My Files or MT Manager).</li>
@@ -81,7 +85,7 @@ else if (Model.ParsedLog?.IsValid == true)
<li>The log file is <code>SMAPI-crash.txt</code> if it exists, otherwise <code>SMAPI-latest.txt</code>.</li>
</ol>
</div>
- <div data-os="linux">
+ <div data-os="@Platform.Linux">
On Linux:
<ol>
<li>Open the Files app.</li>
@@ -91,7 +95,7 @@ else if (Model.ParsedLog?.IsValid == true)
<li>The log file is <code>SMAPI-crash.txt</code> if it exists, otherwise <code>SMAPI-latest.txt</code>.</li>
</ol>
</div>
- <div data-os="mac">
+ <div data-os="@Platform.Mac">
On Mac:
<ol>
<li>Open the Finder app.</li>
@@ -100,7 +104,7 @@ else if (Model.ParsedLog?.IsValid == true)
<li>The log file is <code>SMAPI-crash.txt</code> if it exists, otherwise <code>SMAPI-latest.txt</code>.</li>
</ol>
</div>
- <div data-os="windows">
+ <div data-os="@Platform.Windows">
On Windows:
<ol>
<li>Press the <code>Windows</code> and <code>R</code> buttons at the same time.</li>
@@ -118,7 +122,7 @@ else if (Model.ParsedLog?.IsValid == true)
</li>
<li>
Click this button:<br />
- <input type="submit" id="submit" value="save log" />
+ <input type="submit" id="submit" value="save & parse log" />
</li>
<li>On the new page, copy the URL and send it to the person helping you.</li>
</ol>