summaryrefslogtreecommitdiff
path: root/cgithub/views/_tree.eta
diff options
context:
space:
mode:
Diffstat (limited to 'cgithub/views/_tree.eta')
-rw-r--r--cgithub/views/_tree.eta3
1 files changed, 3 insertions, 0 deletions
diff --git a/cgithub/views/_tree.eta b/cgithub/views/_tree.eta
index ed6eee9..a0ecfab 100644
--- a/cgithub/views/_tree.eta
+++ b/cgithub/views/_tree.eta
@@ -1,5 +1,8 @@
<%~ include("./_nav.eta", {...it, isTree: true}) %>
+<% const commitPath = it.path && it.path !== "/" ? it.path : ""; %>
+<div class="latest-commit-placeholder box" data-src="/api/<%= it.repo.owner %>/<%= it.repo.name %>/latest-commit/<%= it.branch %>/<%= commitPath %>">Loading latest commit…</div>
+
<table>
<% for (const item of it.items) { %>
<tr>