MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / renderSubtaskFallback

Function renderSubtaskFallback

src/modals/taskModalSubtasks.ts:110–126  ·  view source on GitHub ↗
(
	app: App,
	cardHost: HTMLElement,
	file: TFile,
	sourcePath: string,
	linkServices: LinkServices
)

Source from the content-addressed store, hash-verified

108}
109
110function renderSubtaskFallback(
111 app: App,
112 cardHost: HTMLElement,
113 file: TFile,
114 sourcePath: string,
115 linkServices: LinkServices
116): void {
117 const infoEl = cardHost.createDiv({ cls: "task-project-info" });
118 const nameEl = infoEl.createDiv({ cls: "task-project-name clickable-project" });
119
120 const taskLink = generateLinkWithDisplay(app, file, sourcePath, file.name);
121 renderProjectLinksWithoutPrefix(nameEl, [taskLink], linkServices);
122
123 if (file.path !== file.name) {
124 infoEl.createDiv({ cls: "task-project-path", text: file.path });
125 }
126}
127
128function renderProjectLinksWithoutPrefix(
129 container: HTMLElement,

Callers 1

Calls 2

generateLinkWithDisplayFunction · 0.90

Tested by

no test coverage detected