33 lines
1.2 KiB
Plaintext
33 lines
1.2 KiB
Plaintext
@model OurUmbraco.Community.Models.GitHubContributorsModel
|
|
|
|
@if (Model.Contributors.Any())
|
|
{
|
|
foreach (var contributor in Model.Contributors)
|
|
{
|
|
var author = contributor.Author;
|
|
if (author != null)
|
|
{
|
|
<a href="@author.HtmlUrl" class="contributor" target="_blank" title="@author.Login">
|
|
<div class="avatar">
|
|
<img alt="@author.Login" src="@author.AvatarUrl&s=112" />
|
|
<span class="contrib-count" title="@(contributor.TotalCommits + " 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>
|
|
} |