summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Views
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-03-23 01:21:50 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-03-23 01:21:50 -0400
commit91561eedc7c8247a6179e0158eb9f9affdf65012 (patch)
tree013a59f2a627d93577bc3a20c913f3efc658b7ba /src/SMAPI.Web/Views
parent5b765849d87a702bc79affb82ecb9d565f57b30c (diff)
downloadSMAPI-91561eedc7c8247a6179e0158eb9f9affdf65012.tar.gz
SMAPI-91561eedc7c8247a6179e0158eb9f9affdf65012.tar.bz2
SMAPI-91561eedc7c8247a6179e0158eb9f9affdf65012.zip
fix log parser errors when log text contains {{tokens}}
Diffstat (limited to 'src/SMAPI.Web/Views')
-rw-r--r--src/SMAPI.Web/Views/LogParser/Index.cshtml36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/SMAPI.Web/Views/LogParser/Index.cshtml b/src/SMAPI.Web/Views/LogParser/Index.cshtml
index d2d8004e..9c21c8c0 100644
--- a/src/SMAPI.Web/Views/LogParser/Index.cshtml
+++ b/src/SMAPI.Web/Views/LogParser/Index.cshtml
@@ -54,23 +54,23 @@
<caption>Game info:</caption>
<tr>
<td>SMAPI version:</td>
- <td>@Model.ParsedLog.ApiVersion</td>
+ <td v-pre>@Model.ParsedLog.ApiVersion</td>
</tr>
<tr>
<td>Game version:</td>
- <td>@Model.ParsedLog.GameVersion</td>
+ <td v-pre>@Model.ParsedLog.GameVersion</td>
</tr>
<tr>
<td>Platform:</td>
- <td>@Model.ParsedLog.OperatingSystem</td>
+ <td v-pre>@Model.ParsedLog.OperatingSystem</td>
</tr>
<tr>
<td>Mods path:</td>
- <td>@Model.ParsedLog.ModPath</td>
+ <td v-pre>@Model.ParsedLog.ModPath</td>
</tr>
<tr>
<td>Log started:</td>
- <td>@Model.ParsedLog.Timestamp.UtcDateTime.ToString("yyyy-MM-dd HH:mm") UTC ({{localTimeStarted}} your time)</td>
+ <td v-pre>@Model.ParsedLog.Timestamp.UtcDateTime.ToString("yyyy-MM-dd HH:mm") UTC ({{localTimeStarted}} your time)</td>
</tr>
</table>
<br />
@@ -85,7 +85,7 @@
{
<tr v-on:click="toggleMod('@GetSlug(mod.Name)')" class="mod-entry" v-bind:class="{ hidden: !showMods['@GetSlug(mod.Name)'] }">
<td><input type="checkbox" v-bind:checked="showMods['@GetSlug(mod.Name)']" v-show="anyModsHidden" /></td>
- <td>
+ <td v-pre>
@mod.Name
@if (contentPacks != null && contentPacks.TryGetValue(mod.Name, out LogModInfo[] contentPackList))
{
@@ -97,19 +97,19 @@
</div>
}
</td>
- <td>@mod.Version</td>
- <td>@mod.Author</td>
+ <td v-pre>@mod.Version</td>
+ <td v-pre>@mod.Author</td>
@if (mod.Errors == 0)
{
- <td class="color-green">no errors</td>
+ <td v-pre class="color-green">no errors</td>
}
else if (mod.Errors == 1)
{
- <td class="color-red">@mod.Errors error</td>
+ <td v-pre class="color-red">@mod.Errors error</td>
}
else
{
- <td class="color-red">@mod.Errors errors</td>
+ <td v-pre class="color-red">@mod.Errors errors</td>
}
</tr>
}
@@ -130,16 +130,16 @@
string levelStr = message.Level.ToString().ToLower();
<tr class="@levelStr mod" v-show="filtersAllow('@GetSlug(message.Mod)', '@levelStr')">
- <td>@message.Time</td>
- <td>@message.Level.ToString().ToUpper()</td>
- <td data-title="@message.Mod">@message.Mod</td>
- <td>@message.Text</td>
+ <td v-pre>@message.Time</td>
+ <td v-pre>@message.Level.ToString().ToUpper()</td>
+ <td v-pre data-title="@message.Mod">@message.Mod</td>
+ <td v-pre>@message.Text</td>
</tr>
if (message.Repeated > 0)
{
<tr class="@levelStr mod mod-repeat" v-show="filtersAllow('@GetSlug(message.Mod)', '@levelStr')">
<td colspan="3"></td>
- <td><i>repeats [@message.Repeated] times.</i></td>
+ <td v-pre><i>repeats [@message.Repeated] times.</i></td>
</tr>
}
}
@@ -151,11 +151,11 @@ else if (Model.ParsedLog?.IsValid == false)
<h2>Parsed log</h2>
<div id="error" class="color-red">
<p><strong>We couldn't parse that file, but you can still share the link.</strong></p>
- <p>Error details: @Model.ParsedLog.Error</p>
+ <p v-pre>Error details: @Model.ParsedLog.Error</p>
</div>
<h3>Raw log</h3>
- <pre>@Model.ParsedLog.RawText</pre>
+ <pre v-pre>@Model.ParsedLog.RawText</pre>
}
<div id="upload-area">