summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSimon Rettberg2013-11-07 17:10:43 +0100
committerSimon Rettberg2013-11-07 17:10:43 +0100
commit8ae2b52e4db45f26c32a4ad9bc65494480936cbf (patch)
tree804bcfba15cdb7ff9c22b211adaf1d096a649559 /templates
parentWorking on download of remote configs (diff)
downloadslx-admin-8ae2b52e4db45f26c32a4ad9bc65494480936cbf.tar.gz
slx-admin-8ae2b52e4db45f26c32a4ad9bc65494480936cbf.tar.xz
slx-admin-8ae2b52e4db45f26c32a4ad9bc65494480936cbf.zip
Make download work
Diffstat (limited to 'templates')
-rw-r--r--templates/download-error.html1
-rw-r--r--templates/download-overwrite.html4
-rw-r--r--templates/page-remote-tgz-list.html (renamed from templates/remote-tgz-list.html)4
-rw-r--r--templates/page-tgz-list.html (renamed from templates/tgz-list.html)0
4 files changed, 7 insertions, 2 deletions
diff --git a/templates/download-error.html b/templates/download-error.html
new file mode 100644
index 00000000..ca40acee
--- /dev/null
+++ b/templates/download-error.html
@@ -0,0 +1 @@
+<div class="alert alert-danger">Downloading {{file}} from {{remote}} failed! ({{code}})</div>
diff --git a/templates/download-overwrite.html b/templates/download-overwrite.html
new file mode 100644
index 00000000..eccad5d0
--- /dev/null
+++ b/templates/download-overwrite.html
@@ -0,0 +1,4 @@
+<div class="alert alert-warning">
+ {{file}} ist bereits lokal vorhanden. Soll die lokale Version überschrieben werden?
+ <a class="btn btn-danger" href="#" onclick="this.style.display='none';loadContent('#{{id}}', '{{query}}&amp;exec=1')">Überschreiben</a>
+</div>
diff --git a/templates/remote-tgz-list.html b/templates/page-remote-tgz-list.html
index e7abc78a..7cf08dfd 100644
--- a/templates/remote-tgz-list.html
+++ b/templates/page-remote-tgz-list.html
@@ -1,8 +1,8 @@
<div class="container">
{{#files}}
<div class="panel panel-default">
- <div class="panel-heading"><h4><a class="btn btn-success" href="#" onclick="this.style.display='none';loadContent('#download{{id}}', 'api.php?do=download&amp;type=tgz&amp;file={{file}}&amp;id={{id}}')">Download</a> &raquo; {{file}}</h4></div>
- <div class="panel-body" id="download{{id}}">{{description}}</div>
+ <div class="panel-heading"><h4><a class="btn btn-success" href="#" onclick="this.style.display='none';loadContent('#{{id}}', 'api.php?do=download&amp;type=tgz&amp;file={{file}}&amp;id={{id}}')">Download</a> &raquo; {{file}}</h4></div>
+ <div class="panel-body" id="{{id}}">{{description}}</div>
</div>
{{/files}}
{{^files}}
diff --git a/templates/tgz-list.html b/templates/page-tgz-list.html
index fec5af63..fec5af63 100644
--- a/templates/tgz-list.html
+++ b/templates/page-tgz-list.html