mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
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
59 lines
1.3 KiB
Plaintext
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>
|