From 89dd83d50498081ccac9705de46594123e634a0b Mon Sep 17 00:00:00 2001 From: Tristan Dunn Date: Thu, 17 Jan 2013 03:51:18 -0600 Subject: [PATCH 1/2] Link watcher and fork counts to GitHub. --- themes/plugins.jquery.com/functions.php | 8 ++++++++ themes/plugins.jquery.com/sidebar-jquery_plugin.php | 8 ++++---- themes/plugins.jquery.com/style.css | 4 ++++ 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/themes/plugins.jquery.com/functions.php b/themes/plugins.jquery.com/functions.php index 6e4381b9..56ab8171 100644 --- a/themes/plugins.jquery.com/functions.php +++ b/themes/plugins.jquery.com/functions.php @@ -26,10 +26,18 @@ function jq_plugin_watchers() { return jq_plugin_meta( array( "key" => "watchers" ) ); } +function jq_plugin_watchers_url() { + return jq_plugin_repo_url() + "/stargazers"; +} + function jq_plugin_forks() { return jq_plugin_meta( array( "key" => "forks" ) ); } +function jq_plugin_forks_url() { + return jq_plugin_repo_url() + "/network"; +} + function jq_plugin_versions() { $versions = jq_plugin_meta( array( "key" => "versions" ) ); $latest = jq_plugin_meta( array( "key" => "latest" ) ); diff --git a/themes/plugins.jquery.com/sidebar-jquery_plugin.php b/themes/plugins.jquery.com/sidebar-jquery_plugin.php index b3b11e65..87085545 100644 --- a/themes/plugins.jquery.com/sidebar-jquery_plugin.php +++ b/themes/plugins.jquery.com/sidebar-jquery_plugin.php @@ -34,14 +34,14 @@