From 70b44ca79b88a928bd400dd96e85b5a2aea719f6 Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Wed, 5 Oct 2016 14:53:05 +0300 Subject: [PATCH] Correct capitalization of "GitHub". "GitHub" with a lowercase "h" is wrong. Not tested locally. --- root/about/contributors.html | 2 +- root/about/development.html | 4 ++-- root/inc/keyboard_shortcuts.html | 2 +- root/preprocess.html | 2 +- root/static/js/github.js | 12 ++++++------ root/wrapper.html | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/root/about/contributors.html b/root/about/contributors.html index 13ca2bfa47..1110037045 100644 --- a/root/about/contributors.html +++ b/root/about/contributors.html @@ -38,7 +38,7 @@ }); $.each(rows, function(idx, row) { el.append( - '
  • ' + '
  • ' +''+ row.login +'' +'('+ row.contributions +' '+ (row.contributions === 1 ? 'commit' : 'commits') +')
  • ' ); diff --git a/root/about/development.html b/root/about/development.html index 16a5768505..bea1cfd67b 100644 --- a/root/about/development.html +++ b/root/about/development.html @@ -10,8 +10,8 @@ Our code base is based on current best practices and modern web technologies. Our stack includes Catalyst, Plack, ElasticSearch, jQuery, Bootstrap and nginx. We also use Puppet for deployment and Vagrant + VirtualBox for development VMs. -We have integration with Twitter, Github, PAUSE, Facebook and Google. All code -is managed on Github and we have an active channel (#metacpan) on irc.perl.org. +We have integration with Twitter, GitHub, PAUSE, Facebook and Google. All code +is managed on GitHub and we have an active channel (#metacpan) on irc.perl.org. Try the mibbit web client to access the channel. The IRC channel has an archive as well. diff --git a/root/inc/keyboard_shortcuts.html b/root/inc/keyboard_shortcuts.html index 3b48135c13..6787313665 100644 --- a/root/inc/keyboard_shortcuts.html +++ b/root/inc/keyboard_shortcuts.html @@ -26,7 +26,7 @@ - Github + GitHub diff --git a/root/preprocess.html b/root/preprocess.html index 4b5633ff3d..8f1792da50 100644 --- a/root/preprocess.html +++ b/root/preprocess.html @@ -19,7 +19,7 @@ friendfeed = { name = 'FriendFeed', url = 'http://friendfeed.com/%s' }, geeklist = { name = 'geekli.st', url = 'http://geekli.st/%s' }, github = { name = 'GitHub', url = 'https://github.com/%s' }, - 'github-meets-cpan' = { name = 'Github Meets CPAN', url = 'http://gh.metacpan.org/user/%s' }, + 'github-meets-cpan' = { name = 'GitHub Meets CPAN', url = 'http://gh.metacpan.org/user/%s' }, gitorious = { name = 'Gitorious', url = 'https://gitorious.org/~%s' }, gittip = { name = 'Gratipay', url = 'https://gratipay.com/%s' }, googleplus = { name = 'Google+', url = 'http://plus.google.com/%s' }, diff --git a/root/static/js/github.js b/root/static/js/github.js index 331551cd6c..ff40237dc1 100644 --- a/root/static/js/github.js +++ b/root/static/js/github.js @@ -5,12 +5,12 @@ // to the same github repo. If you mouse over both the requests are made // twice. It would be nice to share the responses between both. - function GithubUrl(item) { + function GitHubUrl(item) { this.item = $(item); this.href = this.item.attr('href'); } - GithubUrl.match = function(a){ + GitHubUrl.match = function(a){ if ($(a).length == 0) return; return $(a).attr('href').indexOf('github') >= 0; @@ -18,7 +18,7 @@ // anchor patterns and check for www. or no subdomain to avoid user wikis, blogs, etc - $.extend(GithubUrl.prototype, { + $.extend(GitHubUrl.prototype, { config: { // Release info @@ -244,15 +244,15 @@ $(document).ready(function() { $('.nav-list a:not(.nopopup)').each(function() { - if( GithubUrl.match(this) ) { - (new GithubUrl(this)).createPopup(); + if( GitHubUrl.match(this) ) { + (new GitHubUrl(this)).createPopup(); } }); var repository = $('a[data-keyboard-shortcut="g r"]'); - if( GithubUrl.match(repository) ) { + if( GitHubUrl.match(repository) ) { Mousetrap.bind('g p', function() { // we haven't hit the github api at this point, so we cheat for the url var pull_request_url = repository.attr('href') + '/pulls'; diff --git a/root/wrapper.html b/root/wrapper.html index c69192b451..1040a4ebf7 100644 --- a/root/wrapper.html +++ b/root/wrapper.html @@ -15,7 +15,7 @@ icon = "question", }, { - title = "Github Issues", + title = "GitHub Issues", path = ["https://github.com/metacpan/metacpan-web/issues"], class = 'hidden-xs', icon = "github-alt",