mirror of
https://github.com/prymitive/karma
synced 2026-05-11 03:46:48 +00:00
Use application/json for haml templates
application/javascript was set in commit 5e501844a7 which works, but causes browsers to throw lots of errors in the console, as they try to parse those scripts as javascript, json type still works and doesn't have same issue with browsers
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<script type="application/javascript" id="reload-needed">
|
||||
<script type="application/json" id="reload-needed">
|
||||
%div.jumbotron
|
||||
%h1.text-center
|
||||
New version detected, reloading ...
|
||||
@@ -6,7 +6,7 @@
|
||||
</script>
|
||||
|
||||
|
||||
<script type="application/javascript" id="update-error">
|
||||
<script type="application/json" id="update-error">
|
||||
%div.jumbotron
|
||||
%h1.text-center
|
||||
=error
|
||||
@@ -23,7 +23,7 @@
|
||||
</script>
|
||||
|
||||
|
||||
<script type="application/javascript" id="fatal-error">
|
||||
<script type="application/json" id="fatal-error">
|
||||
%div.jumbotron
|
||||
%h1.text-center
|
||||
Critical error
|
||||
@@ -40,7 +40,7 @@
|
||||
</script>
|
||||
|
||||
|
||||
<script type="application/javascript" id="internal-error">
|
||||
<script type="application/json" id="internal-error">
|
||||
%div.jumbotron
|
||||
%h1.text-center
|
||||
Internal error
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<script type="application/javascript" id="groups">
|
||||
<script type="application/json" id="groups">
|
||||
%div.incident{id: group.id, 'data-hash': group.hash}
|
||||
-var cls_panel = 'panel-success';
|
||||
-if (group.unsilencedCount > 0) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<script type="application/javascript" id="modal-title">
|
||||
<script type="application/json" id="modal-title">
|
||||
%button.close{type: "button", "data-dismiss": "modal"}
|
||||
%i.fa.fa-close
|
||||
%div.label-list.label{class: attrs.class, style: attrs.style}
|
||||
@@ -7,7 +7,7 @@
|
||||
=counter
|
||||
</script>
|
||||
|
||||
<script type="application/javascript" id="modal-body">
|
||||
<script type="application/json" id="modal-body">
|
||||
%table.table.table-striped
|
||||
%caption.text-center
|
||||
Quick filters
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<script type="application/javascript" id="breakdown">
|
||||
<script type="application/json" id="breakdown">
|
||||
%div.popover
|
||||
%div.arrow
|
||||
%h1.popover-title.text-center
|
||||
%div.popover-content{id: 'breakdown-content'}
|
||||
</script>
|
||||
|
||||
<script type="application/javascript" id="breakdown-content">
|
||||
<script type="application/json" id="breakdown-content">
|
||||
-if (tags.length > 0) {
|
||||
%table.table
|
||||
-$.each(tags, function(i, tag) {
|
||||
|
||||
@@ -630,7 +630,7 @@ func staticManagedCss470FontAwesomeMinCss() (*asset, error) {
|
||||
return a, nil
|
||||
}
|
||||
|
||||
var _staticManagedCssAssetsTxt = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xdc\x8f\x51\x0e\x82\x40\x0c\x44\xff\xbd\x4b\x27\xeb\x62\x82\xd7\xa9\x50\x61\x13\xd9\x6e\xda\x1a\xe2\xed\xfd\x31\x82\x3f\x1e\x80\xdf\xf7\x66\x26\x99\x0b\x7a\x24\xba\x6b\x0d\xe2\x55\x5c\x17\xc1\x52\x2a\x06\xf7\x53\x87\x0e\x3d\xdd\x54\xc3\xc3\xb8\xfd\xf0\xbc\x71\xf2\xb5\xc4\x30\x7f\x75\x42\x46\xa2\xda\x4c\x27\x13\xf7\x1d\xbf\x22\xed\x6a\xc1\x93\x97\xda\x9e\xf1\xdf\x52\xbc\x9a\xf0\x2c\x3c\x7e\x72\x67\x64\x7a\x28\x8f\x62\xdb\xf6\x31\x5e\xbc\x03\x00\x00\xff\xff\xdc\xa6\xf2\x0a\x8c\x01\x00\x00")
|
||||
var _staticManagedCssAssetsTxt = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x7c\xcc\x31\x0e\xc2\x30\x0c\x85\xe1\x9d\xbb\xf8\x29\xa4\x48\xe5\x3a\xa6\x35\x6d\x24\x1a\x47\xb6\x51\xc5\xed\x59\x10\x0d\x0b\xeb\xf7\xdb\xef\x82\x11\x89\xee\x5a\x83\x78\x17\xd7\x4d\xb0\x95\x8a\xc9\xfd\x34\x60\xc0\x48\x37\xd5\xf0\x30\x6e\x3f\x9e\x0f\x27\xdf\x4b\x4c\xeb\x37\x27\x64\x24\xaa\xcd\x74\x31\x71\xef\xfc\x8a\xd4\xbd\x05\x2f\x5e\x6a\x7b\xc6\xff\x4a\xf1\x6a\xc2\xab\xf0\xfc\xb9\x3b\x23\xd3\x43\x79\x16\x3b\xb6\xdf\x01\x00\x00\xff\xff\x7f\xf4\x95\x1b\xc6\x00\x00\x00")
|
||||
|
||||
func staticManagedCssAssetsTxtBytes() ([]byte, error) {
|
||||
return bindataRead(
|
||||
@@ -1130,7 +1130,7 @@ func staticManagedJs54HamlJs() (*asset, error) {
|
||||
return a, nil
|
||||
}
|
||||
|
||||
var _staticManagedJsAssetsTxt = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x91\x51\x72\x84\x20\x10\x44\xff\x73\x97\xe9\x12\x74\xb3\x9b\x23\xe4\x02\xf9\x47\x24\x8a\xab\x0c\x61\x70\xb7\xbc\x7d\xca\x0f\x17\xae\x90\xaa\xfc\x51\x6f\x7a\x9a\xae\x69\x0d\x8d\x8e\xe6\x9f\xcd\xa5\x1d\xab\x0f\x98\xe5\x4d\x43\x5d\xa1\x68\xe5\xd5\x85\x7c\xc2\x06\x2d\x54\x43\xdf\xe6\xe1\x2d\x9f\xb0\x45\x8b\x2b\xf5\xcc\x59\x72\x32\xb1\xc6\xba\x60\x92\xa7\xcf\x76\x2a\x4e\x1a\x0d\x85\x98\x78\x4c\x4e\xa4\xe0\x1b\x9a\x6a\x29\x9b\x51\x7c\x88\x5b\x95\x40\x29\x28\xca\x7b\x74\x66\x72\x66\x40\xbf\x85\x61\x71\xd5\x18\x9a\x16\x36\x83\x4b\x02\x5b\x8c\x35\x14\x5a\x9a\x05\x96\xf9\xee\x5f\x7a\x85\x1b\x5a\xda\xc2\x21\xb7\x9c\x1c\xbd\xe4\x1d\x9a\x8a\x43\x72\xf2\x61\x3c\xd7\x2e\xe8\x68\x32\xeb\x72\xbc\x3b\x1c\x81\x56\x23\x1c\xd2\x8e\x78\x1f\x87\x62\x7e\x81\x7a\x27\xbb\xf8\xd8\xb3\x49\x43\xb9\xcc\x07\x14\x25\xf3\x70\xa1\xe4\x3e\xfe\x93\xc9\x28\x54\x09\x34\x79\xf9\x0c\x5f\xde\x3d\x23\xa7\x5c\x26\xff\x6d\xfd\x9d\xb6\x7e\x03\x00\x00\xff\xff\xc1\xa1\x48\x11\x5c\x03\x00\x00")
|
||||
var _staticManagedJsAssetsTxt = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x4c\x90\x41\x72\x84\x20\x10\x45\xf7\xb9\x4b\xff\x12\x74\x32\x93\x23\xe4\x02\xd9\x23\x12\xc5\x51\x9a\xd0\x38\x53\xde\x3e\xe5\x42\x61\x47\x3d\x7e\xff\x7e\xd5\x1a\x1a\x1d\xcd\x7f\x9b\x4b\x3b\x56\x1f\x30\xcb\x87\x86\xba\x43\xd1\xca\xab\x0b\xf9\x84\x0d\x5a\xa8\x86\x7e\xcd\xcb\x5b\x3e\x61\x8b\x16\x77\xea\x99\xb3\xe4\x64\x62\x8d\x75\xc1\x24\x6f\x9f\xed\x54\x9a\x34\x1a\x0a\x31\xf1\x98\x9c\x48\xc1\x0f\x34\xd5\x50\x36\xa3\xf8\x10\xb7\xca\x40\x29\x28\xca\x7b\x74\x66\x72\x66\x40\xbf\x85\x61\x71\xd5\x37\x34\x2d\x6c\x06\x97\x04\xb6\x14\x6b\x28\xb4\x34\x0b\x2c\xf3\xd3\x5f\x79\x85\x07\x5a\xda\xc2\x11\xb7\x9c\x1c\x5d\xf1\x0e\x4d\xc5\x21\x39\xf9\x30\x9e\x63\x37\x74\x34\x99\x75\x39\xde\x1d\x0e\xa1\xd5\x08\x87\xb4\x23\x3e\xc7\xa1\x94\xdf\xa0\x3e\xc9\x2e\x3e\xf6\x6c\xd2\x50\x2e\xf3\x05\x45\xc9\xbc\x5c\x28\xde\xc7\x3e\x99\x8c\x42\x65\xa0\xc9\xcb\x77\xf8\xf1\xee\x1d\x39\x5d\x27\xf8\x0f\x00\x00\xff\xff\xa4\x05\x7e\x11\xae\x01\x00\x00")
|
||||
|
||||
func staticManagedJsAssetsTxtBytes() ([]byte, error) {
|
||||
return bindataRead(
|
||||
|
||||
Reference in New Issue
Block a user