-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Plus an indicator of hoy much files are displayed
- Loading branch information
1 parent
b618894
commit 176781a
Showing
4 changed files
with
89 additions
and
45 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
68 changes: 41 additions & 27 deletions
68
packages/rocketchat-ui-flextab/client/tabs/uploadedFilesList.html
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,35 +1,49 @@ | ||
<template name="uploadedFilesList"> | ||
<div class="content"> | ||
<div class="list-view uploaded-files-list"> | ||
<div class="title"> | ||
<h2>{{_ "Room_uploaded_file_list"}}</h2> | ||
</div> | ||
<ul class="list clearfix lines"> | ||
{{#each files}} | ||
<li> | ||
{{#if canDelete}} | ||
<i class="icon-trash file-delete"></i> | ||
{{#with uploadedFiles}} | ||
<div class="title"> | ||
<h2>{{_ "Room_uploaded_file_list"}}</h2> | ||
{{#if Template.subscriptionsReady}} | ||
{{#unless files}} | ||
{{else}} | ||
<p> | ||
Showing: {{totalFiles}} files | ||
{{#if showDeleteAll}} | ||
<button class="delete-all icon-trash">Delete All</button> | ||
{{/if}} | ||
<a title="{{escapedName}}" href="{{fixCordova url}}" target="_blank" class="file-download" download=""> | ||
<i class="icon-download file-download"></i> | ||
</a> | ||
<a title="{{escapedName}}" href="{{fixCordova url}}" target="_blank" class="room-file-item file-name {{customClassForFileType}}"> | ||
<i class="{{getFileIcon type}}"></i> | ||
<p>{{name}}</p> | ||
</a> | ||
</li> | ||
{{/each}} | ||
</ul> | ||
{{#if hasMore}} | ||
<div class="load-more"> | ||
{{> loading}} | ||
</p> | ||
|
||
{{/unless}} | ||
{{/if}} | ||
</div> | ||
{{/if}} | ||
{{#if Template.subscriptionsReady}} | ||
{{#unless hasFiles}} | ||
<h2>{{_ "Room_uploaded_file_list_empty"}}</h2> | ||
{{/unless}} | ||
{{/if}} | ||
<ul class="list clearfix lines"> | ||
{{#each files}} | ||
<li> | ||
{{#if canDelete}} | ||
<i class="icon-trash file-delete"></i> | ||
{{/if}} | ||
<a title="{{escapedName}}" href="{{fixCordova url}}" target="_blank" class="file-download" download=""> | ||
<i class="icon-download file-download"></i> | ||
</a> | ||
<a title="{{escapedName}}" href="{{fixCordova url}}" target="_blank" class="room-file-item file-name {{customClassForFileType}}"> | ||
<i class="{{getFileIcon type}}"></i> | ||
<p>{{name}}</p> | ||
</a> | ||
</li> | ||
{{/each}} | ||
</ul> | ||
{{#if hasMore}} | ||
<div class="load-more"> | ||
{{> loading}} | ||
</div> | ||
{{/if}} | ||
{{#if Template.subscriptionsReady}} | ||
{{#unless files}} | ||
<h2>{{_ "Room_uploaded_file_list_empty"}}</h2> | ||
{{/unless}} | ||
{{/if}} | ||
{{/with}} | ||
</div> | ||
</div> | ||
</template> |
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