Changeset View
Changeset View
Standalone View
Standalone View
assets/src/bundles/vault/vault-table-row.ejs
<%# | <%# | ||||
Copyright (C) 2020 The Software Heritage developers | Copyright (C) 2020 The Software Heritage developers | ||||
See the AUTHORS file at the top-level directory of this distribution | See the AUTHORS file at the top-level directory of this distribution | ||||
License: GNU Affero General Public License version 3, or any later version | License: GNU Affero General Public License version 3, or any later version | ||||
See top-level LICENSE file for more information | See top-level LICENSE file for more information | ||||
%> | %> | ||||
<% if (cookingTask.object_type === 'directory') { %> | <% if (cookingTask.object_type === 'directory') { %> | ||||
anlambert: After you recent changes, this now must be:
`<% if (cookingTask.bundle_type === 'flat') { %>` | |||||
Done Inline ActionsIt doesn't. cookingTask.object_type still exists, and makes sense to decide what message to choose. bundle_type === 'flat' does not imply it's a directory, we also have a flat cooker for revisions (even though it's not public) vlorentz: It doesn't. `cookingTask.object_type` still exists, and makes sense to decide what message to… | |||||
Not Done Inline ActionsOk so the issue is elsewhere then as I got the git tooltip for directory during my tests ... anlambert: Ok so the issue is elsewhere then as I got the git tooltip for directory during my tests ... | |||||
Done Inline Actionswill be fixed by D6175. Good catch vlorentz: will be fixed by D6175.
Good catch | |||||
<tr id="vault-task-<%= cookingTask.swhid %>" | <tr id="vault-task-<%= cookingTask.swhid %>" | ||||
title="Once downloaded, the directory can be extracted with the following command: | title="Once downloaded, the directory can be extracted with the following command: | ||||
$ tar xvzf <%= cookingTask.swhid %>.tar.gz"> | $ tar xvzf <%= cookingTask.swhid %>.tar.gz"> | ||||
Done Inline Actionsdirectory tarballs are still gzipped so that change must be reverted. anlambert: directory tarballs are still gzipped so that change must be reverted. | |||||
<% } else { %> | <% } else { %> | ||||
<tr id="vault-task-<%= cookingTask.swhid %>" | <tr id="vault-task-<%= cookingTask.swhid %>" | ||||
title="Once downloaded, the git repository can be imported with the following commands: | title="Once downloaded, the git repository can be imported to a 'new_repository' directory with the following commands: | ||||
$ git init | $ tar xvf <%= cookingTask.swhid %>.git.tar | ||||
$ zcat <%= cookingTask.swhid %>.gitfast.gz | git fast-import"> | $ git clone <%= cookingTask.swhid %>.git new_repository | ||||
$ cd new_repository/"> | |||||
<% } %> | <% } %> | ||||
<td> | <td> | ||||
<div class="custom-control custom-checkbox"> | <div class="custom-control custom-checkbox"> | ||||
<input type="checkbox" class="custom-control-input vault-task-toggle-selection" | <input type="checkbox" class="custom-control-input vault-task-toggle-selection" | ||||
id="vault-task-toggle-selection-<%= cookingTask.swhid %>"/> | id="vault-task-toggle-selection-<%= cookingTask.swhid %>"/> | ||||
<label class="custom-control-label" | <label class="custom-control-label" | ||||
for="vault-task-toggle-selection-<%= cookingTask.swhid %>"> | for="vault-task-toggle-selection-<%= cookingTask.swhid %>"> | ||||
</label> | </label> | ||||
Show All 30 Lines |
After you recent changes, this now must be:
<% if (cookingTask.bundle_type === 'flat') { %>