From b7b6b446e72f821b4099675522db0d0f8a20947a Mon Sep 17 00:00:00 2001 From: Luka Hietala Date: Wed, 26 Nov 2025 18:22:20 +0200 Subject: [PATCH] improve index layout --- static/styles.css | 32 ++++++++++++++++++++++++++++++++ templates/index.html | 44 +++++++++++++++++++++++++------------------- 2 files changed, 57 insertions(+), 19 deletions(-) diff --git a/static/styles.css b/static/styles.css index 311cd91..22aa68a 100644 --- a/static/styles.css +++ b/static/styles.css @@ -165,4 +165,36 @@ table.commits-table .message-col { } +/* index */ +.main-layout { + display: grid; + grid-template-columns: 1fr 2fr; + gap: 2em; +} + +.repos-grid { + display: grid; + grid-template-columns: repeat(2, 1fr); + gap: 8px; +} + +.repo-card { + padding: 16px; + background-color: #f9f9f9; +} + +.repo-card h4 { + margin: 0 0 8px 0; +} + +.repo-card h4 a { + font-weight: normal; +} + +.repo-card p { + margin: 0; + color: gray; + font-size: 14px; +} + diff --git a/templates/index.html b/templates/index.html index e1dd806..a1fbca3 100644 --- a/templates/index.html +++ b/templates/index.html @@ -7,31 +7,37 @@ -

- Lipasto -

-

- A git interface for repositories. In development. Currently supports basic git pluming features, and views commits, trees, blobs, diffs and refs. Feautres like stats, commit signature verification, grep, submodules, auth, sql db integration are planned. -

-

Repositories

-
- {% for repo in repos %} -
-

{{ repo.name }}

- {% if repo.description %} -

{{ repo.description }}

- {% else %} -

No description available

- {% endif %} +
+
+

+ Lipasto +

+

+ A git web interface for repositories. Currently supports viewing commits, trees, blobs, diffs, and references. +

+
+
+

Repositories

+
+ {% for repo in repos %} +
+

{{ repo.name }}

+ {% if repo.description %} +

{{ repo.description }}

+ {% else %} +

-

+ {% endif %} +
+ {% endfor %}
- {% endfor %} +
Libgit2 - {{ version }} git -- 2.47.3