diff --git a/frontend/src/pages/archive/crawl-templates-detail.ts b/frontend/src/pages/archive/crawl-templates-detail.ts
index e63612ff..0f6b2591 100644
--- a/frontend/src/pages/archive/crawl-templates-detail.ts
+++ b/frontend/src/pages/archive/crawl-templates-detail.ts
@@ -1,10 +1,10 @@
+import type { HTMLTemplateResult } from "lit";
import { state, property } from "lit/decorators.js";
import { msg, localized, str } from "@lit/localize";
import cronstrue from "cronstrue"; // TODO localize
import type { AuthState } from "../../utils/AuthService";
import LiteElement, { html } from "../../utils/LiteElement";
-import { getLocaleTimeZone } from "../../utils/localization";
import type { CrawlTemplate } from "./types";
import { getUTCSchedule } from "./utils";
import "../../components/crawl-scheduler";
@@ -72,10 +72,16 @@ export class CrawlTemplatesDetail extends LiteElement {
-
- ${this.crawlTemplate?.name ||
- html``}
-
+ ${this.renderInactiveNotice()}
+
+
+
+ ${this.crawlTemplate?.name ||
+ html``}
+
+
+ ${this.renderMenu()}
+
${this.renderCurrentlyRunningNotice()}
@@ -228,39 +234,43 @@ export class CrawlTemplatesDetail extends LiteElement {
: this.renderReadOnlySchedule()}
-
- ${this.crawlTemplate
- ? html`
- {
- const hasChanges =
- this.isEditing && this.editedSchedule;
- if (
- !hasChanges ||
- window.confirm(
- msg(
- "You have unsaved schedule changes. Are you sure?"
- )
- )
- ) {
- this.navLink(e);
- this.editedSchedule = "";
- } else {
- e.preventDefault();
- }
- }}
- >
- ${this.isEditing ? msg("Cancel") : msg("Edit")}
-
- `
- : html``}
-
+ ${this.crawlTemplate?.inactive
+ ? ""
+ : html`
+
+ ${this.crawlTemplate
+ ? html`
+ {
+ const hasChanges =
+ this.isEditing && this.editedSchedule;
+ if (
+ !hasChanges ||
+ window.confirm(
+ msg(
+ "You have unsaved schedule changes. Are you sure?"
+ )
+ )
+ ) {
+ this.navLink(e);
+ this.editedSchedule = "";
+ } else {
+ e.preventDefault();
+ }
+ }}
+ >
+ ${this.isEditing ? msg("Cancel") : msg("Edit")}
+
+ `
+ : html``}
+
+ `}
@@ -293,6 +303,8 @@ export class CrawlTemplatesDetail extends LiteElement {
@click=${this.navLink}
>${msg("View crawl")}`
+ : this.crawlTemplate.inactive
+ ? ""
: html`${msg("None")}