{{define "digest"}}

<dl>

<p>GitHub activity time machine for <a href="https://github.com/{{.User.Login}}" title={{.User.Name}}><img src={{.User.AvatarURL}} width="20" height="20" border="0">{{.User.Login}}</a>.</p>

{{range .IntervalDigests }}
  <h1>{{.Header}}</h1>

  <p>{{.Description}}</p>

  {{range $index, $repoDigest := .RepoDigests}}
    <h2>
      <a href="https://github.com/{{.Repo.FullName}}">
        {{.Repo.FullName}}
      </a>
    </h2>

    <div>
      {{range .Commits }}
        <div>
          <h3>{{.Title}}</h3>
          {{if .Message}}
            <pre>{{.Message}}</pre>
          {{end}}
          <div>
            <a href="{{.URL}}">{{.DisplaySHA}}</a>
            <i title={{.DisplayDateTooltip}}>{{.DisplayDate}}</i>
          </div>
        </div>
      {{end}}
    </div>
  {{end}}

{{end}}

</dl>

{{end}}

{{define "digest"}}

<dl>

<p>GitHub activity time machine for <a href="https://github.com/{{.User.Login}}" title={{.User.Name}}><img src={{.User.AvatarURL}} width="20" height="20" border="0">{{.User.Login}}</a>.</p>

{{range .IntervalDigests }}
  <h1>{{.Header}}</h1>

  <p>{{.Description}}</p>

  {{range $index, $repoDigest := .RepoDigests}}
    <h2>
      <a href="{{.Repo.HTMLURL}}">{{.Repo.FullName}}</a>
    </h2>

    <div>
      {{range .Commits }}
        <div>
          <h3>{{.Title}}</h3>
          {{if .Message}}
            <pre>{{.Message}}</pre>
          {{end}}
          <div>
            <a href="{{.URL}}">{{.DisplaySHA}}</a>
            <i title={{.DisplayDateTooltip}}>{{.DisplayDate}}</i>
          </div>
        </div>
      {{end}}
    </div>
  {{end}}

{{end}}

</dl>

{{end}}

Use the repository HTML URL in the API object.
Use the repository HTML URL in the API object.
