Files
karma/templates/errors.haml
Łukasz Mierzwa 5e501844a7 Change template script type to application/javascript
Go 1.8 introduced checking of script type and templates are no longer loading, as the script type is not allowed by Go 1.8
https://github.com/golang/go/issues/18569 captures the details.
Change template script type to one of the allowed types, it doesn't matter for clientside-haml-js, it only needs to match the script id
2017-03-23 22:54:07 -07:00

59 lines
1.3 KiB
Plaintext

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