{"action":"created","comment":{"url":"https://api.github.com/repos/uchicago-sg/caravel/pulls/comments/43342546","id":43342546,"diff_hunk":"@@ -3,11 +3,43 @@\n {% block head %}\n   {{ super() }}\n   <script src=\"/static/js/continuation.js\" type=\"text/javascript\"></script>\n+  <script src=\"/static/js/view.js\" type=text/javascript></script>\n {% endblock %}\n {% block content %}\n-  <div class=\"row\" id=\"listings\">\n-    {% for listing in listings %}{% include \"listings/inline.html\" %}{%\n-      endfor %}\n-  </div>\n+\n+  {% for i in range(2) %}\n+    {% if loop.first %}\n+      <button type=\"button\" class=\"btn btn-default\"><a href=\"{{ url_for('new_listing') }}\" style=\"text-decoration: none; color: black;\">New Listing</a></button>\n+    {% else %}\n+      <hr>\n+      <div class=\"row\" id=\"listings\">\n+    {% endif %}\n+\n+\n+    {% if loop.first %}\n+    <div class=\"btn-group\" style=\"float:right;\">\n+      {% include \"thumbnail_button.html\" %}\n+      {% include \"list_button.html\" %}\n+    </div>\n+    {% else  %}\n+      {% if view == \"Thumbnail\" %}\n+        {% include \"thumbnail_header.html\" %}\n+      {% else %}\n+        <table class=\"table\">\n+        {% include \"list_header.html\" %}\n+      {% endif %}\n+    {% endif %}\n+  {% endfor %}\n+\n+    {% for listing in listings %}\n+      {% if view==\"List\" %}\n+          {% include \"listings/list.html\" %}\n+      {% else %}","path":"caravel/templates/index.html","position":39,"original_position":39,"commit_id":"7d8b885bf1ca1757386f7e1a802ea09f99db1243","original_commit_id":"7d8b885bf1ca1757386f7e1a802ea09f99db1243","user":{"login":"georgeteo","id":12107160,"avatar_url":"https://avatars.githubusercontent.com/u/12107160?v=3","gravatar_id":"","url":"https://api.github.com/users/georgeteo","html_url":"https://github.com/georgeteo","followers_url":"https://api.github.com/users/georgeteo/followers","following_url":"https://api.github.com/users/georgeteo/following{/other_user}","gists_url":"https://api.github.com/users/georgeteo/gists{/gist_id}","starred_url":"https://api.github.com/users/georgeteo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgeteo/subscriptions","organizations_url":"https://api.github.com/users/georgeteo/orgs","repos_url":"https://api.github.com/users/georgeteo/repos","events_url":"https://api.github.com/users/georgeteo/events{/privacy}","received_events_url":"https://api.github.com/users/georgeteo/received_events","type":"User","site_admin":false},"body":"What do you mean? ","created_at":"2015-10-29T02:21:22Z","updated_at":"2015-10-29T02:21:22Z","html_url":"https://github.com/uchicago-sg/caravel/pull/91#discussion_r43342546","pull_request_url":"https://api.github.com/repos/uchicago-sg/caravel/pulls/91","_links":{"self":{"href":"https://api.github.com/repos/uchicago-sg/caravel/pulls/comments/43342546"},"html":{"href":"https://github.com/uchicago-sg/caravel/pull/91#discussion_r43342546"},"pull_request":{"href":"https://api.github.com/repos/uchicago-sg/caravel/pulls/91"}}},"pull_request":{"url":"https://api.github.com/repos/uchicago-sg/caravel/pulls/91","id":46742787,"html_url":"https://github.com/uchicago-sg/caravel/pull/91","diff_url":"https://github.com/uchicago-sg/caravel/pull/91.diff","patch_url":"https://github.com/uchicago-sg/caravel/pull/91.patch","issue_url":"https://api.github.com/repos/uchicago-sg/caravel/issues/91","number":91,"state":"open","locked":false,"title":"Making list view","user":{"login":"georgeteo","id":12107160,"avatar_url":"https://avatars.githubusercontent.com/u/12107160?v=3","gravatar_id":"","url":"https://api.github.com/users/georgeteo","html_url":"https://github.com/georgeteo","followers_url":"https://api.github.com/users/georgeteo/followers","following_url":"https://api.github.com/users/georgeteo/following{/other_user}","gists_url":"https://api.github.com/users/georgeteo/gists{/gist_id}","starred_url":"https://api.github.com/users/georgeteo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgeteo/subscriptions","organizations_url":"https://api.github.com/users/georgeteo/orgs","repos_url":"https://api.github.com/users/georgeteo/repos","events_url":"https://api.github.com/users/georgeteo/events{/privacy}","received_events_url":"https://api.github.com/users/georgeteo/received_events","type":"User","site_admin":false},"body":"The infinite scroll doesnt work too well because of the </table> div. Thoughst?","created_at":"2015-10-05T03:58:18Z","updated_at":"2015-10-29T02:21:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6c67336a29ffa0e8a562ba14a940f4cfe3a73fa8","assignee":{"login":"fatlotus","id":14364,"avatar_url":"https://avatars.githubusercontent.com/u/14364?v=3","gravatar_id":"","url":"https://api.github.com/users/fatlotus","html_url":"https://github.com/fatlotus","followers_url":"https://api.github.com/users/fatlotus/followers","following_url":"https://api.github.com/users/fatlotus/following{/other_user}","gists_url":"https://api.github.com/users/fatlotus/gists{/gist_id}","starred_url":"https://api.github.com/users/fatlotus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatlotus/subscriptions","organizations_url":"https://api.github.com/users/fatlotus/orgs","repos_url":"https://api.github.com/users/fatlotus/repos","events_url":"https://api.github.com/users/fatlotus/events{/privacy}","received_events_url":"https://api.github.com/users/fatlotus/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/uchicago-sg/caravel/pulls/91/commits","review_comments_url":"https://api.github.com/repos/uchicago-sg/caravel/pulls/91/comments","review_comment_url":"https://api.github.com/repos/uchicago-sg/caravel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uchicago-sg/caravel/issues/91/comments","statuses_url":"https://api.github.com/repos/uchicago-sg/caravel/statuses/7d8b885bf1ca1757386f7e1a802ea09f99db1243","head":{"label":"uchicago-sg:making-list-view","ref":"making-list-view","sha":"7d8b885bf1ca1757386f7e1a802ea09f99db1243","user":{"login":"uchicago-sg","id":7650247,"avatar_url":"https://avatars.githubusercontent.com/u/7650247?v=3","gravatar_id":"","url":"https://api.github.com/users/uchicago-sg","html_url":"https://github.com/uchicago-sg","followers_url":"https://api.github.com/users/uchicago-sg/followers","following_url":"https://api.github.com/users/uchicago-sg/following{/other_user}","gists_url":"https://api.github.com/users/uchicago-sg/gists{/gist_id}","starred_url":"https://api.github.com/users/uchicago-sg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uchicago-sg/subscriptions","organizations_url":"https://api.github.com/users/uchicago-sg/orgs","repos_url":"https://api.github.com/users/uchicago-sg/repos","events_url":"https://api.github.com/users/uchicago-sg/events{/privacy}","received_events_url":"https://api.github.com/users/uchicago-sg/received_events","type":"Organization","site_admin":false},"repo":{"id":41097022,"name":"caravel","full_name":"uchicago-sg/caravel","owner":{"login":"uchicago-sg","id":7650247,"avatar_url":"https://avatars.githubusercontent.com/u/7650247?v=3","gravatar_id":"","url":"https://api.github.com/users/uchicago-sg","html_url":"https://github.com/uchicago-sg","followers_url":"https://api.github.com/users/uchicago-sg/followers","following_url":"https://api.github.com/users/uchicago-sg/following{/other_user}","gists_url":"https://api.github.com/users/uchicago-sg/gists{/gist_id}","starred_url":"https://api.github.com/users/uchicago-sg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uchicago-sg/subscriptions","organizations_url":"https://api.github.com/users/uchicago-sg/orgs","repos_url":"https://api.github.com/users/uchicago-sg/repos","events_url":"https://api.github.com/users/uchicago-sg/events{/privacy}","received_events_url":"https://api.github.com/users/uchicago-sg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uchicago-sg/caravel","description":"A Re-Re-Refresh the UChicago Marketplace","fork":false,"url":"https://api.github.com/repos/uchicago-sg/caravel","forks_url":"https://api.github.com/repos/uchicago-sg/caravel/forks","keys_url":"https://api.github.com/repos/uchicago-sg/caravel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uchicago-sg/caravel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uchicago-sg/caravel/teams","hooks_url":"https://api.github.com/repos/uchicago-sg/caravel/hooks","issue_events_url":"https://api.github.com/repos/uchicago-sg/caravel/issues/events{/number}","events_url":"https://api.github.com/repos/uchicago-sg/caravel/events","assignees_url":"https://api.github.com/repos/uchicago-sg/caravel/assignees{/user}","branches_url":"https://api.github.com/repos/uchicago-sg/caravel/branches{/branch}","tags_url":"https://api.github.com/repos/uchicago-sg/caravel/tags","blobs_url":"https://api.github.com/repos/uchicago-sg/caravel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uchicago-sg/caravel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uchicago-sg/caravel/git/refs{/sha}","trees_url":"https://api.github.com/repos/uchicago-sg/caravel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uchicago-sg/caravel/statuses/{sha}","languages_url":"https://api.github.com/repos/uchicago-sg/caravel/languages","stargazers_url":"https://api.github.com/repos/uchicago-sg/caravel/stargazers","contributors_url":"https://api.github.com/repos/uchicago-sg/caravel/contributors","subscribers_url":"https://api.github.com/repos/uchicago-sg/caravel/subscribers","subscription_url":"https://api.github.com/repos/uchicago-sg/caravel/subscription","commits_url":"https://api.github.com/repos/uchicago-sg/caravel/commits{/sha}","git_commits_url":"https://api.github.com/repos/uchicago-sg/caravel/git/commits{/sha}","comments_url":"https://api.github.com/repos/uchicago-sg/caravel/comments{/number}","issue_comment_url":"https://api.github.com/repos/uchicago-sg/caravel/issues/comments{/number}","contents_url":"https://api.github.com/repos/uchicago-sg/caravel/contents/{+path}","compare_url":"https://api.github.com/repos/uchicago-sg/caravel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uchicago-sg/caravel/merges","archive_url":"https://api.github.com/repos/uchicago-sg/caravel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uchicago-sg/caravel/downloads","issues_url":"https://api.github.com/repos/uchicago-sg/caravel/issues{/number}","pulls_url":"https://api.github.com/repos/uchicago-sg/caravel/pulls{/number}","milestones_url":"https://api.github.com/repos/uchicago-sg/caravel/milestones{/number}","notifications_url":"https://api.github.com/repos/uchicago-sg/caravel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uchicago-sg/caravel/labels{/name}","releases_url":"https://api.github.com/repos/uchicago-sg/caravel/releases{/id}","created_at":"2015-08-20T13:25:36Z","updated_at":"2015-09-11T16:21:05Z","pushed_at":"2015-10-28T05:33:04Z","git_url":"git://github.com/uchicago-sg/caravel.git","ssh_url":"git@github.com:uchicago-sg/caravel.git","clone_url":"https://github.com/uchicago-sg/caravel.git","svn_url":"https://github.com/uchicago-sg/caravel","homepage":"https://hosted-caravel.appspot.com","size":4045,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":2,"default_branch":"master"}},"base":{"label":"uchicago-sg:master","ref":"master","sha":"c6b94219ec82872ff12f282b3bb8242678632311","user":{"login":"uchicago-sg","id":7650247,"avatar_url":"https://avatars.githubusercontent.com/u/7650247?v=3","gravatar_id":"","url":"https://api.github.com/users/uchicago-sg","html_url":"https://github.com/uchicago-sg","followers_url":"https://api.github.com/users/uchicago-sg/followers","following_url":"https://api.github.com/users/uchicago-sg/following{/other_user}","gists_url":"https://api.github.com/users/uchicago-sg/gists{/gist_id}","starred_url":"https://api.github.com/users/uchicago-sg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uchicago-sg/subscriptions","organizations_url":"https://api.github.com/users/uchicago-sg/orgs","repos_url":"https://api.github.com/users/uchicago-sg/repos","events_url":"https://api.github.com/users/uchicago-sg/events{/privacy}","received_events_url":"https://api.github.com/users/uchicago-sg/received_events","type":"Organization","site_admin":false},"repo":{"id":41097022,"name":"caravel","full_name":"uchicago-sg/caravel","owner":{"login":"uchicago-sg","id":7650247,"avatar_url":"https://avatars.githubusercontent.com/u/7650247?v=3","gravatar_id":"","url":"https://api.github.com/users/uchicago-sg","html_url":"https://github.com/uchicago-sg","followers_url":"https://api.github.com/users/uchicago-sg/followers","following_url":"https://api.github.com/users/uchicago-sg/following{/other_user}","gists_url":"https://api.github.com/users/uchicago-sg/gists{/gist_id}","starred_url":"https://api.github.com/users/uchicago-sg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uchicago-sg/subscriptions","organizations_url":"https://api.github.com/users/uchicago-sg/orgs","repos_url":"https://api.github.com/users/uchicago-sg/repos","events_url":"https://api.github.com/users/uchicago-sg/events{/privacy}","received_events_url":"https://api.github.com/users/uchicago-sg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uchicago-sg/caravel","description":"A Re-Re-Refresh the UChicago Marketplace","fork":false,"url":"https://api.github.com/repos/uchicago-sg/caravel","forks_url":"https://api.github.com/repos/uchicago-sg/caravel/forks","keys_url":"https://api.github.com/repos/uchicago-sg/caravel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uchicago-sg/caravel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uchicago-sg/caravel/teams","hooks_url":"https://api.github.com/repos/uchicago-sg/caravel/hooks","issue_events_url":"https://api.github.com/repos/uchicago-sg/caravel/issues/events{/number}","events_url":"https://api.github.com/repos/uchicago-sg/caravel/events","assignees_url":"https://api.github.com/repos/uchicago-sg/caravel/assignees{/user}","branches_url":"https://api.github.com/repos/uchicago-sg/caravel/branches{/branch}","tags_url":"https://api.github.com/repos/uchicago-sg/caravel/tags","blobs_url":"https://api.github.com/repos/uchicago-sg/caravel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uchicago-sg/caravel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uchicago-sg/caravel/git/refs{/sha}","trees_url":"https://api.github.com/repos/uchicago-sg/caravel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uchicago-sg/caravel/statuses/{sha}","languages_url":"https://api.github.com/repos/uchicago-sg/caravel/languages","stargazers_url":"https://api.github.com/repos/uchicago-sg/caravel/stargazers","contributors_url":"https://api.github.com/repos/uchicago-sg/caravel/contributors","subscribers_url":"https://api.github.com/repos/uchicago-sg/caravel/subscribers","subscription_url":"https://api.github.com/repos/uchicago-sg/caravel/subscription","commits_url":"https://api.github.com/repos/uchicago-sg/caravel/commits{/sha}","git_commits_url":"https://api.github.com/repos/uchicago-sg/caravel/git/commits{/sha}","comments_url":"https://api.github.com/repos/uchicago-sg/caravel/comments{/number}","issue_comment_url":"https://api.github.com/repos/uchicago-sg/caravel/issues/comments{/number}","contents_url":"https://api.github.com/repos/uchicago-sg/caravel/contents/{+path}","compare_url":"https://api.github.com/repos/uchicago-sg/caravel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uchicago-sg/caravel/merges","archive_url":"https://api.github.com/repos/uchicago-sg/caravel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uchicago-sg/caravel/downloads","issues_url":"https://api.github.com/repos/uchicago-sg/caravel/issues{/number}","pulls_url":"https://api.github.com/repos/uchicago-sg/caravel/pulls{/number}","milestones_url":"https://api.github.com/repos/uchicago-sg/caravel/milestones{/number}","notifications_url":"https://api.github.com/repos/uchicago-sg/caravel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uchicago-sg/caravel/labels{/name}","releases_url":"https://api.github.com/repos/uchicago-sg/caravel/releases{/id}","created_at":"2015-08-20T13:25:36Z","updated_at":"2015-09-11T16:21:05Z","pushed_at":"2015-10-28T05:33:04Z","git_url":"git://github.com/uchicago-sg/caravel.git","ssh_url":"git@github.com:uchicago-sg/caravel.git","clone_url":"https://github.com/uchicago-sg/caravel.git","svn_url":"https://github.com/uchicago-sg/caravel","homepage":"https://hosted-caravel.appspot.com","size":4045,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uchicago-sg/caravel/pulls/91"},"html":{"href":"https://github.com/uchicago-sg/caravel/pull/91"},"issue":{"href":"https://api.github.com/repos/uchicago-sg/caravel/issues/91"},"comments":{"href":"https://api.github.com/repos/uchicago-sg/caravel/issues/91/comments"},"review_comments":{"href":"https://api.github.com/repos/uchicago-sg/caravel/pulls/91/comments"},"review_comment":{"href":"https://api.github.com/repos/uchicago-sg/caravel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uchicago-sg/caravel/pulls/91/commits"},"statuses":{"href":"https://api.github.com/repos/uchicago-sg/caravel/statuses/7d8b885bf1ca1757386f7e1a802ea09f99db1243"}}}}