[OCaml] Mobile-friendly clone of cgit.
feat add 'Show previous commits' link on summary page
Changed files
lib/static/styles.css
@@ -369,6 +369,13 @@
369
369
line-height: var(--target-size);
370
370
}
371
371
372
Added:
/* "Show previous commits" link on summary page */
373
Added:
374
Added:
.summary-more {
375
Added:
text-align: center;
376
Added:
margin: 1em 0;
377
Added:
}
378
Added:
372
379
/* Pill color variants — WCAG AA contrast against their backgrounds */
373
380
374
381
.commit-pill-feat {
lib/views/repo.ml
@@ -495,6 +495,11 @@
495
495
description_section;
496
496
h3 [] [ txt "Latest commits" ];
497
497
ul [] (List.map (li_of_commit context.repo) commits);
498
Added:
p
499
Added:
[ class_ "summary-more" ]
500
Added:
[
501
Added:
Routes.link_to (Commits context.repo) (txt "Show previous commits");
502
Added:
];
498
503
]
499
504
500
505
let toolbar ?(filters = []) content =