diff --git a/frontend/src/routes/scripts/get/[...hash].svelte b/frontend/src/routes/scripts/get/[...hash].svelte index 8ada98981f..fb0598fb90 100644 --- a/frontend/src/routes/scripts/get/[...hash].svelte +++ b/frontend/src/routes/scripts/get/[...hash].svelte @@ -145,302 +145,292 @@ -
-
-
-

{defaultIfEmptyString(script.summary, script.path)}

+
+
+

{defaultIfEmptyString(script.summary, script.path)}

-
- - - {#if !topHash} - - {/if} -
-
- - {script.path} - -
-

- Edited {displayDaysAgo(script.created_at || '')} by {script.created_by || 'unknown'} -

-
- - {truncateHash(script?.hash ?? '')} - - - Webhooks - - {#if script?.is_template} - Template - {/if} - {#if script && script.kind !== 'script'} - - {script?.kind} - - {/if} - {#if deploymentInProgress} - - Deployment in progress - - {/if} - -
-
- -
+
- - - {#if Array.isArray(script.parent_hashes) && script.parent_hashes.length > 0} - - Previous version ({script.parent_hashes.length}) - - {#each script.parent_hashes as hash} - - {hash} - - {/each} - + Fork + {/if}
+
- {#if script.lock_error_logs || topHash || script.archived || script.deleted} -
- {#if script.lock_error_logs} - - {/if} - {#if topHash} - - This hash is not HEAD (latest non-archived version at this path) : - Go to the HEAD of this path - - {/if} - {#if script.archived && !topHash} - This version was archived - {/if} - {#if script.deleted} - - {/if} -
+ {script.path} + +
+

+ Edited {displayDaysAgo(script.created_at || '')} by {script.created_by || 'unknown'} +

+
+ + {truncateHash(script?.hash ?? '')} + + + Webhooks + + {#if script?.is_template} + Template + {/if} + {#if script && script.kind !== 'script'} + + {script?.kind} + + {/if} + {#if deploymentInProgress} + + Deployment in progress + + {/if} + +
+
+ +
+ + + + + {#if Array.isArray(script.parent_hashes) && script.parent_hashes.length > 0} + + Previous version ({script.parent_hashes.length}) + + {#each script.parent_hashes as hash} + + {hash} + + {/each} + {/if} +
-
-

Description

- + {#if script.lock_error_logs || topHash || script.archived || script.deleted} +
+ {#if script.lock_error_logs} + + {/if} + {#if topHash} + + This hash is not HEAD (latest non-archived version at this path) : + Go to the HEAD of this path + + {/if} + {#if script.archived && !topHash} + This version was archived + {/if} + {#if script.deleted} + + {/if}
+ {/if} -
-

- Arguments JSON schema +
+ +
- - The jsonschema defines the constraints that the payload must respect to be compatible - with the input parameters of this script. The UI form is generated automatically from - the script jsonschema. See - - jsonschema documentation - - -

- - -
+
+

+ Arguments JSON schema -
-

Code

+ + The jsonschema defines the constraints that the payload must respect to be compatible + with the input parameters of this script. The UI form is generated automatically from + the script jsonschema. See + jsonschema documentation + +

+ + +
- +
+

Code

- - Code - Dependencies lock file - - -
- + + + + Code + Dependencies lock file + + +
+ +
+
+ +
+ {#if script?.lock} +
{script.lock}
+ {:else} +

There is no lock file for this script

+ {/if} +
+
+
+
+
+ +
+

+ Webhooks + + To trigger this script with a webhook, do a POST request to the endpoints below. Scripts + are not public and can only be run by users with at least view rights on them. You will + need to pass a bearer token to authentify as a user. You can either pass it as a Bearer + token or as query arg `?token=XXX`. + + See docs + + +

+ + + UUID + Result + + {#each Object.keys(webhooks) as key} + + +
+
- -
- {#if script?.lock} -
{script.lock}
- {:else} -

There is no lock file for this script

- {/if} -
-
-
-
-
- -
-

- Webhooks - - To trigger this script with a webhook, do a POST request to the endpoints below. - Scripts are not public and can only be run by users with at least view rights on them. - You will need to pass a bearer token to authentify as a user. You can either pass it - as a Bearer token or as query arg `?token=XXX`. - - See docs - - -

- - - UUID - Result - - {#each Object.keys(webhooks) as key} - - -
- -
-
- {/each} -
-
-
-
-

Danger zone

-
- - -
+ {/each} + + +
+
+

Danger zone

+
+ +