Better icon handling in filemanager

This commit is contained in:
Johannes Zellner
2020-07-23 12:22:00 +02:00
parent 7d4f617757
commit 349633c8da
2 changed files with 19 additions and 5 deletions

View File

@@ -262,11 +262,7 @@
<td colspan="5" class="text-center">No files</td>
</tr>
<tr ng-repeat="entry in entries" ng-drop="drop($event, entry)" context-menu="menuOptions" model="entry" ng-dragleave="dragExit($event, entry)" ng-dragover="dragEnter($event, entry)" ng-class="{ 'entry-hovered': entry.hovered }">
<td ng-click="open(entry)" ng-class="{ 'hand': !entry.isSymbolicLink }" class="text-center">
<i class="fas fa-folder fa-lg" ng-show="entry.isDirectory"></i>
<i class="far fa-file fa-lg" ng-show="entry.isFile"></i>
<i class="fas fa-link fa-lg" ng-show="entry.isSymbolicLink"></i>
</td>
<td ng-click="open(entry)" ng-class="{ 'hand': !entry.isSymbolicLink }" class="text-center"><i class="fas fa-lg {{ entry.icon }}"></i></td>
<td ng-class="{ 'hand': !entry.isSymbolicLink }" class="elide-table-cell" ng-click="open(entry)">{{ entry.fileName }}<span ng-show="entry.isSymbolicLink" class="text-muted" style="margin-left: 20px;">symlink to {{ entry.target }}</span></td>
<td ng-class="{ 'hand': !entry.isSymbolicLink }" class="elide-table-cell" ng-click="open(entry)">{{ entry.size | prettyByteSize }}</td>
<td ng-class="{ 'hand': !entry.isSymbolicLink }" class="elide-table-cell" ng-click="open(entry)">{{ entry.uid | prettyOwner }}</td>