diff options
| author | Patrick | 2025-12-30 17:06:12 +0100 |
|---|---|---|
| committer | Patrick | 2025-12-30 17:06:12 +0100 |
| commit | 5c923f7d53965460f4867a7a51f9eb537a121b1f (patch) | |
| tree | 5383f4e8e555063e334c67db95fe2e0e0cebfb31 | |
| parent | 250098015582c69a2ad91988bcc39d672ef92e48 (diff) | |
| download | ps-cgit-5c923f7d53965460f4867a7a51f9eb537a121b1f.tar.gz ps-cgit-5c923f7d53965460f4867a7a51f9eb537a121b1f.zip | |
html class for css
| -rw-r--r-- | ui-tree.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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>", |
