diff --git a/explorer/src/components/Command.svelte b/explorer/src/components/Command.svelte
index 68185f73d..237bc1c63 100644
--- a/explorer/src/components/Command.svelte
+++ b/explorer/src/components/Command.svelte
@@ -1,9 +1,11 @@
@@ -31,16 +33,25 @@
border: 1px solid var(--color-border-mid);
color: var(--color-text-primary);
}
- .clipboard {
+ .with-download {
+ padding-right: 3.5rem;
+ }
+ .actions {
display: flex;
align-items: center;
- justify-content: center;
position: absolute;
- right: 0;
+ right: 0.25rem;
top: 0;
- width: 2rem;
height: 100%;
}
+ .download {
+ width: 1.5rem;
+ height: 1.5rem;
+ display: inline-flex;
+ justify-content: center;
+ align-items: center;
+ color: inherit;
+ }
.full-width.wrapper,
.full-width.cmd {
@@ -55,6 +66,7 @@
tabindex="0"
class="cmd"
class:full-width={fullWidth}
+ class:with-download={downloadHref}
on:click={() => {
clipboard.copy();
}}>
@@ -62,7 +74,18 @@
{#if showPrompt}${/if}
{command}
-
+
+ {#if downloadHref}
+
+
+
+ {/if}
diff --git a/explorer/src/views/repos/Header/CloneButton.svelte b/explorer/src/views/repos/Header/CloneButton.svelte
index cfb8e3391..b2a425f08 100644
--- a/explorer/src/views/repos/Header/CloneButton.svelte
+++ b/explorer/src/views/repos/Header/CloneButton.svelte
@@ -40,7 +40,7 @@
baseUrl.port === config.nodes.defaultHttpdPort
? ""
: `:${baseUrl.port}`;
- $: archiveUrl = `curl -OJ ${baseUrl.scheme}://${baseUrl.hostname}${portFragment}/raw/${alias ?? id}/archive/${currentRefname}`;
+ $: archiveUrl = `${baseUrl.scheme}://${baseUrl.hostname}${portFragment}/raw/${alias ?? id}/archive/${currentRefname}`;
$: gitCloneUrl = `git clone ${baseUrl.scheme}://${
baseUrl.hostname
}${portFragment}/${alias ?? parseRepositoryId(id)?.pubkey ?? id}.git ${name}`;
@@ -127,7 +127,9 @@
If you don’t have Radicle installed, you can still download an
archive of the repository.
-
+
Note that a compressed archive of the source code does not include
any of the social artifacts such as issues or patches nor the git