From c980bb439a1685510b1b479669761a93f0d8c5b0 Mon Sep 17 00:00:00 2001 From: ulrich <not disclosed> Date: Sat, 25 Feb 2017 17:32:26 +0000 Subject: [PATCH] Mustache Templates ausgelagert (noch in Arbeit) --- web/ui/index.html | 47 ++++------------------------------------------- 1 files changed, 4 insertions(+), 43 deletions(-) diff --git a/web/ui/index.html b/web/ui/index.html index ff31437..d74367b 100644 --- a/web/ui/index.html +++ b/web/ui/index.html @@ -9,45 +9,6 @@ <link rel="stylesheet" type="text/css" href="/jslib/bootstrap/css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="/jslib/font-awesome/css/font-awesome.min.css"> <link rel="stylesheet" type="text/css" href="stile.css"> - <script id="tpl-kacheln" type="x-tmpl-mustache"> - {{#files}} - <figure class="figure datei-figure text-center text-warning align-top datei-elem"> - <i class="fa {{ typeClass }} fa-3x"></i> - <figcaption class="figure-caption dateiname">{{ fileName }}</figcaption> - </figure> - {{/files}} - </script> - <script id="tpl-liste" type="x-tmpl-mustache"> - <table class="table table-hover table-sm table-responsive tableBodyScroll"> - <thead> - <tr> - <th colspan="2">Name</th> - <th>Größe</th> - <th>Art</th> - <th>geändert</th> - </tr> - </thead> - <tbody> - {{#files}} - <tr class="datei-zeile"> - <td class="datei-elem"><i class="fa {{ typeClass }}"></i></td> - <td class="dateiname">{{ fileName }}</td> - <td>{{ fr.length }}</td> - <td> </td> - <td>{{ fr.lastModified }}</td> - </tr> - {{/files}} - </tbody> - </table> - </script> - <script id="tpl-bcr" type="x-tmpl-mustache"> - {{#files}} - <a class="breadcrumb-item" rpath="{{ relPath }}" href="#">{{ fName }}</a> - {{/files}} - </script> - <script id="tpl-bcr2" type="x-tmpl-mustache"> - <span class="breadcrumb-item active">{{ fName }}</span> - </script> <script id="tpl-bcr3" type="x-tmpl-mustache"> <div id="ansicht" class="pull-right align-middle"> <i class="fa fa-th-list"></i> @@ -150,12 +111,12 @@ <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> - <h5 class="modal-title">Datei speichern</h5> + <h5 id="saveModalTitle" class="modal-title">Datei speichern</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> - <div class="modal-body"> + <div id="saveModalBody" class="modal-body"> <p id="dialogfrage">Dateiname?</p> <input class="form-control eingabe" type="text" size="20" maxlength="250" placeholder="Dateiname" name="dateiname" id="dateiname"> </div> @@ -171,12 +132,12 @@ <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> - <h5 class="modal-title">Löschen</h5> + <h5 id="confirmModalTitle" class="modal-title">Löschen</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> - <div class="modal-body"> + <div id="confirmModalBody" class="modal-body"> <p>Wirklich ...?</p> </div> <div class="modal-footer"> -- Gitblit v1.9.3