summaryrefslogtreecommitdiffstats
path: root/templates/page-minilinux.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/page-minilinux.html')
-rw-r--r--templates/page-minilinux.html39
1 files changed, 15 insertions, 24 deletions
diff --git a/templates/page-minilinux.html b/templates/page-minilinux.html
index e742f82a..c1a4ebd6 100644
--- a/templates/page-minilinux.html
+++ b/templates/page-minilinux.html
@@ -1,24 +1,15 @@
-<div class="container">
- {{#files}}
- <div class="panel panel-default">
- <div class="panel-heading"><h4>
- &raquo; {{file}}
- {{^progress}}
- {{#update}}
- Neue Version! <a class="btn btn-success" href="#" onclick="this.style.display='none';loadContent('#{{id}}', 'api.php?do=download&amp;type=ml&amp;file={{file}}&amp;id={{id}}')">Download</a>
- {{/update}}
- {{^update}}
- (Aktuell)
- {{/update}}
- {{/progress}}
- </h4></div>
- {{#progress}}
- <script> setTimeout(function() { loadContent('#{{id}}', 'api.php?do=download&progress={{progress}}&id={{id}}&pid={{pid}}&file={{file}}'); }, 1000); // </script>
- {{/progress}}
- <div class="panel-body" id="{{id}}">{{description}}</div>
- </div>
- {{/files}}
- {{^files}}
- <div class="row well well-sm">Keine Konfigurationspakete gefunden!</div>
- {{/files}}
-</div>
+<div class="container" id="systemlist">
+ <div class="panel panel-default">Liste wird abgerufen...</div>
+ <script type="text/javascript">
+ var slx_check = setInterval(function() {
+ if (typeof $ === 'undefined') return;
+ clearInterval(slx_check);
+ $('#systemlist').load('{{{listurl}}}', function( response, status, xhr ) {
+ if ( status === "error" ) {
+ var msg = "Fehler beim Abruf: ";
+ $( "#systemlist" ).html( msg + xhr.status + " " + xhr.statusText );
+ }
+ })
+ }, 100);
+ </script>
+</div> \ No newline at end of file