mirror of
https://github.com/samsonjs/retrogit.git
synced 2026-03-25 09:25:49 +00:00
Return the data that we have, and indicate in a footer which repositories errors were encountered for.
68 lines
2.1 KiB
HTML
68 lines
2.1 KiB
HTML
{{define "digest"}}
|
|
|
|
<div style="{{style "digest"}}">
|
|
|
|
<p style="{{style "proportional" "intro-paragraph"}}">
|
|
GitHub activity time machine for
|
|
<a href="https://github.com/{{.User.Login}}"
|
|
title="{{.User.Name}}"
|
|
style="{{style "link" "intro-paragraph.user-link"}}">
|
|
<img src="{{.User.AvatarURL}}"
|
|
width="20"
|
|
height="20"
|
|
border="0"
|
|
style="{{style "intro-paragraph.user-avatar"}}">{{.User.Login}}
|
|
</a>.
|
|
</p>
|
|
|
|
{{range .IntervalDigests }}
|
|
{{$interval := .}}
|
|
<h1 style="{{style "interval-header"}}">{{.Header}}</h1>
|
|
|
|
<p style="{{style "proportional"}}">{{.Description}}</p>
|
|
|
|
{{range .RepoDigests}}
|
|
<h2 style="{{style "repository-header"}}">
|
|
<a href="{{.Repo.HTMLURL}}" style="{{style "link" "repository-header.link"}}">{{.Repo.FullName}}</a>
|
|
</h2>
|
|
|
|
<div>
|
|
{{range .Commits }}
|
|
<div style="{{style "commit.container"}}">
|
|
<div style="{{style "commit.corner"}}">
|
|
<div style="{{style "commit.corner.cover"}}"></div>
|
|
</div>
|
|
<div style="{{style "commit.corner"}}">
|
|
<div style="{{style "commit.corner.border"}}"></div>
|
|
</div>
|
|
<div style="{{style "commit"}}">
|
|
<h3 style="{{style "commit.title"}}">{{.Title}}</h3>
|
|
{{if .Message}}
|
|
<pre style="{{style "commit.message"}}">{{.Message}}</pre>
|
|
{{end}}
|
|
<div style="{{style "commit.footer"}}">
|
|
<a href="{{.URL}}"
|
|
style="{{style "link" "commit.footer.link"}}">{{.DisplaySHA}}</a>
|
|
<i title={{.DisplayDateTooltip}}
|
|
style="{{style "proportional" "commit.footer.date"}}">{{if $interval.Weekly}}{{.WeeklyDisplayDate}}{{else}}{{.DisplayDate}}{{end}}</i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{if .RepoErrors}}
|
|
<div style="{{style "errors"}}">
|
|
Errors were encountered for the following repositories:
|
|
{{range $repoFullName, $error := .RepoErrors}}
|
|
<a href="https://github.com/{{$repoFullName}}">{{$repoFullName}}</a>
|
|
{{end}}
|
|
</div>
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|