From 6b9844d5cfaf7bd5c3558e73b84a13b66e927a5e Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Mon, 15 Dec 2014 23:45:54 +0000 Subject: [PATCH] Updated credits page. Added progress indication for fetching contributors, moved CSS into credits HTML file, and removed extra title. --- _layouts/page.html | 1 + credits.html | 33 +++++++++++++++++++++++++++++++-- js/credits.js | 3 ++- style.css | 18 ------------------ 4 files changed, 34 insertions(+), 21 deletions(-) diff --git a/_layouts/page.html b/_layouts/page.html index b6b8e8c..c587b6a 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -18,6 +18,7 @@ + diff --git a/credits.html b/credits.html index 12295d1..584d9f6 100644 --- a/credits.html +++ b/credits.html @@ -4,10 +4,39 @@ title: Credits permalink: /credits/ --- -

{{ page.title }}

+ +

LOOT relies on the submission of information by users to improve. We can't list everyone who has posted in LOOT's forum threads, but the people who have contributed on GitHub are listed below.

Hovering over a contributor's picture displays their name and the number of contributions they've made. Team members have a green shadow, and admins have a purple shadow. -

+ diff --git a/js/credits.js b/js/credits.js index d364455..b8c424f 100644 --- a/js/credits.js +++ b/js/credits.js @@ -63,6 +63,7 @@ function showContributors(err, data) { if (numProcessedRepos === numRepos) { var contrib = document.getElementById('contrib'); contributors.sort(sortContributors); + contrib.removeChild(contrib.firstElementChild); for (var i = 0; i < contributors.length; i++) { addToList(contrib, contributors[i]); } @@ -110,4 +111,4 @@ function getContributors() { user.orgMembers('loot', storeTeamMembers); } -getContributors(); \ No newline at end of file +getContributors(); diff --git a/style.css b/style.css index ebb3277..ad3726e 100644 --- a/style.css +++ b/style.css @@ -101,21 +101,3 @@ code { display: block; } } -#contrib { - display:block; - padding-left:0; -} -#contrib li { - display:inline-block; -} -#contrib img { - height: 64px; - width: 64px; - margin: 4px; -} -#contrib img.admin { - box-shadow: 0 5px 5px -3px #b0b; -} -#contrib img.member { - box-shadow: 0 5px 5px -3px #0b0; -}