diff options
| author | Joe Mou <dev@mou.fo> | 2026-01-28 15:10:00 -0500 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2026-01-28 15:32:53 -0500 |
| commit | 631bc70d94cd12d0432cca1a220a3642eea6976a (patch) | |
| tree | 184c444585702ef8d8e58e95cf7946b778f71426 /cgithub/views | |
| parent | 71442a856d2180c68a51a1db480514d611137bd0 (diff) | |
Image support
Diffstat (limited to 'cgithub/views')
| -rw-r--r-- | cgithub/views/blob.eta | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cgithub/views/blob.eta b/cgithub/views/blob.eta index 4972209..ea07059 100644 --- a/cgithub/views/blob.eta +++ b/cgithub/views/blob.eta @@ -12,7 +12,9 @@ </div> </div> -<% if (it.htmlContent) { %> +<% if (it.image) { %> + <div class="box"><img src="/<%= it.repo.owner %>/<%= it.repo.name %>/raw/<%= it.branch %>/<%= it.path %>"></div> +<% } else if (it.htmlContent) { %> <div class="box"><%~ it.htmlContent %></div> <% } else if (it.htmlLines) { %> <pre class="box"><code><%~ it.htmlLines.join("\n") %></code></pre> |
