Created
March 20, 2015 15:33
-
-
Save joshbedo/588d53ff45d36cb2e2dc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
if @state.isReady | |
D.ul { className: 'list-table-body clearfix'}, [ | |
[ | |
_.map(exportResults, (file_export, index) => | |
D.ul { className: 'list-table-row with-action' }, [ | |
D.li { className: 'filename' }, file_export.file_name | |
D.li { className: 'export-progress' }, [ | |
@streamProgressBar(file_export) | |
] | |
if @inProgress(file_export) | |
[ | |
D.li { className: 'created-at processing' }, 'Processing...' | |
D.li { className: 'filesize processing' }, 'Processing...' | |
] | |
else | |
[ | |
D.li { className: 'created-at' }, file_export.created_at | |
D.li { className: 'filesize' }, file_export.file_size | |
] | |
unless @inProgress(file_export) | |
D.li { className: 'actions' }, [ | |
IconTooltip({ | |
icon: '\ue610', | |
action: 'download', | |
message: 'Download' | |
}), | |
DeleteConfirm({ | |
wrapperEl: D.span, | |
linkText: '\ue60f', | |
linkClass: 'delete-comment', | |
handleSubmit: (ev) => this.deleteExport(file_export.id, ev), | |
confirmationComponent: D.p({ className: 'comment-confirmation-message'}, | |
'Are you sure you want to delete this export?' | |
) | |
}) | |
] | |
] | |
) | |
Pagination( | |
key: "pagination-2-10" | |
baseURL: "api/v1/file_exports?query" | |
# baseURL: "api/v1/file_exports?status=#{@state.status}&order_by=#{@state.orderBy}&dir=#{@state.orderMode}" | |
total: 10 | |
perPage: 20 | |
page: 0 | |
handlePaginate: @handlePaginate | |
) | |
] | |
] | |
else | |
[ | |
D.br {} | |
D.br {} | |
Loading() | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment