{"action":"created","comment":{"url":"https://api.github.com/repos/felicity-iiith/felicity16-website/pulls/comments/48601087","id":48601087,"diff_hunk":"@@ -0,0 +1,35 @@\n+<!DOCTYPE html>\n+<html lang=\"en\">\n+<head>\n+    <meta charset=\"utf-8\">\n+    <title>Student Ambassador Program · Felicity ʼ16</title>\n+    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n+    <link rel=\"stylesheet\" href=\"<?= base_url() ?>static/styles/vendor/thoda.min.css\">\n+</head>\n+<body>\n+    <?php $this->load_fragment('sap/navbar_fragment', ['logged_in' => true]); ?>\n+    <div class=\"container\">\n+        <h1>Leaderboard</h1>\n+        <table class=\"text-center striped\">\n+        <tr>\n+            <th>Rank</th>\n+            <th>Name</th>\n+            <th>Score</th>\n+        </tr>\n+        <?php\n+            $rank = 1;\n+            foreach ($user_scores as $user_score) {\n+                $name = $user_score['name'];\n+                $score = $user_score['score'];\n+                echo \"<tr>\";\n+                echo \"<td>$rank</td>\";","path":"src/app/views/sap/leaderboard.php","position":25,"original_position":25,"commit_id":"a0fa9b7dbeae905162132ccdc1a55e77aa564772","original_commit_id":"a0fa9b7dbeae905162132ccdc1a55e77aa564772","user":{"login":"erilyth","id":9864149,"avatar_url":"https://avatars.githubusercontent.com/u/9864149?v=3","gravatar_id":"","url":"https://api.github.com/users/erilyth","html_url":"https://github.com/erilyth","followers_url":"https://api.github.com/users/erilyth/followers","following_url":"https://api.github.com/users/erilyth/following{/other_user}","gists_url":"https://api.github.com/users/erilyth/gists{/gist_id}","starred_url":"https://api.github.com/users/erilyth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erilyth/subscriptions","organizations_url":"https://api.github.com/users/erilyth/orgs","repos_url":"https://api.github.com/users/erilyth/repos","events_url":"https://api.github.com/users/erilyth/events{/privacy}","received_events_url":"https://api.github.com/users/erilyth/received_events","type":"User","site_admin":false},"body":"Ah, ok Ill do that. It would be a lot more reasonable rather than getting a better rank if you name is lexicographically smaller :P","created_at":"2015-12-30T12:16:27Z","updated_at":"2015-12-30T12:16:27Z","html_url":"https://github.com/felicity-iiith/felicity16-website/pull/92#discussion_r48601087","pull_request_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/pulls/92","_links":{"self":{"href":"https://api.github.com/repos/felicity-iiith/felicity16-website/pulls/comments/48601087"},"html":{"href":"https://github.com/felicity-iiith/felicity16-website/pull/92#discussion_r48601087"},"pull_request":{"href":"https://api.github.com/repos/felicity-iiith/felicity16-website/pulls/92"}}},"pull_request":{"url":"https://api.github.com/repos/felicity-iiith/felicity16-website/pulls/92","id":54715500,"html_url":"https://github.com/felicity-iiith/felicity16-website/pull/92","diff_url":"https://github.com/felicity-iiith/felicity16-website/pull/92.diff","patch_url":"https://github.com/felicity-iiith/felicity16-website/pull/92.patch","issue_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/issues/92","number":92,"state":"closed","locked":false,"title":"Add leaderboard to SAP Portal","user":{"login":"erilyth","id":9864149,"avatar_url":"https://avatars.githubusercontent.com/u/9864149?v=3","gravatar_id":"","url":"https://api.github.com/users/erilyth","html_url":"https://github.com/erilyth","followers_url":"https://api.github.com/users/erilyth/followers","following_url":"https://api.github.com/users/erilyth/following{/other_user}","gists_url":"https://api.github.com/users/erilyth/gists{/gist_id}","starred_url":"https://api.github.com/users/erilyth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erilyth/subscriptions","organizations_url":"https://api.github.com/users/erilyth/orgs","repos_url":"https://api.github.com/users/erilyth/repos","events_url":"https://api.github.com/users/erilyth/events{/privacy}","received_events_url":"https://api.github.com/users/erilyth/received_events","type":"User","site_admin":false},"body":"The styling is not complete on the leaderboard but the logic works.\r\n\r\nResolves T118.","created_at":"2015-12-29T10:12:11Z","updated_at":"2015-12-30T12:16:27Z","closed_at":"2015-12-29T15:39:53Z","merged_at":"2015-12-29T15:39:53Z","merge_commit_sha":"8cf62feeb8ccde79c08973b2b2847d8dc55caff2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/pulls/92/commits","review_comments_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/pulls/92/comments","review_comment_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/pulls/comments{/number}","comments_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/issues/92/comments","statuses_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/statuses/a0fa9b7dbeae905162132ccdc1a55e77aa564772","head":{"label":"erilyth:master","ref":"master","sha":"a0fa9b7dbeae905162132ccdc1a55e77aa564772","user":{"login":"erilyth","id":9864149,"avatar_url":"https://avatars.githubusercontent.com/u/9864149?v=3","gravatar_id":"","url":"https://api.github.com/users/erilyth","html_url":"https://github.com/erilyth","followers_url":"https://api.github.com/users/erilyth/followers","following_url":"https://api.github.com/users/erilyth/following{/other_user}","gists_url":"https://api.github.com/users/erilyth/gists{/gist_id}","starred_url":"https://api.github.com/users/erilyth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erilyth/subscriptions","organizations_url":"https://api.github.com/users/erilyth/orgs","repos_url":"https://api.github.com/users/erilyth/repos","events_url":"https://api.github.com/users/erilyth/events{/privacy}","received_events_url":"https://api.github.com/users/erilyth/received_events","type":"User","site_admin":false},"repo":{"id":47269555,"name":"felicity16-website","full_name":"erilyth/felicity16-website","owner":{"login":"erilyth","id":9864149,"avatar_url":"https://avatars.githubusercontent.com/u/9864149?v=3","gravatar_id":"","url":"https://api.github.com/users/erilyth","html_url":"https://github.com/erilyth","followers_url":"https://api.github.com/users/erilyth/followers","following_url":"https://api.github.com/users/erilyth/following{/other_user}","gists_url":"https://api.github.com/users/erilyth/gists{/gist_id}","starred_url":"https://api.github.com/users/erilyth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erilyth/subscriptions","organizations_url":"https://api.github.com/users/erilyth/orgs","repos_url":"https://api.github.com/users/erilyth/repos","events_url":"https://api.github.com/users/erilyth/events{/privacy}","received_events_url":"https://api.github.com/users/erilyth/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/erilyth/felicity16-website","description":"Felicity '16 website.","fork":true,"url":"https://api.github.com/repos/erilyth/felicity16-website","forks_url":"https://api.github.com/repos/erilyth/felicity16-website/forks","keys_url":"https://api.github.com/repos/erilyth/felicity16-website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/erilyth/felicity16-website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/erilyth/felicity16-website/teams","hooks_url":"https://api.github.com/repos/erilyth/felicity16-website/hooks","issue_events_url":"https://api.github.com/repos/erilyth/felicity16-website/issues/events{/number}","events_url":"https://api.github.com/repos/erilyth/felicity16-website/events","assignees_url":"https://api.github.com/repos/erilyth/felicity16-website/assignees{/user}","branches_url":"https://api.github.com/repos/erilyth/felicity16-website/branches{/branch}","tags_url":"https://api.github.com/repos/erilyth/felicity16-website/tags","blobs_url":"https://api.github.com/repos/erilyth/felicity16-website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/erilyth/felicity16-website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/erilyth/felicity16-website/git/refs{/sha}","trees_url":"https://api.github.com/repos/erilyth/felicity16-website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/erilyth/felicity16-website/statuses/{sha}","languages_url":"https://api.github.com/repos/erilyth/felicity16-website/languages","stargazers_url":"https://api.github.com/repos/erilyth/felicity16-website/stargazers","contributors_url":"https://api.github.com/repos/erilyth/felicity16-website/contributors","subscribers_url":"https://api.github.com/repos/erilyth/felicity16-website/subscribers","subscription_url":"https://api.github.com/repos/erilyth/felicity16-website/subscription","commits_url":"https://api.github.com/repos/erilyth/felicity16-website/commits{/sha}","git_commits_url":"https://api.github.com/repos/erilyth/felicity16-website/git/commits{/sha}","comments_url":"https://api.github.com/repos/erilyth/felicity16-website/comments{/number}","issue_comment_url":"https://api.github.com/repos/erilyth/felicity16-website/issues/comments{/number}","contents_url":"https://api.github.com/repos/erilyth/felicity16-website/contents/{+path}","compare_url":"https://api.github.com/repos/erilyth/felicity16-website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/erilyth/felicity16-website/merges","archive_url":"https://api.github.com/repos/erilyth/felicity16-website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/erilyth/felicity16-website/downloads","issues_url":"https://api.github.com/repos/erilyth/felicity16-website/issues{/number}","pulls_url":"https://api.github.com/repos/erilyth/felicity16-website/pulls{/number}","milestones_url":"https://api.github.com/repos/erilyth/felicity16-website/milestones{/number}","notifications_url":"https://api.github.com/repos/erilyth/felicity16-website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/erilyth/felicity16-website/labels{/name}","releases_url":"https://api.github.com/repos/erilyth/felicity16-website/releases{/id}","created_at":"2015-12-02T15:21:29Z","updated_at":"2015-12-02T15:21:30Z","pushed_at":"2015-12-29T15:54:22Z","git_url":"git://github.com/erilyth/felicity16-website.git","ssh_url":"git@github.com:erilyth/felicity16-website.git","clone_url":"https://github.com/erilyth/felicity16-website.git","svn_url":"https://github.com/erilyth/felicity16-website","homepage":"","size":408,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"felicity-iiith:master","ref":"master","sha":"edbedb24c484b2ad5dc89c13c3516ec9e90ea74d","user":{"login":"felicity-iiith","id":7930741,"avatar_url":"https://avatars.githubusercontent.com/u/7930741?v=3","gravatar_id":"","url":"https://api.github.com/users/felicity-iiith","html_url":"https://github.com/felicity-iiith","followers_url":"https://api.github.com/users/felicity-iiith/followers","following_url":"https://api.github.com/users/felicity-iiith/following{/other_user}","gists_url":"https://api.github.com/users/felicity-iiith/gists{/gist_id}","starred_url":"https://api.github.com/users/felicity-iiith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felicity-iiith/subscriptions","organizations_url":"https://api.github.com/users/felicity-iiith/orgs","repos_url":"https://api.github.com/users/felicity-iiith/repos","events_url":"https://api.github.com/users/felicity-iiith/events{/privacy}","received_events_url":"https://api.github.com/users/felicity-iiith/received_events","type":"Organization","site_admin":false},"repo":{"id":39135757,"name":"felicity16-website","full_name":"felicity-iiith/felicity16-website","owner":{"login":"felicity-iiith","id":7930741,"avatar_url":"https://avatars.githubusercontent.com/u/7930741?v=3","gravatar_id":"","url":"https://api.github.com/users/felicity-iiith","html_url":"https://github.com/felicity-iiith","followers_url":"https://api.github.com/users/felicity-iiith/followers","following_url":"https://api.github.com/users/felicity-iiith/following{/other_user}","gists_url":"https://api.github.com/users/felicity-iiith/gists{/gist_id}","starred_url":"https://api.github.com/users/felicity-iiith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felicity-iiith/subscriptions","organizations_url":"https://api.github.com/users/felicity-iiith/orgs","repos_url":"https://api.github.com/users/felicity-iiith/repos","events_url":"https://api.github.com/users/felicity-iiith/events{/privacy}","received_events_url":"https://api.github.com/users/felicity-iiith/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/felicity-iiith/felicity16-website","description":"Felicity '16 website.","fork":false,"url":"https://api.github.com/repos/felicity-iiith/felicity16-website","forks_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/forks","keys_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/teams","hooks_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/hooks","issue_events_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/issues/events{/number}","events_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/events","assignees_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/assignees{/user}","branches_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/branches{/branch}","tags_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/tags","blobs_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/git/refs{/sha}","trees_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/statuses/{sha}","languages_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/languages","stargazers_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/stargazers","contributors_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/contributors","subscribers_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/subscribers","subscription_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/subscription","commits_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/commits{/sha}","git_commits_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/git/commits{/sha}","comments_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/comments{/number}","issue_comment_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/issues/comments{/number}","contents_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/contents/{+path}","compare_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/merges","archive_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/downloads","issues_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/issues{/number}","pulls_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/pulls{/number}","milestones_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/milestones{/number}","notifications_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/labels{/name}","releases_url":"https://api.github.com/repos/felicity-iiith/felicity16-website/releases{/id}","created_at":"2015-07-15T12:32:54Z","updated_at":"2015-12-23T15:59:26Z","pushed_at":"2015-12-30T09:30:18Z","git_url":"git://github.com/felicity-iiith/felicity16-website.git","ssh_url":"git@github.com:felicity-iiith/felicity16-website.git","clone_url":"https://github.com/felicity-iiith/felicity16-website.git","svn_url":"https://github.com/felicity-iiith/felicity16-website","homepage":"","size":443,"stargazers_count":7,"watchers_count":7,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":3,"forks":15,"open_issues":3,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/felicity-iiith/felicity16-website/pulls/92"},"html":{"href":"https://github.com/felicity-iiith/felicity16-website/pull/92"},"issue":{"href":"https://api.github.com/repos/felicity-iiith/felicity16-website/issues/92"},"comments":{"href":"https://api.github.com/repos/felicity-iiith/felicity16-website/issues/92/comments"},"review_comments":{"href":"https://api.github.com/repos/felicity-iiith/felicity16-website/pulls/92/comments"},"review_comment":{"href":"https://api.github.com/repos/felicity-iiith/felicity16-website/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/felicity-iiith/felicity16-website/pulls/92/commits"},"statuses":{"href":"https://api.github.com/repos/felicity-iiith/felicity16-website/statuses/a0fa9b7dbeae905162132ccdc1a55e77aa564772"}}}}