mygit

[UNMAINTAINED] A cgit/webgit alternative, written in Rust
Log | Files | Refs | README | LICENSE

commit 68fc81718f288c3c8b7eefc6c42d812fcf2a83de
parent 9d87d1bee5ac4d709bc46a4ac58c8dac398bea25
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sun, 14 Mar 2021 12:04:51 -0700

Hide columns on mobile for git log

Not ideal but a simple decent solution for now

Diffstat:
Mtemplates/log.html | 8++++----
Mtemplates/static/style.css | 4++--
2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/templates/log.html b/templates/log.html @@ -6,11 +6,11 @@ <table> {% for commit in commits %} <tr> - <td class="commit-hash"><a href="/{{name}}/commit/{{commit.id()}}">{{commit.id().to_string()[..7]}}</td> + <td class="commit-hash"><a href="/{{name}}/commit/{{commit.id()}}">{{commit.id().to_string()[..7]}}</a></td> {% let summary = commit.summary().unwrap_or("")|truncate(72) %} - <td>{{summary}}</td> - <td><a href="mailto:{{commit.author().email().unwrap_or("")}}">{{commit.author().name().unwrap_or("")}}</a></td> - <td>{{commit.time()|format_datetime("%Y-%m-%d")}}</td> + <td class="commit-summary">{{summary}}</td> + <td class="commit-author-email"><a href="mailto:{{commit.author().email().unwrap_or("")}}">{{commit.author().name().unwrap_or("")}}</a></td> + <td class="commit-date">{{commit.time()|format_datetime("%Y-%m-%d")}}</td> </tr> {% endfor %} </table> diff --git a/templates/static/style.css b/templates/static/style.css @@ -68,7 +68,7 @@ table td { padding: 0 0.1em; } -table { +table.core { width: 100%; border-collapse: collapse; } @@ -78,7 +78,7 @@ table { font-size: 16px; } - .repo-description, .repo-last-updated { + .repo-description, .repo-last-updated, .commit-author-email, .commit-date { display: none; } }