{"action":"created","comment":{"url":"https://api.github.com/repos/biola/biola-edu/pulls/comments/56856205","id":56856205,"diff_hunk":"@@ -0,0 +1,78 @@\n+ruby:\n+  clubs = Group.where(:categories => 'Student Clubs').all.order(title: :asc).to_a\n+  offset = clubs.length / 3\n+  index = 0\n+\n+= render 'layouts/biola_header_local'\n+\n+.page-segment\n+  .container\n+    = @page_edition.body.try(:html_safe)\n+    hr\n+    .row\n+      .col-md-6\n+        .panel-group\n+          .panel.panel-default\n+            input#filter.form-control placeholder=\"Search Student Clubs\" type=\"text\" /\n+    .row\n+      #clubs-list\n+        .col-md-4\n+          #accordion1.panel-group aria-multiselectable=\"true\" role=\"tablist\"\n+            - clubs[0..offset-1].each do |club|\n+              .panel.panel-default\n+                .panel-heading role=\"tab\" id=\"heading#{index}\"\n+                  h4.panel-title\n+                    a.collapsed aria-controls=\"collapse#{index}\" aria-expanded=\"false\" data-parent=\"#accordion1\" data-toggle=\"collapse\" href=\"#collapse#{index}\" role=\"button\"\n+                      = club.title\n+                .panel-collapse.collapse aria-labelledby=\"heading#{index}\" role=\"tabpanel\" id=\"collapse#{index}\"\n+                  .panel-body\n+                    p = club.description\n+                    = club.body.try(:html_safe)\n+              - index += 1\n+        .col-md-4\n+          #accordion2.panel-group aria-multiselectable=\"true\" role=\"tablist\"\n+            - clubs[(offset)..(clubs.length-offset-1)].each do |club|\n+              .panel.panel-default\n+                .panel-heading role=\"tab\" id=\"heading#{index}\"\n+                  h4.panel-title\n+                    a.collapsed aria-controls=\"collapse#{index}\" aria-expanded=\"false\" data-parent=\"#accordion2\" data-toggle=\"collapse\" href=\"#collapse#{index}\" role=\"button\"\n+                      = club.title\n+                .panel-collapse.collapse aria-labelledby=\"heading#{index}\" role=\"tabpanel\" id=\"collapse#{index}\"\n+                  .panel-body\n+                    p = club.description\n+                    = club.body.try(:html_safe)\n+              - index += 1\n+        .col-md-4\n+          #accordion3.panel-group aria-multiselectable=\"true\" role=\"tablist\"\n+            - clubs[(clubs.length-offset)..clubs.length].each do |club|\n+              .panel.panel-default\n+                .panel-heading role=\"tab\" id=\"heading#{index}\"\n+                  h4.panel-title\n+                    a.collapsed aria-controls=\"collapse#{index}\" aria-expanded=\"false\" data-parent=\"#accordion3\" data-toggle=\"collapse\" href=\"#collapse#{index}\" role=\"button\"\n+                      = club.title\n+                .panel-collapse.collapse aria-labelledby=\"heading#{index}\" role=\"tabpanel\" id=\"collapse#{index}\"\n+                  .panel-body\n+                    p = club.description\n+                    = club.body.try(:html_safe)\n+              - index += 1\n+\n+  = content_for :extra_javascript\n+    javascript:\n+      var $clubs = $('#clubs-list').find('.panel');\n+      $('#filter').keyup(function() {\n+          var re = new RegExp($(this).val(), \"i\"); // \"i\" means it's case-insensitive\n+          $clubs.show().filter(function() {\n+              return !re.test($(this).text());\n+          }).hide();\n+      });\n+\n+= render 'shared/breadcrumbs'\n+\n+- unless (request.path =~ /^\\/undergrad/).blank? # show the undergrad_footer if on an /undergrad/* page","path":"app/views/page_editions/templates/clubs/index.html.slim","position":71,"original_position":71,"commit_id":"32ab58c83a04112d46be6d386442e23afd077684","original_commit_id":"32ab58c83a04112d46be6d386442e23afd077684","user":{"login":"halloffame","id":957859,"avatar_url":"https://avatars.githubusercontent.com/u/957859?v=3","gravatar_id":"","url":"https://api.github.com/users/halloffame","html_url":"https://github.com/halloffame","followers_url":"https://api.github.com/users/halloffame/followers","following_url":"https://api.github.com/users/halloffame/following{/other_user}","gists_url":"https://api.github.com/users/halloffame/gists{/gist_id}","starred_url":"https://api.github.com/users/halloffame/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halloffame/subscriptions","organizations_url":"https://api.github.com/users/halloffame/orgs","repos_url":"https://api.github.com/users/halloffame/repos","events_url":"https://api.github.com/users/halloffame/events{/privacy}","received_events_url":"https://api.github.com/users/halloffame/received_events","type":"User","site_admin":false},"body":"You shouldn't need this since this page wont live under undergrad, right?","created_at":"2016-03-21T16:50:29Z","updated_at":"2016-03-21T16:50:29Z","html_url":"https://github.com/biola/biola-edu/pull/211#discussion_r56856205","pull_request_url":"https://api.github.com/repos/biola/biola-edu/pulls/211","_links":{"self":{"href":"https://api.github.com/repos/biola/biola-edu/pulls/comments/56856205"},"html":{"href":"https://github.com/biola/biola-edu/pull/211#discussion_r56856205"},"pull_request":{"href":"https://api.github.com/repos/biola/biola-edu/pulls/211"}}},"pull_request":{"url":"https://api.github.com/repos/biola/biola-edu/pulls/211","id":63453112,"html_url":"https://github.com/biola/biola-edu/pull/211","diff_url":"https://github.com/biola/biola-edu/pull/211.diff","patch_url":"https://github.com/biola/biola-edu/pull/211.patch","issue_url":"https://api.github.com/repos/biola/biola-edu/issues/211","number":211,"state":"open","locked":false,"title":"Add clubs template","user":{"login":"ojbucao","id":9256675,"avatar_url":"https://avatars.githubusercontent.com/u/9256675?v=3","gravatar_id":"","url":"https://api.github.com/users/ojbucao","html_url":"https://github.com/ojbucao","followers_url":"https://api.github.com/users/ojbucao/followers","following_url":"https://api.github.com/users/ojbucao/following{/other_user}","gists_url":"https://api.github.com/users/ojbucao/gists{/gist_id}","starred_url":"https://api.github.com/users/ojbucao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ojbucao/subscriptions","organizations_url":"https://api.github.com/users/ojbucao/orgs","repos_url":"https://api.github.com/users/ojbucao/repos","events_url":"https://api.github.com/users/ojbucao/events{/privacy}","received_events_url":"https://api.github.com/users/ojbucao/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-19T00:39:57Z","updated_at":"2016-03-21T16:50:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9ca2f2b12d0bf4acdfe1ee70712ce9e6b8e38bba","assignee":{"login":"halloffame","id":957859,"avatar_url":"https://avatars.githubusercontent.com/u/957859?v=3","gravatar_id":"","url":"https://api.github.com/users/halloffame","html_url":"https://github.com/halloffame","followers_url":"https://api.github.com/users/halloffame/followers","following_url":"https://api.github.com/users/halloffame/following{/other_user}","gists_url":"https://api.github.com/users/halloffame/gists{/gist_id}","starred_url":"https://api.github.com/users/halloffame/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halloffame/subscriptions","organizations_url":"https://api.github.com/users/halloffame/orgs","repos_url":"https://api.github.com/users/halloffame/repos","events_url":"https://api.github.com/users/halloffame/events{/privacy}","received_events_url":"https://api.github.com/users/halloffame/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/biola/biola-edu/pulls/211/commits","review_comments_url":"https://api.github.com/repos/biola/biola-edu/pulls/211/comments","review_comment_url":"https://api.github.com/repos/biola/biola-edu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/biola/biola-edu/issues/211/comments","statuses_url":"https://api.github.com/repos/biola/biola-edu/statuses/32ab58c83a04112d46be6d386442e23afd077684","head":{"label":"biola:add-club-template","ref":"add-club-template","sha":"32ab58c83a04112d46be6d386442e23afd077684","user":{"login":"biola","id":395114,"avatar_url":"https://avatars.githubusercontent.com/u/395114?v=3","gravatar_id":"","url":"https://api.github.com/users/biola","html_url":"https://github.com/biola","followers_url":"https://api.github.com/users/biola/followers","following_url":"https://api.github.com/users/biola/following{/other_user}","gists_url":"https://api.github.com/users/biola/gists{/gist_id}","starred_url":"https://api.github.com/users/biola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biola/subscriptions","organizations_url":"https://api.github.com/users/biola/orgs","repos_url":"https://api.github.com/users/biola/repos","events_url":"https://api.github.com/users/biola/events{/privacy}","received_events_url":"https://api.github.com/users/biola/received_events","type":"Organization","site_admin":false},"repo":{"id":32752466,"name":"biola-edu","full_name":"biola/biola-edu","owner":{"login":"biola","id":395114,"avatar_url":"https://avatars.githubusercontent.com/u/395114?v=3","gravatar_id":"","url":"https://api.github.com/users/biola","html_url":"https://github.com/biola","followers_url":"https://api.github.com/users/biola/followers","following_url":"https://api.github.com/users/biola/following{/other_user}","gists_url":"https://api.github.com/users/biola/gists{/gist_id}","starred_url":"https://api.github.com/users/biola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biola/subscriptions","organizations_url":"https://api.github.com/users/biola/orgs","repos_url":"https://api.github.com/users/biola/repos","events_url":"https://api.github.com/users/biola/events{/privacy}","received_events_url":"https://api.github.com/users/biola/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/biola/biola-edu","description":"Frontend application for www.biola.edu","fork":false,"url":"https://api.github.com/repos/biola/biola-edu","forks_url":"https://api.github.com/repos/biola/biola-edu/forks","keys_url":"https://api.github.com/repos/biola/biola-edu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/biola/biola-edu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/biola/biola-edu/teams","hooks_url":"https://api.github.com/repos/biola/biola-edu/hooks","issue_events_url":"https://api.github.com/repos/biola/biola-edu/issues/events{/number}","events_url":"https://api.github.com/repos/biola/biola-edu/events","assignees_url":"https://api.github.com/repos/biola/biola-edu/assignees{/user}","branches_url":"https://api.github.com/repos/biola/biola-edu/branches{/branch}","tags_url":"https://api.github.com/repos/biola/biola-edu/tags","blobs_url":"https://api.github.com/repos/biola/biola-edu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/biola/biola-edu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/biola/biola-edu/git/refs{/sha}","trees_url":"https://api.github.com/repos/biola/biola-edu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/biola/biola-edu/statuses/{sha}","languages_url":"https://api.github.com/repos/biola/biola-edu/languages","stargazers_url":"https://api.github.com/repos/biola/biola-edu/stargazers","contributors_url":"https://api.github.com/repos/biola/biola-edu/contributors","subscribers_url":"https://api.github.com/repos/biola/biola-edu/subscribers","subscription_url":"https://api.github.com/repos/biola/biola-edu/subscription","commits_url":"https://api.github.com/repos/biola/biola-edu/commits{/sha}","git_commits_url":"https://api.github.com/repos/biola/biola-edu/git/commits{/sha}","comments_url":"https://api.github.com/repos/biola/biola-edu/comments{/number}","issue_comment_url":"https://api.github.com/repos/biola/biola-edu/issues/comments{/number}","contents_url":"https://api.github.com/repos/biola/biola-edu/contents/{+path}","compare_url":"https://api.github.com/repos/biola/biola-edu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/biola/biola-edu/merges","archive_url":"https://api.github.com/repos/biola/biola-edu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/biola/biola-edu/downloads","issues_url":"https://api.github.com/repos/biola/biola-edu/issues{/number}","pulls_url":"https://api.github.com/repos/biola/biola-edu/pulls{/number}","milestones_url":"https://api.github.com/repos/biola/biola-edu/milestones{/number}","notifications_url":"https://api.github.com/repos/biola/biola-edu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/biola/biola-edu/labels{/name}","releases_url":"https://api.github.com/repos/biola/biola-edu/releases{/id}","deployments_url":"https://api.github.com/repos/biola/biola-edu/deployments","created_at":"2015-03-23T18:58:25Z","updated_at":"2016-01-13T00:27:57Z","pushed_at":"2016-03-19T00:39:57Z","git_url":"git://github.com/biola/biola-edu.git","ssh_url":"git@github.com:biola/biola-edu.git","clone_url":"https://github.com/biola/biola-edu.git","svn_url":"https://github.com/biola/biola-edu","homepage":null,"size":4768,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"biola:master","ref":"master","sha":"a6cd406aa382b4be770579d4c6ec39747e901529","user":{"login":"biola","id":395114,"avatar_url":"https://avatars.githubusercontent.com/u/395114?v=3","gravatar_id":"","url":"https://api.github.com/users/biola","html_url":"https://github.com/biola","followers_url":"https://api.github.com/users/biola/followers","following_url":"https://api.github.com/users/biola/following{/other_user}","gists_url":"https://api.github.com/users/biola/gists{/gist_id}","starred_url":"https://api.github.com/users/biola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biola/subscriptions","organizations_url":"https://api.github.com/users/biola/orgs","repos_url":"https://api.github.com/users/biola/repos","events_url":"https://api.github.com/users/biola/events{/privacy}","received_events_url":"https://api.github.com/users/biola/received_events","type":"Organization","site_admin":false},"repo":{"id":32752466,"name":"biola-edu","full_name":"biola/biola-edu","owner":{"login":"biola","id":395114,"avatar_url":"https://avatars.githubusercontent.com/u/395114?v=3","gravatar_id":"","url":"https://api.github.com/users/biola","html_url":"https://github.com/biola","followers_url":"https://api.github.com/users/biola/followers","following_url":"https://api.github.com/users/biola/following{/other_user}","gists_url":"https://api.github.com/users/biola/gists{/gist_id}","starred_url":"https://api.github.com/users/biola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biola/subscriptions","organizations_url":"https://api.github.com/users/biola/orgs","repos_url":"https://api.github.com/users/biola/repos","events_url":"https://api.github.com/users/biola/events{/privacy}","received_events_url":"https://api.github.com/users/biola/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/biola/biola-edu","description":"Frontend application for www.biola.edu","fork":false,"url":"https://api.github.com/repos/biola/biola-edu","forks_url":"https://api.github.com/repos/biola/biola-edu/forks","keys_url":"https://api.github.com/repos/biola/biola-edu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/biola/biola-edu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/biola/biola-edu/teams","hooks_url":"https://api.github.com/repos/biola/biola-edu/hooks","issue_events_url":"https://api.github.com/repos/biola/biola-edu/issues/events{/number}","events_url":"https://api.github.com/repos/biola/biola-edu/events","assignees_url":"https://api.github.com/repos/biola/biola-edu/assignees{/user}","branches_url":"https://api.github.com/repos/biola/biola-edu/branches{/branch}","tags_url":"https://api.github.com/repos/biola/biola-edu/tags","blobs_url":"https://api.github.com/repos/biola/biola-edu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/biola/biola-edu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/biola/biola-edu/git/refs{/sha}","trees_url":"https://api.github.com/repos/biola/biola-edu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/biola/biola-edu/statuses/{sha}","languages_url":"https://api.github.com/repos/biola/biola-edu/languages","stargazers_url":"https://api.github.com/repos/biola/biola-edu/stargazers","contributors_url":"https://api.github.com/repos/biola/biola-edu/contributors","subscribers_url":"https://api.github.com/repos/biola/biola-edu/subscribers","subscription_url":"https://api.github.com/repos/biola/biola-edu/subscription","commits_url":"https://api.github.com/repos/biola/biola-edu/commits{/sha}","git_commits_url":"https://api.github.com/repos/biola/biola-edu/git/commits{/sha}","comments_url":"https://api.github.com/repos/biola/biola-edu/comments{/number}","issue_comment_url":"https://api.github.com/repos/biola/biola-edu/issues/comments{/number}","contents_url":"https://api.github.com/repos/biola/biola-edu/contents/{+path}","compare_url":"https://api.github.com/repos/biola/biola-edu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/biola/biola-edu/merges","archive_url":"https://api.github.com/repos/biola/biola-edu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/biola/biola-edu/downloads","issues_url":"https://api.github.com/repos/biola/biola-edu/issues{/number}","pulls_url":"https://api.github.com/repos/biola/biola-edu/pulls{/number}","milestones_url":"https://api.github.com/repos/biola/biola-edu/milestones{/number}","notifications_url":"https://api.github.com/repos/biola/biola-edu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/biola/biola-edu/labels{/name}","releases_url":"https://api.github.com/repos/biola/biola-edu/releases{/id}","deployments_url":"https://api.github.com/repos/biola/biola-edu/deployments","created_at":"2015-03-23T18:58:25Z","updated_at":"2016-01-13T00:27:57Z","pushed_at":"2016-03-19T00:39:57Z","git_url":"git://github.com/biola/biola-edu.git","ssh_url":"git@github.com:biola/biola-edu.git","clone_url":"https://github.com/biola/biola-edu.git","svn_url":"https://github.com/biola/biola-edu","homepage":null,"size":4768,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/biola/biola-edu/pulls/211"},"html":{"href":"https://github.com/biola/biola-edu/pull/211"},"issue":{"href":"https://api.github.com/repos/biola/biola-edu/issues/211"},"comments":{"href":"https://api.github.com/repos/biola/biola-edu/issues/211/comments"},"review_comments":{"href":"https://api.github.com/repos/biola/biola-edu/pulls/211/comments"},"review_comment":{"href":"https://api.github.com/repos/biola/biola-edu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/biola/biola-edu/pulls/211/commits"},"statuses":{"href":"https://api.github.com/repos/biola/biola-edu/statuses/32ab58c83a04112d46be6d386442e23afd077684"}}}}