Updated css and html for github contributors, and updated list of contributors
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user