-
Notifications
You must be signed in to change notification settings - Fork 0
/
body.php
61 lines (61 loc) · 4.4 KB
/
body.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<div class="button-group-wrapper" data-spy="affix" data-offset-top="66">
<div class="col-xs-6">
<div class="input-group">
<div class="input-group-addon"><span class="glyphicon glyphicon-search" style="margin-right:0px"></span></div>
<input type="text" class="form-control" id="search" v-model="searchKeyword" placeholder="Keyword" tabindex="1">
</div>
</div>
</div>
<div class="list-group main-container">
<li class="list-group-item list-group-header">
<span class="file_folder_name">
<a href="#" @click="sortBy('name', $event)" :tabindex="filesfolders.length+2">File/Folder Name <i v-if="sortKeyActive('name')" :class="{'fa-sort-alpha-asc': !reverse, 'fa-sort-alpha-desc': reverse}" class="fa"></i></a>
</span>
<div class="file_folder_info pull-right">
<span class="sugar" v-if="anySugarInstances">
<span class="version">
<a href="#" @click="sortBy('sugar_sort_version', $event)" tabindex="{{ filesfolders.length+3 }}">Sugar Version <i v-if="sortKeyActive('sugar_sort_version')" :class="{'fa-sort-numeric-asc': !reverse, 'fa-sort-numeric-desc': reverse}" class="fa"></i></a>
</span>
<span class="flavor">Sugar Edition</span>
<span class="build">Sugar Build</span>
</span>
<span class="file_folder_size">
<a href="#" @click="sortBy('size.plain', $event)" tabindex="{{ filesfolders.length+4 }}">File Size <i v-if="sortKeyActive('size.plain')" :class="{'fa-sort-numeric-asc': !reverse, 'fa-sort-numeric-desc': reverse}" class="fa"></i></a>
</span>
<span class="file_folder_perm">
<a href="#" @click="sortBy('perm.plain', $event)" tabindex="{{ filesfolders.length+5 }}">Perm <i v-if="sortKeyActive('perm.plain')" :class="{'fa-sort-numeric-asc': !reverse, 'fa-sort-numeric-desc': reverse}" class="fa"></i></a>
</span>
<span class="file_folder_mtime">
<a href="#" @click="sortBy('mtime.plain', $event)" tabindex="{{ filesfolders.length+6 }}">Last Modified <i v-if="sortKeyActive('mtime.plain')" :class="{'fa-sort-amount-asc': !reverse, 'fa-sort-amount-desc': reverse}" class="fa"></i></a>
</span>
</div>
</li>
<a v-if="levelUps.length > 0" v-for="levelUp in levelUps" :href="getLink('/?current_path='+levelUp.relative_path)" class="list-group-item" v-cloak :tabindex="filesfolders.length+1">
<span class="glyphicon fa fa-level-up fa-lg" aria-hidden="true" style="margin-left:5px;"></span>
<span class="file_folder_name">Level Up</span>
<div class="file_folder_info pull-right">
<span class="file_folder_size"> </span>
<span class="file_folder_perm"> </span>
<span class="file_folder_mtime"> </span>
</div>
</a>
<a v-for="(filefolder, index) in filteredFilesFolders" :href="filefolder.is_dir && !filefolder.has_index_php || filefolder.name == '..' ? getLink('/?current_path='+filefolder.relative_path) : filefolder.relative_path" class="list-group-item" v-cloak :tabindex="index+1">
<span v-if="filefolder.name == '..'" class="glyphicon fa fa-level-up fa-lg" aria-hidden="true" style="margin-left:5px;"></span>
<img v-if="filefolder.sugar && filefolder.name != '..'" class="sugar_logo" src="assets/img/sugar_logo.svg">
<span v-if="filefolder.is_dir && filefolder.name != '..' && !filefolder.sugar" class="glyphicon fa fa-folder fa-lg" aria-hidden="true"></span>
<span v-if="!filefolder.is_dir && !filefolder.sugar" class="glyphicon fa fa-file-o fa-lg" aria-hidden="true"></span>
<span class="file_folder_name">{{ filefolder.name == '..' ? 'Level Up' : filefolder.name }}</span>
<span v-if="filefolder.name != '..' && filefolder.has_index_php" class="glyphicon fa fa-search s_link browse_folder" title="Browse the folder" aria-hidden="true"></span>
<span v-if="filefolder.editable && !filefolder.is_dir" class="glyphicon fa fa-pencil-square-o s_link go_to_editor" title="Open in Editor" aria-hidden="true"></span>
<div class="file_folder_info pull-right">
<span class="sugar" v-if="filefolder.sugar">
<span class="version">{{ filefolder.sugar.version }}</span>
<span class="flavor">{{ filefolder.sugar.flavor }}</span>
<span class="build">{{ filefolder.sugar.build }}</span>
</span>
<span class="file_folder_size" data="{{ filefolder.size.plain }}">{{ filefolder.is_dir ? ' ' : filefolder.size.formated }}</span>
<span class="file_folder_perm" data="{{ filefolder.perm.plain }}">{{ filefolder.perm.formated }}</span>
<span class="file_folder_mtime" data="{{ filefolder.mtime.plain }}">{{ filefolder.mtime.formated }}</span>
</div>
</a>
</div>