aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorThorsten Ortlepp <post@ortlepp.eu>2024-08-08 19:01:23 +0200
committerThorsten Ortlepp <post@ortlepp.eu>2024-08-08 19:01:23 +0200
commit4cce84502e206bab2942e33e73ba964f5664397c (patch)
treec94f8f31a31e8d19886a1679f6f8df0b27e10b05 /views
parent704ca72598608f0918b9d102108703f7dda64203 (diff)
downloadgit-arr-fork-4cce84502e206bab2942e33e73ba964f5664397c.zip
Added dark mode from upstream project
Diffstat (limited to 'views')
-rw-r--r--views/blob.html2
-rw-r--r--views/commit.html2
2 files changed, 4 insertions, 0 deletions
diff --git a/views/blob.html b/views/blob.html
index f1c6ad0..67ac11c 100644
--- a/views/blob.html
+++ b/views/blob.html
@@ -77,7 +77,9 @@
{{!markdown_blob(blob.utf8_content)}}
</div>
% elif can_colorize(blob.utf8_content):
+<div class="colorized-src">
{{!colorize_blob(fname.raw, blob.utf8_content)}}
+</div>
% else:
<pre class="blob-body">
{{blob.utf8_content}}
diff --git a/views/commit.html b/views/commit.html
index e21ff04..f753377 100644
--- a/views/commit.html
+++ b/views/commit.html
@@ -56,7 +56,9 @@
<hr/>
% if can_colorize(c.diff.body):
+<div class="colorized-src">
{{!colorize_diff(c.diff.body)}}
+</div>
% else:
<pre class="diff-body">
{{c.diff.body}}