abouttreesummaryrefslogcommitdiff
path: root/ui-tree.c
diff options
context:
space:
mode:
authorPatrick2025-12-30 17:06:12 +0100
committerPatrick2025-12-30 17:06:12 +0100
commit5c923f7d53965460f4867a7a51f9eb537a121b1f (patch)
tree5383f4e8e555063e334c67db95fe2e0e0cebfb31 /ui-tree.c
parent250098015582c69a2ad91988bcc39d672ef92e48 (diff)
downloadps-cgit-5c923f7d53965460f4867a7a51f9eb537a121b1f.tar.gz
ps-cgit-5c923f7d53965460f4867a7a51f9eb537a121b1f.zip
html class for css
Diffstat (limited to 'ui-tree.c')
-rw-r--r--ui-tree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui-tree.c b/ui-tree.c
index 897a92d..349f868 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -124,6 +124,7 @@ static void print_object(const struct object_id *oid, const char *path, const ch
bool is_markdown = (strncmp(".md", &basename[strlen(basename)-3], 3) == 0);
cgit_print_layout_start();
+ html("<div class=\"blob-hash\">");
htmlf("blob: %s (", oid_to_hex(oid));
if (is_markdown) {
html("<a href=\"#preview\">preview</a>) (");
@@ -137,6 +138,7 @@ static void print_object(const struct object_id *oid, const char *path, const ch
rev, path);
}
html(")\n");
+ html("</div>");
if (ctx.cfg.max_blob_size && size / 1024 > ctx.cfg.max_blob_size) {
htmlf("<div class='error'>blob size (%ldKB) exceeds display size limit (%dKB).</div>",