aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/blob.eta4
1 files changed, 3 insertions, 1 deletions
diff --git a/views/blob.eta b/views/blob.eta
index 4972209..ea07059 100644
--- a/views/blob.eta
+++ b/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>