Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix links and code after Meta Stack Overflow to Meta Stack Exchange split. #1

Merged
merged 3 commits into from Jun 21, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions public/javascripts/master.js
Expand Up @@ -454,15 +454,20 @@ var StackElections = (function () {
);
});

/*** No longer applicable to stackoverflow. Maybe future site? (Meta SE gets a meta? :D )
if (Settings.siteName === 'stackoverflow') {
stalkMetaCandidates(metaUsers, false);
}
*/
});

/*** No longer applicable to stackoverflow. Maybe future site? (Meta SE gets a meta? :D )
// For every other site, do meta polling here
if (Settings.siteName !== 'stackoverflow') {
stalkMetaCandidates(users, true);
}
*/
stalkMetaCandidates(users, true);

Meddle.With(Settings.siteName).users(users).badges().pagesize(100).all().sort('type').max('named').filter('3gY1MumGZ6PD').get(function (badges) {
var lists = $('.badge_list ul:empty');
Expand Down
28 changes: 14 additions & 14 deletions views/index.hbs
Expand Up @@ -8,8 +8,8 @@
<div id="header">
<h1>Stack Exchange Moderator Candidate Statistics</h1>
<p id="intro">This page was put together by
<a href="http://meta.stackoverflow.com/users/150097/yi-jiang">Yi Jiang</a> and
<a href="http://meta.stackoverflow.com/users/150235/tim-stone">Tim Stone</a>.
<a href="http://meta.stackexchange.com/users/150097/yi-jiang">Yi Jiang</a> and
<a href="http://meta.stackexchange.com/users/150235/tim-stone">Tim Stone</a>.
The statistics are loaded dynamically from your browser - please be patient, the loading times are quite long.
The statistics are presented as is, it is up to you to decide what their relative importance is.
The Noteworthy Badges are those which we consider to be relevant to the role of a moderator.
Expand Down Expand Up @@ -119,7 +119,7 @@
<p id="no-candidates">No one has braved the nomination process yet! Check back later.</p>

<div id="footer">
Created by <a href="http://meta.stackoverflow.com/users/150097/yi-jiang">Yi Jiang</a>.
Created by <a href="http://meta.stackexchange.com/users/150097/yi-jiang">Yi Jiang</a>.
Powered by the <a href="http://stackapps.com">Stack Exchange API</a>, <a href="http://www.jquery.com">jQuery</a>, <a href="http://nodejs.org/">node.js</a> and <a id="unicorn" href="#">unicorns</a>.
</div>

Expand Down Expand Up @@ -158,11 +158,11 @@
<h2>\{{{display_name}}}</h2> <p class="personal">\{{{personal_data}}}</p>
<p class="soInfo">
<span class="rep" title="\{{./reputation}}">\{{reputation reputation}}</span>
<span class="badges">
<span class="gold">\{{badge_counts.gold}}</span>
<span class="silver">\{{badge_counts.silver}}</span>
<span class="bronze">\{{badge_counts.bronze}}</span>
</span>
<span class="badges">
<span class="gold">\{{badge_counts.gold}}</span>
<span class="silver">\{{badge_counts.silver}}</span>
<span class="bronze">\{{badge_counts.bronze}}</span>
</span>
<span class="member_for" title="Member Since: \{{creation_string}}">member for: \{{member_for}}</span>
\{{#if is_protem}}
<span title="This user is a Pro Tem (Provisional) Moderator on this site" class="pro-tem">Pro Tem</span>
Expand Down Expand Up @@ -212,11 +212,11 @@
<p>Reputation: <span class="stats" title="\{{./reputation}}">\{{reputation reputation}}</span></p>
\{{/unless}}
<p>Badges:
<span class="badges stats">
<span class="gold">\{{badge_counts.gold}}</span>
<span class="silver">\{{badge_counts.silver}}</span>
<span class="bronze">\{{badge_counts.bronze}}</span>
</span>
<span class="badges stats">
<span class="gold">\{{badge_counts.gold}}</span>
<span class="silver">\{{badge_counts.silver}}</span>
<span class="bronze">\{{badge_counts.bronze}}</span>
</span>
</p>
<p>Answers/Questions: <span class="stats" title="Ratio: \{{ratio_qa}}">\{{answer_count}} / \{{question_count}}</span></p>
</script>
Expand Down Expand Up @@ -260,4 +260,4 @@
});
</script>
</body>
</html>
</html>