Updated css and html for github contributors, and updated list of contributors

This commit is contained in:
Emma Garland
2017-06-05 12:46:06 +01:00
parent 7abe6161d6
commit 06d31b36a6
4 changed files with 31 additions and 13 deletions
@@ -1,17 +1,25 @@
#github-contributors {
&:not(.all) {
.contributor:nth-child(n+17) {
.contributor {
@media (min-width: $md) {
&:nth-child(n+17) {
display: none;
}
}
}
}
&.all {
.button {
display: none;
}
}
&.all {
.button { display: none; }
}
.button {
.loadmore {
margin: 20px auto;
}
}
}
.contributor {
margin-bottom: 15px;
@@ -15,7 +15,9 @@
</a>
}
}
<a class="button green" href="#" onclick="loadAllGitHubContributors(); return false;">Load more</a>
<div class="loadmore">
<a class="button transparent" href="#" onclick="loadAllGitHubContributors(); return false;">Load more</a>
</div>
}
else
+11 -3
View File
@@ -1,7 +1,15 @@
Shazwazza
nul800sebastiaan
Aaen
clausjensen
emilwangaa
hartvig
hemraker
madsrasmussen
mikkelhm
nul800sebastiaan
perploug
sitereactor
Shazwazza
sitereactor
sofietoft
umbracoci
warrenbuckley
zpqrtbnk
@@ -62,9 +62,9 @@ namespace OurUmbraco.Community.Controllers
}, TimeSpan.FromDays(1));
var filteredContributors = contributors
.OrderByDescending(c => c.Total)
.Where(g => !login.Contains(g.Author.Login))
.GroupBy(g => g.Author.Id);
.GroupBy(g => g.Author.Id)
.OrderByDescending(c => c.Sum(g => g.Total));
model.Contributors = filteredContributors;
}