From 16bb7729ec740c1bc5d327aa5ac32bbff7a1afff Mon Sep 17 00:00:00 2001 From: Philip Hofstetter Date: Thu, 4 Aug 2011 21:24:48 +0200 Subject: make listing/not listing of forks configurable some people have more or less taken over projects with their forks, so it probably makes sense to still list them among the repositories --- .themes/classic/source/javascripts/github.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '.themes/classic/source/javascripts') diff --git a/.themes/classic/source/javascripts/github.js b/.themes/classic/source/javascripts/github.js index 8af51486..79c60d1b 100644 --- a/.themes/classic/source/javascripts/github.js +++ b/.themes/classic/source/javascripts/github.js @@ -18,8 +18,9 @@ github = (function(){ var repos = []; var i; for (i = 0; i < data.repositories.length; i++){ - if (!data.repositories[i].fork) - repos.push(data.repositories[i]); + if (options.skip_forks && !data.repositories[i].fork) + continue; + repos.push(data.repositories[i]); } repos.sort(function(a, b){ var a = new Date(a.pushed_at), -- cgit v1.2.1