Files
karma/assets/templates/errors.html
Łukasz Mierzwa f1e90e054d Rewrite clientside-haml-js templates using underscore
Drop haml templates in favor of underscore. Haml templates are harder to maintain and require extra dependencies, we already have underscore.js included and it provides a fast templating engine. Rewrite all client side templates using it.
Performance with underscore is pretty much the same as with haml (with 10k alerts).
2017-04-10 11:38:34 -07:00

79 lines
1.8 KiB
HTML

<script type="application/json" id="reload-needed">
<div class="jumbotron">
<h1 class="text-center">
New version detected, reloading ...
<i class="fa fa-refresh fa-spin"/>
</h1>
</div>
</script>
<script type="application/json" id="update-error">
<div class="jumbotron">
<h1 class="text-center">
<%- error %>
<% if (message) { %>
<div class="text-center">
<p>
<%- message %>
</p>
</div>
<% } %>
<% if (last_ts > 0) { %>
<div class="text-center">
<p>
Last successful update was <%= moment.unix(last_ts).fromNow() %>
</p>
</div>
<% } %>
</h1>
</div>
</script>
<script type="application/json" id="fatal-error">
<div class="jumbotron">
<h1 class="text-center">
Critical error
<i class="fa fa-exclamation-circle text-danger"/>
</h1>
<div class="text-center">
<p>
Auto refresh is enabled but last update was <%= moment.unix(last_ts).fromNow() %>
</p>
<p>
This page will auto reload in
<span id='reload-counter'>
<%- seconds_left %> seconds
</span>
</p>
</div>
</div>
</script>
<script type="application/json" id="internal-error">
<div class="jumbotron">
<h1 class="text-center">
Internal error
<i class="fa fa-exclamation-circle text-danger"/>
</h1>
<div class="text-center">
<p>
<% if (name) { %>
<%- name %>
<% } %>
<% if (message) { %>
<%- message %>
<% } %>
<% if (!name && !message) { %>
<% var msg = raw.split('(') %>
<% if (msg.length > 0) { %>
<%- msg[0] %>
<% } %>
<% } %>
</p>
</div>
</div>
</script>