Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/runboat/webui-templates/runboat-build-element.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {LitElement, html, css} from 'https://esm.run/lit@2.1.2?module';
import 'https://esm.run/@github/time-elements@latest?module';
import 'https://esm.run/@github/relative-time-element@latest?module';

class RunboatBuildElement extends LitElement {
static get properties() {
Expand Down Expand Up @@ -36,9 +36,10 @@ class RunboatBuildElement extends LitElement {
.build-status-failed {
background-color: lightcoral;
}
time-ago {
relative-time {
color: gray;
white-space: nowrap;
font-size: small
}
p {
margin-top: 0.5em;
Expand All @@ -61,7 +62,7 @@ class RunboatBuildElement extends LitElement {
${this.build.commit_info?.git_commit?
html`(<a href="${this.build.repo_commit_link}">${this.build.commit_info?.git_commit.substring(0, 8)}</a>)`:""
}
<time-ago datetime="${this.build.created}"></time-ago>
<relative-time datetime="${this.build.created}"></relative-time>
</p>
<p>
${this.build.status || "undeployed"}
Expand Down
Loading