diff --git a/frontend/src/components/orgs-list.ts b/frontend/src/components/orgs-list.ts
index 82d4279f..42c21cd0 100644
--- a/frontend/src/components/orgs-list.ts
+++ b/frontend/src/components/orgs-list.ts
@@ -382,20 +382,17 @@ export class OrgsList extends BtrixElement {
-
${msg(
- html`${msg("Crawls")}:
- ${this.localize.bytes(org.bytesStoredCrawls)}`,
+ str`Crawls: ${this.localize.bytes(org.bytesStoredCrawls)}`,
)}
-
${msg(
- html`${msg("Uploads")}:
- ${this.localize.bytes(org.bytesStoredUploads)}`,
+ str`Uploads: ${this.localize.bytes(org.bytesStoredUploads)}`,
)}
-
${msg(
- html`${msg("Profiles")}:
- ${this.localize.bytes(org.bytesStoredProfiles)}`,
+ str`Profiles: ${this.localize.bytes(org.bytesStoredProfiles)}`,
)}
diff --git a/frontend/src/features/archived-items/crawl-queue.ts b/frontend/src/features/archived-items/crawl-queue.ts
index 9f6ef825..07949087 100644
--- a/frontend/src/features/archived-items/crawl-queue.ts
+++ b/frontend/src/features/archived-items/crawl-queue.ts
@@ -115,37 +115,39 @@ export class CrawlQueue extends BtrixElement {
const getInputWidth = (v: number | string) =>
`${Math.max(v.toString().length, 3) + 2}ch`;
+ const fromInput = html` {
+ const input = e.target as SlInput;
+
+ input.style.width = getInputWidth(input.value);
+ }}
+ @sl-change=${async (e: SlChangeEvent) => {
+ const input = e.target as SlInput;
+ const int = +input.value.replace(/\D/g, "");
+
+ await this.updateComplete;
+
+ const value = Math.max(1, Math.min(int, this.queue!.total - 1));
+
+ input.value = value.toString();
+ this.pageOffset = value - 1;
+ }}
+ >`;
+
+ const max = this.localize.number(countMax);
+ const total = this.localize.number(this.queue.total);
+
return html`
- ${msg(html`
- Queued URLs from
- {
- const input = e.target as SlInput;
-
- input.style.width = getInputWidth(input.value);
- }}
- @sl-change=${async (e: SlChangeEvent) => {
- const input = e.target as SlInput;
- const int = +input.value.replace(/\D/g, "");
-
- await this.updateComplete;
-
- const value = Math.max(1, Math.min(int, this.queue!.total - 1));
-
- input.value = value.toString();
- this.pageOffset = value - 1;
- }}
- >
- to ${this.localize.number(countMax)} of
- ${this.localize.number(this.queue.total)}
- `)}
+ ${msg(html`Queued URLs from ${fromInput} to ${max} of ${total}`, {
+ id: "h077c8fe82a78c616",
+ })}
`;
}
diff --git a/frontend/src/features/crawl-workflows/workflow-list.ts b/frontend/src/features/crawl-workflows/workflow-list.ts
index 5c776dd9..f1a62a01 100644
--- a/frontend/src/features/crawl-workflows/workflow-list.ts
+++ b/frontend/src/features/crawl-workflows/workflow-list.ts
@@ -233,11 +233,9 @@ export class WorkflowListItem extends BtrixElement {
${this.safeRender((workflow) => {
if (workflow.schedule) {
- return msg(
- str`${humanizeSchedule(workflow.schedule, {
- length: "short",
- })}`,
- );
+ return humanizeSchedule(workflow.schedule, {
+ length: "short",
+ });
}
if (workflow.lastStartedByName) {
return msg(str`Manual run by ${workflow.lastStartedByName}`);