Files
smartguide/webapp/src/app/modules/dashboard/components/project-topics/project-topics.component.html
T
farajollahi a5ae3a4605
LocationBasedServices/smartguide/pipeline/head This commit looks good
clean code and structure dashboard modul
2026-08-24 20:01:56 +02:00

42 lines
1.3 KiB
HTML

@if (shouldDisplay()) {
<section class="topic-heatmap-section">
<header class="topic-heatmap-header">
<div>
<h2>{{ sourceLabel() }}-Projekt-Topics</h2>
<p>
Gematchte {{ sourceLabel() }}-Projekte nach Field, Subfield und Topic.
Ein Klick auf ein Topic zeigt die zugehörigen Keywords.
</p>
</div>
@if (projectTopics(); as topics) {
<p class="topic-summary">
{{ topics.matched_project_count | number }} von
{{ topics.project_count | number }} Projekten gematcht
</p>
}
</header>
@if (loading()) {
<div class="topic-heatmap-loading" role="status" aria-live="polite">
<app-loading
[text]="sourceLabel() + '-Topics werden geladen …'"
[icon]="loadingIcon"
size="72"
diameter="72" />
</div>
} @else if (error()) {
<p class="statistics-error">
Die {{ sourceLabel() }}-Topic-Treemap konnte nicht geladen werden.
</p>
} @else {
<app-topic-treemap
[data]="treemap()"
[selectedNodeId]="selectedNodeId()"
[countLabel]="sourceLabel() + '-Projekte'"
[showCountInTooltip]="false"
(selectedNodeIdChange)="selectedNodeId.set($event)"
(topicSelect)="openTopic($event)" />
}
</section>
}