Changeset View
Changeset View
Standalone View
Standalone View
swh/web/assets/src/bundles/vault/vault-table-row.ejs
Show All 22 Lines | <td> | ||||
id="vault-task-toggle-selection-<%= cookingTask.object_id %>"/> | id="vault-task-toggle-selection-<%= cookingTask.object_id %>"/> | ||||
<label class="custom-control-label" | <label class="custom-control-label" | ||||
for="vault-task-toggle-selection-<%= cookingTask.object_id %>"> | for="vault-task-toggle-selection-<%= cookingTask.object_id %>"> | ||||
</label> | </label> | ||||
</td> | </td> | ||||
<% if (cookingTask.origin) { %> | <% if (cookingTask.origin) { %> | ||||
<td class="vault-origin"> | <td class="vault-origin"> | ||||
<a href="<%= Urls.browse_origin() %>?origin_url=<%= cookingTask.origin %>"> | <a href="<%= Urls.browse_origin() %>?origin_url=<%= cookingTask.origin %>"> | ||||
<%= cookingTask.origin %> | <%= decodeURIComponent(cookingTask.origin) %> | ||||
</a> | </a> | ||||
</td> | </td> | ||||
<% } else { %> | <% } else { %> | ||||
<td class="vault-origin">unknown</td> | <td class="vault-origin">unknown</td> | ||||
<% } %> | <% } %> | ||||
<td> | <td> | ||||
<i class="<%= swh.webapp.getSwhObjectIcon(cookingTask.object_type) %> mdi-fw"></i> | <i class="<%= swh.webapp.getSwhObjectIcon(cookingTask.object_type) %> mdi-fw"></i> | ||||
<%= cookingTask.object_type %> | <%= cookingTask.object_type %> | ||||
Show All 9 Lines | <td class="vault-dl-link"> | ||||
<% if (cookingTask.status === 'done') { %> | <% if (cookingTask.status === 'done') { %> | ||||
<button class="btn btn-default btn-sm" | <button class="btn btn-default btn-sm" | ||||
onclick="swh.vault.fetchCookedObject('<%= cookingTask.fetch_url %>')"> | onclick="swh.vault.fetchCookedObject('<%= cookingTask.fetch_url %>')"> | ||||
<i class="mdi mdi-download mdi-fw" aria-hidden="true"></i>Download | <i class="mdi mdi-download mdi-fw" aria-hidden="true"></i>Download | ||||
</button> | </button> | ||||
<% } %> | <% } %> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
No newline at end of file | No newline at end of file |