Skip to content

Commit 13a6a5a

Browse files
author
Dmytro Trotsko
committed
Added temporal scope end column
1 parent d20da30 commit 13a6a5a

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

src/assets/js/alter_dashboard.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class AlterDashboard {
4949
<td><strong>${this.escapeHtml(indicator.name)}</strong></td>
5050
<td>${this.renderPathogens(indicator.pathogens)}</td>
5151
<td>${this.escapeHtml(indicator.description || '')}</td>
52+
<td>${this.escapeHtml(indicator.temporal_scope_end || '')}</td>
5253
<td>
5354
<button class="btn btn-sm btn-outline-primary" onclick="dashboard.viewIndicator(${indicator.id})">
5455
View Details
@@ -114,7 +115,7 @@ class AlterDashboard {
114115
<div class="mt-1">${this.renderPathogens(indicator.pathogens)}</div>
115116
</div>
116117
<div class="mb-0">
117-
<strong class="d-block text-muted small">Last Updated</strong>
118+
<strong class="d-block text-muted small">Temportal Scope End</strong>
118119
<span class="badge bg-success">${this.escapeHtml(indicator.temporal_scope_end || 'Active')}</span>
119120
</div>
120121
</div>

src/templates/alternative_interface/alter_dashboard.html

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -93,24 +93,12 @@ <h5 class="card-title">Available Indicators</h5>
9393
<th>Name</th>
9494
<th>Pathogens</th>
9595
<th>Description</th>
96+
<th>Temporal Scope End</th>
9697
<th>Actions</th>
9798
</tr>
9899
</thead>
99100
<tbody id="indicatorsTableBody">
100-
{% for indicator in indicators %}
101-
<tr class="fade-in">
102-
<td><strong>{{ indicator.name }}</strong></td>
103-
<td>
104-
{% for pathogen in indicator.pathogens.all %}
105-
<span class="badge bg-secondary me-1">{{ pathogen.name }}</span>
106-
{% endfor %}
107-
</td>
108-
<td>{{ indicator.description }}</td>
109-
<td>
110-
<button class="btn btn-sm btn-outline-primary" onclick="dashboard.viewIndicator({{ indicator.id }})">View Details</button>
111-
</td>
112-
</tr>
113-
{% endfor %}
101+
114102
</tbody>
115103
</table>
116104
</div>

0 commit comments

Comments
 (0)