aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/index.html
diff options
context:
space:
mode:
authorJohannes Zellner <johannes@cloudron.io>2017-04-09 23:27:50 +0200
committerJohannes Zellner <johannes@cloudron.io>2017-04-09 23:27:50 +0200
commit8a3d0eee58f915ed0319cf219e03cfba98426cf3 (patch)
tree7048989c4ead067dc6955c8899633f18d40dad15 /frontend/index.html
parentc03cdd301e41e4400f2dd0006f97405782c4726a (diff)
downloadSurfer-8a3d0eee58f915ed0319cf219e03cfba98426cf3.tar.gz
Surfer-8a3d0eee58f915ed0319cf219e03cfba98426cf3.tar.zst
Surfer-8a3d0eee58f915ed0319cf219e03cfba98426cf3.zip
Make folder listing sortable
Diffstat (limited to 'frontend/index.html')
-rw-r--r--frontend/index.html25
1 files changed, 13 insertions, 12 deletions
diff --git a/frontend/index.html b/frontend/index.html
index a6d0eb0..109ddc1 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -160,34 +160,34 @@
160 </center> 160 </center>
161 </div> 161 </div>
162 <div class="col-lg-12" v-show="!busy"> 162 <div class="col-lg-12" v-show="!busy">
163 <table class="table table-hover table-condensed"> 163 <table class="table table-hover table-condensed sortable">
164 <thead> 164 <thead>
165 <tr> 165 <tr>
166 <th>Type</th> 166 <th>Type</th>
167 <th>Name</th> 167 <th>Name</th>
168 <th>Size</th> 168 <th class="sorttable_numeric">Size</th>
169 <th>Modified</th> 169 <th class="sorttable_numeric">Modified</th>
170 <th>&nbsp;</th> 170 <th class="sorttable_nosort" style="text-align: right;">Actions</th>
171 </tr> 171 </tr>
172 </thead> 172 </thead>
173 <tbody> 173 <tbody>
174 <tr v-show="entries.length === 0"> 174 <tr v-show="entries.length === 0">
175 <th colspan="5"><i>Empty folder</i></th> 175 <td colspan="5"><i>Empty folder</i></td>
176 </tr> 176 </tr>
177 <tr v-for="entry in entries" v-on:click="open(entry)" class="hand"> 177 <tr v-for="entry in entries" v-on:click="open(entry)" class="hand">
178 <th> 178 <td sorttable_customkey="{{ entry.extension }}">
179 <img v-bind:src="entry.previewUrl" height="48px" width="48px"/> 179 <img v-bind:src="entry.previewUrl" height="48px" width="48px"/>
180 </th> 180 </td>
181 <th>{{ entry.filePath }}</th> 181 <td>{{ entry.filePath }}</td>
182 <th>{{ entry.size | prettyFileSize }}</th> 182 <td sorttable_customkey="{{ entry.size }}">{{ entry.size | prettyFileSize }}</td>
183 <th><span v-my-tooltip="foobar" data-toggle="tooltip" title="{{ entry.mtime }}">{{ entry.mtime | prettyDate }}</span></th> 183 <td><span v-my-tooltip="foobar" data-toggle="tooltip" title="{{ entry.mtime }}">{{ entry.mtime | prettyDate }}</span></td>
184 <th style="text-align: right;"> 184 <td style="text-align: right;">
185 <span class="entry-toolbar"> 185 <span class="entry-toolbar">
186 <button class="btn btn-sm btn-default" v-on:click.stop="download(entry)" title="Download" v-show="entry.isFile"><i class="fa fa-download"></i></button> 186 <button class="btn btn-sm btn-default" v-on:click.stop="download(entry)" title="Download" v-show="entry.isFile"><i class="fa fa-download"></i></button>
187 <button class="btn btn-sm btn-default" v-on:click.stop="renameAsk(entry)" title="Rename"><i class="fa fa-pencil"></i></button> 187 <button class="btn btn-sm btn-default" v-on:click.stop="renameAsk(entry)" title="Rename"><i class="fa fa-pencil"></i></button>
188 <button class="btn btn-sm btn-danger" v-on:click.stop="delAsk(entry)" title="Delete"><i class="fa fa-trash"></i></button> 188 <button class="btn btn-sm btn-danger" v-on:click.stop="delAsk(entry)" title="Delete"><i class="fa fa-trash"></i></button>
189 </span> 189 </span>
190 </th> 190 </td>
191 </tr> 191 </tr>
192 </tbody> 192 </tbody>
193 </table> 193 </table>
@@ -205,6 +205,7 @@
205 <script src="/_admin/js/vue.min.js"></script> 205 <script src="/_admin/js/vue.min.js"></script>
206 <script src="/_admin/js/filesize.min.js"></script> 206 <script src="/_admin/js/filesize.min.js"></script>
207 <script src="/_admin/js/superagent.js"></script> 207 <script src="/_admin/js/superagent.js"></script>
208 <script src="/_admin/js/sorttable.js"></script>
208 <script src="/_admin/js/app.js"></script> 209 <script src="/_admin/js/app.js"></script>
209 210
210</body> 211</body>