32 lines
1.3 KiB
Plaintext
32 lines
1.3 KiB
Plaintext
@model OurUmbraco.Community.Models.GitHubContributorsModel
|
|
|
|
@if (Model.Contributors.Any())
|
|
{
|
|
foreach (var contributor in Model.Contributors)
|
|
{
|
|
<a href="@contributor.AuthorUrl" class="contributor" target="_blank" title="@contributor.AuthorLogin">
|
|
<div class="avatar">
|
|
<img alt="@contributor.AuthorLogin" src="@contributor.AuthorAvatarUrl&s=112"
|
|
srcset="@contributor.AuthorAvatarUrl&s=224 2x, @contributor.AuthorAvatarUrl&s=336 3x" />
|
|
<span class="contrib-count" title="@(contributor.TotalCommits + " " + (contributor.TotalCommits == 1 ? "contribution" : "contributions"))">
|
|
@contributor.TotalCommits
|
|
</span>
|
|
<div class="counts">
|
|
Additions<br />
|
|
<strong>@contributor.TotalAdditions</strong><br />
|
|
<br />
|
|
Deletions<br />
|
|
<strong>@contributor.TotalDeletions</strong>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
}
|
|
<div class="loadmore">
|
|
<a class="button transparent" href="#" onclick="loadAllGitHubContributors(); return false;">Load more</a>
|
|
</div>
|
|
}
|
|
|
|
else
|
|
{
|
|
<h2>Could not load recent GitHub contributors.</h2>
|
|
} |