{"action":"created","comment":{"url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/pulls/comments/181546423","pull_request_review_id":112201810,"id":181546423,"diff_hunk":"@@ -1,67 +1,79 @@\n-<% if current_user %>\n-  <%= form_with url: destroy_user_session_path, method: :delete, local: true do |form| %>\n-    <%= form.submit value: 'Logout' %>\n-  <% end %>\n-<% end %>\n+<%= stylesheet_link_tag \"application\", :media => \"all\" %>\n+<%= javascript_include_tag \"application\" %>\n \n-<h1>Athletes</h1>\n+<div class=\"athlete\">\n \n-<% if @sorted_athletes %>\n-  <ul id=\"athlete\">\n-    <% @sorted_athletes.each do |athlete| %>\n-      <li>\n-        <p><%= athlete.name%></p>\n+  <h3 id=\"athletes_section\">Athletes</h3>\n \n-        <%= form_with url: toggle_voting_path(athlete), method: :put, local: true do |form| %>\n-          <%= form.submit value: 'Open/Close Voting', id: 'voting' %>\n-        <% end %>\n-        <p>Status: <%= athlete.votingOpen %></p>\n-        <%= link_to 'Edit', edit_athlete_path(athlete)  %>\n+  <%= link_to 'New Athlete', new_athlete_path, class:\"btn btn-info\" %>\n \n-        <%= form_with url: athlete_path(athlete), method: :delete, local: true do |form| %>\n-          <%= form.submit value: 'Delete' %>\n-        <% end %>\n-      </li>\n-    <% end %>\n-  </ul>\n-<% end %>\n+  <p></p>\n+  <% if @sorted_athletes %>\n \n-<%= link_to 'Create Athlete', new_athlete_path %>\n+    <% @sorted_athletes.each do |athlete| %>\n+      <h5><%= athlete.name%></h5>\n \n-<%= form_with url: publish_path, method: :put, local: true do |form| %>\n-  <%= form.submit value: 'Publish Result' %>\n-<% end %>\n-<%= form_with url: revert_results_path, method: :put, local: true do |form| %>\n-  <%= form.submit value: 'Revert Result' %>\n+      <%= form_with url: toggle_voting_path(athlete), method: :put, local: true do |form| %>\n+      <%= form.submit value: 'Open/Close Voting', id: 'voting' %>\n+    <% end %>\n+\n+    <p>Status: <strong><%= athlete.votingOpen %></strong></p>\n+      <%= link_to 'Edit Athlete', edit_athlete_path(athlete), class: \"btn btn-success\" %>\n+      <%= form_with url: athlete_path(athlete), method: :delete, local: true do |form| %>\n+      <button type=\"submit\" class=\"btn btn-danger\">Delete</button>\n+    <p></p>\n+    <% end %>\n+  <% end %>\n <% end %>\n+</div>\n \n-<h3>Results</h3>\n+<div class=\"results\">\n+  <h3 id=\"results\">Results</h3>\n+    <%= form_with url: publish_path, method: :put, local: true do |form| %>\n+    <%= form.submit value: 'Publish Result' %>\n+  <% end %>\n+  <p></p>","path":"app/views/athletes/index.html.erb","position":65,"original_position":65,"commit_id":"e246b378220bbe1c25338d93560602447dcfa67c","original_commit_id":"e246b378220bbe1c25338d93560602447dcfa67c","user":{"login":"holgertidemand","id":11982117,"avatar_url":"https://avatars1.githubusercontent.com/u/11982117?v=4","gravatar_id":"","url":"https://api.github.com/users/holgertidemand","html_url":"https://github.com/holgertidemand","followers_url":"https://api.github.com/users/holgertidemand/followers","following_url":"https://api.github.com/users/holgertidemand/following{/other_user}","gists_url":"https://api.github.com/users/holgertidemand/gists{/gist_id}","starred_url":"https://api.github.com/users/holgertidemand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holgertidemand/subscriptions","organizations_url":"https://api.github.com/users/holgertidemand/orgs","repos_url":"https://api.github.com/users/holgertidemand/repos","events_url":"https://api.github.com/users/holgertidemand/events{/privacy}","received_events_url":"https://api.github.com/users/holgertidemand/received_events","type":"User","site_admin":false},"body":"WTF","created_at":"2018-04-14T08:49:30Z","updated_at":"2018-04-14T08:50:16Z","html_url":"https://github.com/CraftAcademy/bn-invitational-backend/pull/49#discussion_r181546423","pull_request_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/pulls/49","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/pulls/comments/181546423"},"html":{"href":"https://github.com/CraftAcademy/bn-invitational-backend/pull/49#discussion_r181546423"},"pull_request":{"href":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/pulls/49","id":181637848,"html_url":"https://github.com/CraftAcademy/bn-invitational-backend/pull/49","diff_url":"https://github.com/CraftAcademy/bn-invitational-backend/pull/49.diff","patch_url":"https://github.com/CraftAcademy/bn-invitational-backend/pull/49.patch","issue_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/issues/49","number":49,"state":"open","locked":false,"title":"Admin styling","user":{"login":"kmthorsnes","id":24756550,"avatar_url":"https://avatars0.githubusercontent.com/u/24756550?v=4","gravatar_id":"","url":"https://api.github.com/users/kmthorsnes","html_url":"https://github.com/kmthorsnes","followers_url":"https://api.github.com/users/kmthorsnes/followers","following_url":"https://api.github.com/users/kmthorsnes/following{/other_user}","gists_url":"https://api.github.com/users/kmthorsnes/gists{/gist_id}","starred_url":"https://api.github.com/users/kmthorsnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmthorsnes/subscriptions","organizations_url":"https://api.github.com/users/kmthorsnes/orgs","repos_url":"https://api.github.com/users/kmthorsnes/repos","events_url":"https://api.github.com/users/kmthorsnes/events{/privacy}","received_events_url":"https://api.github.com/users/kmthorsnes/received_events","type":"User","site_admin":false},"body":"#### PT Story: https://www.pivotaltracker.com/story/show/156764204\r\n#### Description\r\nChanges proposed in this pull request:\r\n\r\n* Adds bootstrap \r\n* Adds styling to admin pages\r\n#### What I have learned working on this feature: \r\n* To setup bootstrap for rails applications. \r\n\r\n\r\n#### Screenshots:\r\n![skjermbilde 2018-04-13 kl 17 35 48](https://user-images.githubusercontent.com/24756550/38744099-2e318e20-3f41-11e8-9899-cc9e3a7d2a53.png)\r\n![skjermbilde 2018-04-13 kl 17 35 38](https://user-images.githubusercontent.com/24756550/38744100-2e4ebaae-3f41-11e8-9d0a-4a1033918897.png)\r\n![skjermbilde 2018-04-13 kl 17 35 29](https://user-images.githubusercontent.com/24756550/38744101-2e6c9cd6-3f41-11e8-8736-2e94cb5ead0e.png)","created_at":"2018-04-14T08:43:58Z","updated_at":"2018-04-14T08:50:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e3482f0dc44134e0b5cd8c865536bdb9add087c9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/pulls/49/commits","review_comments_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/pulls/49/comments","review_comment_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/issues/49/comments","statuses_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/statuses/e246b378220bbe1c25338d93560602447dcfa67c","head":{"label":"kmthorsnes:admin_styling","ref":"admin_styling","sha":"e246b378220bbe1c25338d93560602447dcfa67c","user":{"login":"kmthorsnes","id":24756550,"avatar_url":"https://avatars0.githubusercontent.com/u/24756550?v=4","gravatar_id":"","url":"https://api.github.com/users/kmthorsnes","html_url":"https://github.com/kmthorsnes","followers_url":"https://api.github.com/users/kmthorsnes/followers","following_url":"https://api.github.com/users/kmthorsnes/following{/other_user}","gists_url":"https://api.github.com/users/kmthorsnes/gists{/gist_id}","starred_url":"https://api.github.com/users/kmthorsnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmthorsnes/subscriptions","organizations_url":"https://api.github.com/users/kmthorsnes/orgs","repos_url":"https://api.github.com/users/kmthorsnes/repos","events_url":"https://api.github.com/users/kmthorsnes/events{/privacy}","received_events_url":"https://api.github.com/users/kmthorsnes/received_events","type":"User","site_admin":false},"repo":{"id":127893728,"name":"bn-invitational-backend","full_name":"kmthorsnes/bn-invitational-backend","owner":{"login":"kmthorsnes","id":24756550,"avatar_url":"https://avatars0.githubusercontent.com/u/24756550?v=4","gravatar_id":"","url":"https://api.github.com/users/kmthorsnes","html_url":"https://github.com/kmthorsnes","followers_url":"https://api.github.com/users/kmthorsnes/followers","following_url":"https://api.github.com/users/kmthorsnes/following{/other_user}","gists_url":"https://api.github.com/users/kmthorsnes/gists{/gist_id}","starred_url":"https://api.github.com/users/kmthorsnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmthorsnes/subscriptions","organizations_url":"https://api.github.com/users/kmthorsnes/orgs","repos_url":"https://api.github.com/users/kmthorsnes/repos","events_url":"https://api.github.com/users/kmthorsnes/events{/privacy}","received_events_url":"https://api.github.com/users/kmthorsnes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kmthorsnes/bn-invitational-backend","description":null,"fork":true,"url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend","forks_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/forks","keys_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/teams","hooks_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/hooks","issue_events_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/issues/events{/number}","events_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/events","assignees_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/assignees{/user}","branches_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/branches{/branch}","tags_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/tags","blobs_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/languages","stargazers_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/stargazers","contributors_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/contributors","subscribers_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/subscribers","subscription_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/subscription","commits_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/contents/{+path}","compare_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/merges","archive_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/downloads","issues_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/issues{/number}","pulls_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/labels{/name}","releases_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/releases{/id}","deployments_url":"https://api.github.com/repos/kmthorsnes/bn-invitational-backend/deployments","created_at":"2018-04-03T10:49:55Z","updated_at":"2018-04-03T10:49:57Z","pushed_at":"2018-04-14T08:43:34Z","git_url":"git://github.com/kmthorsnes/bn-invitational-backend.git","ssh_url":"git@github.com:kmthorsnes/bn-invitational-backend.git","clone_url":"https://github.com/kmthorsnes/bn-invitational-backend.git","svn_url":"https://github.com/kmthorsnes/bn-invitational-backend","homepage":null,"size":434,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"CraftAcademy:develop","ref":"develop","sha":"26c9290496a7ee3ce948432d36fe5c0a33be5751","user":{"login":"CraftAcademy","id":12081851,"avatar_url":"https://avatars0.githubusercontent.com/u/12081851?v=4","gravatar_id":"","url":"https://api.github.com/users/CraftAcademy","html_url":"https://github.com/CraftAcademy","followers_url":"https://api.github.com/users/CraftAcademy/followers","following_url":"https://api.github.com/users/CraftAcademy/following{/other_user}","gists_url":"https://api.github.com/users/CraftAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/CraftAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CraftAcademy/subscriptions","organizations_url":"https://api.github.com/users/CraftAcademy/orgs","repos_url":"https://api.github.com/users/CraftAcademy/repos","events_url":"https://api.github.com/users/CraftAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/CraftAcademy/received_events","type":"Organization","site_admin":false},"repo":{"id":127887908,"name":"bn-invitational-backend","full_name":"CraftAcademy/bn-invitational-backend","owner":{"login":"CraftAcademy","id":12081851,"avatar_url":"https://avatars0.githubusercontent.com/u/12081851?v=4","gravatar_id":"","url":"https://api.github.com/users/CraftAcademy","html_url":"https://github.com/CraftAcademy","followers_url":"https://api.github.com/users/CraftAcademy/followers","following_url":"https://api.github.com/users/CraftAcademy/following{/other_user}","gists_url":"https://api.github.com/users/CraftAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/CraftAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CraftAcademy/subscriptions","organizations_url":"https://api.github.com/users/CraftAcademy/orgs","repos_url":"https://api.github.com/users/CraftAcademy/repos","events_url":"https://api.github.com/users/CraftAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/CraftAcademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CraftAcademy/bn-invitational-backend","description":null,"fork":false,"url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend","forks_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/forks","keys_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/teams","hooks_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/hooks","issue_events_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/issues/events{/number}","events_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/events","assignees_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/assignees{/user}","branches_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/branches{/branch}","tags_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/tags","blobs_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/languages","stargazers_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/stargazers","contributors_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/contributors","subscribers_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/subscribers","subscription_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/subscription","commits_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/contents/{+path}","compare_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/merges","archive_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/downloads","issues_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/issues{/number}","pulls_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/labels{/name}","releases_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/releases{/id}","deployments_url":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/deployments","created_at":"2018-04-03T09:57:37Z","updated_at":"2018-04-13T15:26:04Z","pushed_at":"2018-04-14T08:44:00Z","git_url":"git://github.com/CraftAcademy/bn-invitational-backend.git","ssh_url":"git@github.com:CraftAcademy/bn-invitational-backend.git","clone_url":"https://github.com/CraftAcademy/bn-invitational-backend.git","svn_url":"https://github.com/CraftAcademy/bn-invitational-backend","homepage":null,"size":346,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":6,"open_issues":2,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/pulls/49"},"html":{"href":"https://github.com/CraftAcademy/bn-invitational-backend/pull/49"},"issue":{"href":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/issues/49"},"comments":{"href":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/CraftAcademy/bn-invitational-backend/statuses/e246b378220bbe1c25338d93560602447dcfa67c"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"holgertidemand"}}