Skip to content

Commit

Permalink
Latency workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
odinserj committed Apr 15, 2014
1 parent d19b646 commit 86829de
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion HangFire.Highlighter/Views/Home/Details.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,21 @@
<div class="clearfix"></div>
</div>

<div>@Html.Raw(Model.HighlightedCode)</div>
<div>
@if (Model.HighlightedCode == null)
{
<div class="alert alert-info">
<h4>Highlighted code is not available yet.</h4>
<p>Don't worry, it will be highlighted even in case of a disaster
(if we implement failover strategies for our job storage).</p>
<p><a href="javascript:window.location.reload()">Reload the page</a>
manually to ensure your code is highlighted.</p>
</div>

@Model.SourceCode
}
else
{
@Html.Raw(Model.HighlightedCode)
}
</div>

0 comments on commit 86829de

Please sign in to comment.