( app: App, cardHost: HTMLElement, file: TFile, sourcePath: string, linkServices: LinkServices )
| 108 | } |
| 109 | |
| 110 | function 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 | |
| 128 | function renderProjectLinksWithoutPrefix( |
| 129 | container: HTMLElement, |
no test coverage detected