aboutsummaryrefslogtreecommitdiff
path: root/views/blob.eta
diff options
context:
space:
mode:
Diffstat (limited to 'views/blob.eta')
-rw-r--r--views/blob.eta6
1 files changed, 4 insertions, 2 deletions
diff --git a/views/blob.eta b/views/blob.eta
index ed1e84b..c7315f6 100644
--- a/views/blob.eta
+++ b/views/blob.eta
@@ -8,7 +8,7 @@
<% } %>
<div><%= it.size %></div>
<div>
- <a href="/<%= it.repo.owner %>/<%= it.repo.name %>/raw/<%= it.branch %>/<%= it.path %>">Raw</a>
+ <a href="/<%= it.repo.owner %>/<%= it.repo.name %>/raw/<%= it.branch %>/<%= it.path %>">View raw</a>
</div>
</div>
@@ -18,6 +18,8 @@
<div class="box"><%~ it.htmlContent %></div>
<% } else if (it.htmlLines) { %>
<pre class="box"><code><%~ it.htmlLines.join("\n") %></code></pre>
-<% } else { %>
+<% } else if (it.textLines) { %>
<pre class="box"><code><%= it.textLines.join("\n") %></code></pre>
+<% } else { %>
+ <div class="box">This file cannot be displayed</div>
<% } %>