diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-10-28 12:38:30 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-10-28 12:38:30 -0400 |
commit | fe5b2f62da27ac0e2ddf60240f2b19cf2a404f69 (patch) | |
tree | 7793b1cf575ff098ee008ec2af34a7acdad01ae9 /src/SMAPI.Web/Views | |
parent | d545281ef3d83d4db43d5ca56eb59800c8a1b8d2 (diff) | |
download | SMAPI-fe5b2f62da27ac0e2ddf60240f2b19cf2a404f69.tar.gz SMAPI-fe5b2f62da27ac0e2ddf60240f2b19cf2a404f69.tar.bz2 SMAPI-fe5b2f62da27ac0e2ddf60240f2b19cf2a404f69.zip |
prettify log URL, read paste ID serverside (#358)
Diffstat (limited to 'src/SMAPI.Web/Views')
-rw-r--r-- | src/SMAPI.Web/Views/LogParser/Index.cshtml | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/src/SMAPI.Web/Views/LogParser/Index.cshtml b/src/SMAPI.Web/Views/LogParser/Index.cshtml index bd47f2ff..a84866c8 100644 --- a/src/SMAPI.Web/Views/LogParser/Index.cshtml +++ b/src/SMAPI.Web/Views/LogParser/Index.cshtml @@ -10,7 +10,7 @@ <style type="text/css" id="modflags"></style> <script> $(function() { - smapi.logParser('@Model.SectionUrl'); + smapi.logParser('@Model.SectionUrl', '@Model.PasteID'); }); </script> } @@ -21,17 +21,19 @@ <p id="blurb">This page lets you upload, view, and share a SMAPI log to help troubleshoot mod issues.</p> <input type="button" id="upload-button" value="Share a new log" /> -<h2>Parsed log</h2> - -<ul id="tabs"> - <li>TRACE</li> - <li>DEBUG</li> - <li class="active">INFO</li> - <li class="active">ALERT</li> - <li class="active">WARN</li> - <li class="active">ERROR</li> - <li class="notice">Click tabs to toggle message visibility</li> -</ul> +@if (Model.PasteID != null) +{ + <h2>Parsed log</h2> + <ul id="tabs"> + <li>TRACE</li> + <li>DEBUG</li> + <li class="active">INFO</li> + <li class="active">ALERT</li> + <li class="active">WARN</li> + <li class="active">ERROR</li> + <li class="notice">Click tabs to toggle message visibility</li> + </ul> +} <div id="output" class="trace debug"></div> <script class="template" id="template-body" type="text/html"> <div class="always"> @@ -97,7 +99,7 @@ <li><a href="https://stardewvalleywiki.com/Modding:Player_FAQs#SMAPI_log" target="_blank">Find your SMAPI log</a>.</li> <li>Drag the file onto the textbox below (or paste the text in).</li> <li>Click <em>Parse</em>.</li> - <li>Share the link you get back.</li> + <li>Share the URL of the new page.</li> </ol> <textarea id="input" placeholder="Paste or drag the log here"></textarea> <div class="buttons"> |