diff --git a/OurUmbraco.Client/src/scss/sections/_contributors.scss b/OurUmbraco.Client/src/scss/sections/_contributors.scss index fc617670..3fdaf016 100644 --- a/OurUmbraco.Client/src/scss/sections/_contributors.scss +++ b/OurUmbraco.Client/src/scss/sections/_contributors.scss @@ -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; diff --git a/OurUmbraco.Site/Views/Partials/Home/GitHubContributors.cshtml b/OurUmbraco.Site/Views/Partials/Home/GitHubContributors.cshtml index 6111e97d..22701e12 100644 --- a/OurUmbraco.Site/Views/Partials/Home/GitHubContributors.cshtml +++ b/OurUmbraco.Site/Views/Partials/Home/GitHubContributors.cshtml @@ -15,7 +15,9 @@ } } - Load more +
+ Load more +
} else diff --git a/OurUmbraco.Site/config/githubhq.txt b/OurUmbraco.Site/config/githubhq.txt index c013988c..f7d2b898 100644 --- a/OurUmbraco.Site/config/githubhq.txt +++ b/OurUmbraco.Site/config/githubhq.txt @@ -1,7 +1,15 @@ -Shazwazza -nul800sebastiaan +Aaen +clausjensen +emilwangaa +hartvig hemraker madsrasmussen mikkelhm +nul800sebastiaan perploug -sitereactor \ No newline at end of file +Shazwazza +sitereactor +sofietoft +umbracoci +warrenbuckley +zpqrtbnk \ No newline at end of file diff --git a/OurUmbraco/Community/Controllers/GitHubContributorController.cs b/OurUmbraco/Community/Controllers/GitHubContributorController.cs index 14e81007..9db085c2 100644 --- a/OurUmbraco/Community/Controllers/GitHubContributorController.cs +++ b/OurUmbraco/Community/Controllers/GitHubContributorController.cs @@ -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; }