Sam Jeston
History
28 lines·
1.3 KB
·HTML
| 1 | {# Expects `groups` (Vec<CommitGroup>) and `base`. #} |
| 2 | <div class="commit-groups"> |
| 3 | {% for g in groups %} |
| 4 | <div class="commit-group"> |
| 5 | <h3 class="commit-group-title">{{ crate::web::fmt::icon("git-commit-horizontal")|safe }} Commits on {{ g.date }}</h3> |
| 6 | <div class="box"> |
| 7 | {% for c in g.commits %} |
| 8 | <div class="box-row commit-row"> |
| 9 | <div class="commit-main"> |
| 10 | <a class="commit-title" href="{{ base }}/commit/{{ c.id }}">{{ c.summary }}</a> |
| 11 | <div class="commit-meta"> |
| 12 | {{ crate::web::fmt::avatar(c.author_name, 18)|safe }} |
| 13 | <strong>{{ c.author_name }}</strong> committed <time title="{{ crate::web::fmt::datetime_full(c.committer_time) }}">{{ crate::web::fmt::ago(c.committer_time) }}</time> |
| 14 | </div> |
| 15 | </div> |
| 16 | <div class="commit-actions"> |
| 17 | <div class="btn-group"> |
| 18 | <a class="btn btn-sm btn-mono" href="{{ base }}/commit/{{ c.id }}">{{ c.short_id }}</a> |
| 19 | <button type="button" class="btn btn-sm" data-copy-text="{{ c.id }}" title="Copy full SHA">{{ crate::web::fmt::icon("copy")|safe }}</button> |
| 20 | </div> |
| 21 | <a class="btn btn-sm btn-ghost" href="{{ base }}/tree/{{ c.id }}" title="Browse the repository at this point">{{ crate::web::fmt::icon("code")|safe }}</a> |
| 22 | </div> |
| 23 | </div> |
| 24 | {% endfor %} |
| 25 | </div> |
| 26 | </div> |
| 27 | {% endfor %} |
| 28 | </div> |