| 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | @include 'layout/head.html' |
| 5 | </head> |
| 6 | <body> |
| 7 | @include 'layout/header.html' |
| 8 | |
| 9 | <div class="content"> |
| 10 | @include 'layout/repo_menu.html' |
| 11 | |
| 12 | @for day, commits2 in d_commits |
| 13 | <div class="commit-day"> |
| 14 | <div class="commit-day-title"> |
| 15 | %commits_on @day |
| 16 | </div> |
| 17 | <div class="clog-block"> |
| 18 | @for commit in commits2 |
| 19 | <div class="clog"> |
| 20 | @if commit.author_id in author_usernames |
| 21 | <a class="clog-avatar-link" href="/@author_usernames[commit.author_id]"> |
| 22 | <img class="clog-avatar" src="@author_avatars[commit.author_id]" alt="@commit.author"> |
| 23 | </a> |
| 24 | @else |
| 25 | <span class="clog-avatar-link"> |
| 26 | <img class="clog-avatar" src="/assets/default_avatar.png" alt="@commit.author"> |
| 27 | </span> |
| 28 | @end |
| 29 | <div class="clog-body"> |
| 30 | <div class="clog-msg"> |
| 31 | <a href="/@repo.user_name/@repo.name/commit/@commit.hash">@commit.message</a> |
| 32 | </div> |
| 33 | <div class="clog-meta"> |
| 34 | @if commit.author_id in author_usernames |
| 35 | <a class="clog-author" href="/@author_usernames[commit.author_id]">@commit.author</a> |
| 36 | @else |
| 37 | <span class="clog-author">@commit.author</span> |
| 38 | @end |
| 39 | <span class="clog-time">%commit_committed @commit.relative()</span> |
| 40 | </div> |
| 41 | </div> |
| 42 | <div class="clog-actions"> |
| 43 | <a class="clog-hash" href="/@repo.user_name/@repo.name/commit/@commit.hash" title="@commit.hash">@commit.short_hash()</a> |
| 44 | <a class="clog-browse" href="/@repo.user_name/@repo.name/tree/@commit.hash" title="%browse_repo_at_point" aria-label="%browse_repo_at_point"> |
| 45 | <svg aria-hidden="true" focusable="false" viewBox="0 0 16 16"><path fill="currentColor" d="M4.72 3.22a.75.75 0 0 1 1.06 1.06L2.06 8l3.72 3.72a.75.75 0 1 1-1.06 1.06L.47 8.53a.75.75 0 0 1 0-1.06Zm6.56 0a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 1 1-1.06-1.06L13.94 8l-3.72-3.72a.75.75 0 0 1 0-1.06Z"/></svg> |
| 46 | </a> |
| 47 | </div> |
| 48 | </div> |
| 49 | @end |
| 50 | </div> |
| 51 | </div> |
| 52 | @end |
| 53 | |
| 54 | @if d_commits.len > 0 |
| 55 | <div class="buttons"> |
| 56 | @if is_first_page |
| 57 | <a href="/@repo.user_name/@repo.name/@branch_name/commits/@prev_page" class="button disabled">Prev</a> |
| 58 | @else |
| 59 | <a href="/@repo.user_name/@repo.name/@branch_name/commits/@prev_page" class="button">Prev</a> |
| 60 | @end |
| 61 | |
| 62 | <span>@page of @page_count</span> |
| 63 | |
| 64 | @if is_last_page |
| 65 | <a href="/@repo.user_name/@repo.name/@branch_name/commits/@next_page" class="button disabled">Next</a> |
| 66 | @else |
| 67 | <a href="/@repo.user_name/@repo.name/@branch_name/commits/@next_page" class="button">Next</a> |
| 68 | @end |
| 69 | </div> |
| 70 | @end |
| 71 | </div> |
| 72 | |
| 73 | @include 'layout/footer.html' |
| 74 | </body> |
| 75 | </html> |
| 76 | |