Skip to content

Commit

Permalink
Add timestamp column to workspace event page (#32)
Browse files Browse the repository at this point in the history
This resolves #8.
  • Loading branch information
asullivan-blze authored Nov 17, 2022
1 parent 5004f8b commit 6d3869c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.8
0.7.9
9 changes: 6 additions & 3 deletions src/boardwalkd/templates/workspace_events_table.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
{% for event in sort_events_by_date(workspace.events) %}
{% if event.severity == "info" %}
<tr title="{{ event.create_time }}">
<tr>
<td style="white-space: nowrap;">{{ event.create_time.strftime("%G-%m-%d %H:%M:%S") }}</td>
<td>{{ event.severity }}</td>
<td>{{ squeeze(event.message) }}</td>
</tr>
{% end %}
{% if event.severity == "success" %}
<tr title="{{ event.create_time }}" class="border-end border-2 border-success">
<tr class="border-end border-2 border-success">
<td style="white-space: nowrap;">{{ event.create_time.strftime("%G-%m-%d %H:%M:%S") }}</td>
<td>{{ event.severity }}</td>
<td>{{ squeeze(event.message) }}</td>
</tr>
{% end %}
{% if event.severity == "error" %}
<tr title="{{ event.create_time }}" class="border-end border-2 border-danger">
<tr class="border-end border-2 border-danger">
<td style="white-space: nowrap;">{{ event.create_time.strftime("%G-%m-%d %H:%M:%S") }}</td>
<td>{{ event.severity }}</td>
<td>{{ squeeze(event.message) }}</td>
</tr>
Expand Down

0 comments on commit 6d3869c

Please sign in to comment.