-
-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1413 from bolt/fix/working-on-files-listing-pages
Update file listing screen: Lazy loading, paginator, other improvements
- Loading branch information
Showing
13 changed files
with
118 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
table.table-compact { | ||
th:first-of-type, | ||
td:first-of-type { | ||
padding-left: 0.8rem; | ||
} | ||
|
||
th:last-of-type, | ||
td:last-of-type { | ||
padding-right: 0.8rem; | ||
} | ||
|
||
th, | ||
td { | ||
padding: 0.3rem; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
@import '_status'; | ||
@import '_notification'; | ||
@import '_buttons'; | ||
@import '_tables'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,40 @@ | ||
<table class="table table-striped table-compact" id="files-folders" style="background-color: #FFF;"> | ||
<thead class="thead-light"> | ||
<tr> | ||
<th><i class="fas fa-folder"></i> {{ 'caption.folders'|trans }}</th> | ||
<th>{{ 'directoryname'|trans }}</th> | ||
<th>{{ 'actions'|trans }}</th> | ||
</tr> | ||
</thead> | ||
|
||
{% if path != '/' %} | ||
<tr> | ||
<td><i class="fas fa-folder-open"></i></td> | ||
<td> | ||
<b> | ||
<a href="{{ path('bolt_filemanager', {'location': location.key, 'path': parent }) }}"> | ||
../ | ||
</a> | ||
</b> | ||
</td> | ||
<td> | ||
</td> | ||
</tr> | ||
{% endif %} | ||
|
||
<div class="card mb-4"> | ||
<div class="card-header"> | ||
<i class="fas fa-folder"></i> | ||
{{ 'caption.folders'|trans }} | ||
</div> | ||
<div class="card-body" style="padding: 0.5rem 0.5rem 0"> | ||
|
||
<table class="table table-striped" style="background-color: #FFF;"> | ||
<thead class="thead-light"> | ||
<tr> | ||
<th></th> | ||
<th>{{ 'directoryname'|trans }}</th> | ||
<th>{{ 'actions'|trans }}</th> | ||
</tr> | ||
</thead> | ||
|
||
{% if path != '/' %} | ||
<tr> | ||
<td><i class="fas fa-folder-open"></i></td> | ||
<td> | ||
<b> | ||
<a href="{{ path('bolt_filemanager', {'location': location.key, 'path': parent }) }}"> | ||
../ | ||
</a> | ||
</b> | ||
</td> | ||
<td> | ||
</td> | ||
</tr> | ||
{% endif %} | ||
|
||
{% for directory in finder.directories() %} | ||
<tr> | ||
<td><i class="fas fa-folder"></i></td> | ||
<td> | ||
<b> | ||
{% set dirname = path ~ directory.getRelativePathname() %} | ||
<a href="{{ path('bolt_filemanager', {'location': location.key, 'path': dirname }) }}"> | ||
{{ directory.getRelativePathname }}/ | ||
</a> | ||
</b> | ||
</td> | ||
<td> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
|
||
</div> | ||
</div> | ||
{% for directory in folders.directories() %} | ||
<tr> | ||
<td><i class="fas fa-folder"></i></td> | ||
<td> | ||
<b> | ||
{% set dirname = path ~ directory.getRelativePathname() %} | ||
<a href="{{ path('bolt_filemanager', {'location': location.key, 'path': dirname }) }}"> | ||
{{ directory.getRelativePathname }}/ | ||
</a> | ||
</b> | ||
</td> | ||
<td> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters