Dateiverwaltung für die WebBox
Ulrich
2017-02-27 7d8ef67736311d75b97a249482a938662035fd39
web/ui/index.html
@@ -9,12 +9,50 @@
    <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&ouml;&szlig;e</th>
            <th>Art</th>
            <th>ge&auml;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>&nbsp;</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>
      </div>              
    </script>
  </head>
    </script>  </head>
  <body>
    <!-- Kopfzeile -->
    <div class="nord">
@@ -29,7 +67,7 @@
              <a id="newFolder" class="dropdown-item" href="#">Neuer Ordner..</a>
              <div class="dropdown-divider"></div>
              <a id="editTextFile" class="dropdown-item" href="#">&Ouml;ffnen als Text</a>
              <a class="dropdown-item disabled" href="#">&Ouml;ffnen als Dokument</a>
              <a id="editDocFile" class="dropdown-item" href="#">&Ouml;ffnen als Dokument</a>
              <div class="dropdown-divider"></div>
              <a class="dropdown-item disabled" href="#">Ansehen als Text</a>
              <a class="dropdown-item disabled" href="#">Ansehen als Dokument</a>
@@ -94,7 +132,7 @@
        </div>
        <!-- Codemirror Ende -->
        <!-- TinyMCE Start -->
        <div id="mce-editor">
        <div id="mce-editor" class="pl-3 pr-3">
          <textarea class="text-editor" id="text-editspace"></textarea>
        </div>        
        <!-- TinyMCE Ende -->