[2] | 1 | <%def name="render_library_item_info( ldda )"> |
---|
| 2 | %if ldda.state == 'error': |
---|
| 3 | <div class="libraryItem-${ldda.state}">Job error <i>(click name for more info)</i></div> |
---|
| 4 | %elif ldda.state == 'queued': |
---|
| 5 | <div class="libraryItem-${ldda.state}">This job is queued</div> |
---|
| 6 | %elif ldda.state == 'running': |
---|
| 7 | <div class="libraryItem-${ldda.state}">This job is running</div> |
---|
| 8 | %elif ldda.state == 'upload': |
---|
| 9 | <div class="libraryItem-${ldda.state}">This dataset is uploading</div> |
---|
| 10 | %else: |
---|
| 11 | ${ldda.message} |
---|
| 12 | %endif |
---|
| 13 | </%def> |
---|
| 14 | |
---|
| 15 | ${render_library_item_info( ldda )} |
---|