aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/blob.html11
1 files changed, 10 insertions, 1 deletions
diff --git a/views/blob.html b/views/blob.html
index 74c910a..521fe74 100644
--- a/views/blob.html
+++ b/views/blob.html
@@ -48,7 +48,8 @@
binary — {{'{:,}'.format(len(blob.raw_content))}} bytes
</td>
</tr>
-% for offset, hex1, hex2, text in hexdump(blob.raw_content):
+% lim = 256
+% for offset, hex1, hex2, text in hexdump(blob.raw_content[:lim]):
<tr>
<td class="offset">{{offset}}</td>
<td><pre>{{hex1}}</pre></td>
@@ -56,6 +57,14 @@
<td><pre>{{text}}</pre></td>
</tr>
% end
+% if lim < len(blob.raw_content):
+ <tr class="etc">
+ <td></td>
+ <td>&hellip;</td>
+ <td>&hellip;</td>
+ <td>&hellip;</td>
+ </tr>
+% end
</table>
% elif can_markdown(repo, fname.unicode):
{{!markdown_blob(blob.utf8_content)}}