diff --git a/views/commit.eta b/views/commit.eta index d76d046..c5275d4 100644 --- a/views/commit.eta +++ b/views/commit.eta @@ -22,13 +22,7 @@ -
<%= it.commit.stats.total %> lines changed
-- +<%= it.commit.stats.additions %> - -<%= it.commit.stats.deletions %> -
-opened <%= new Intl.DateTimeFormat('en-US', { dateStyle: 'long' }).format(new Date(it.issue.created_at)) %>
+ <% if (it.issue.commits_count) { %> + <%~ include('icons/code-commit.eta') %> +<%= it.issue.commits_count != 1 ? `${it.issue.commits_count} commits` : `${it.issue.commits_count} commit` %>
+ <% } %> <% if (it.issue.state != 'open') { %>ยท
-<%= it.issue.pull_request?.merged ? 'merged' : it.issue.state %>
+<%= it.issue.merged ? 'merged' : it.issue.state %>
<% } %><%= it.stats.total %> lines changed
++ +<%= it.stats.additions %> + -<%= it.stats.deletions %> +
+