{"action":"created","comment":{"url":"https://api.github.com/repos/education/classroom/pulls/comments/57157635","id":57157635,"diff_hunk":"@@ -0,0 +1,31 @@\n+<% group_assignment_repo = repo.decorate %>\n+\n+<div class=\"one-half left team\">\n+  <div class=\"team-panel\">\n+    <% group_member_count = group_assignment_repo.group.repo_accesses.count %>\n+    <%= form_tag({ controller: :group_assignment_invitations, action: :accept_invitation}, :class => \"team-actions-form\", method: :patch) do %>\n+        <%= hidden_field_tag 'group[id]', group_assignment_repo.id %>\n+        <% if group_member_count >= group_assignment.max_members %>\n+            <%= submit_tag 'Full', class: 'btn', disabled: true %>\n+        <% else %>\n+            <%= submit_tag 'Join', class: 'btn' %>\n+        <% end %>\n+    <% end %>\n+\n+    <span class=\"team-name\" itemprop=\"name\"><%= group_assignment_repo.team_name %></span>\n+    <p class=\"team-description\" itemprop=\"description\"><%=group_member_count%> <% if group_member_count != 1%>members<% else %>member<% end %></p>\n+    <div class=\"team-members\">\n+      <% group_assignment_repo.group.repo_accesses.limit(7).each do |repo_access| %>\n+          <% student = repo_access.user.decorate %>\n+          <%= link_to student.github_url, class: \"tooltipped tooltipped-s #{'disabled' if group_assignment_repo.disabled?}\", 'aria-label' => student.login do %>\n+              <%= image_tag student.avatar_url(30), class: 'avatar avatar-small ', height: 30, width: 30, alt: \"@#{student.login}\" %>\n+          <% end %>\n+      <% end %>\n+      <% if group_member_count > 10 %>\n+        <%= link_to group_assignment_repo.github_team_url, class: \"#{'disabled' if group_assignment_repo.disabled?}\" do %>\n+          <%= image_tag 'student-ellipse@2x.png', class: 'avatar avatar-small', height: 30, width: 30, alt: 'student ellipse' %>\n+        <% end %>\n+      <% end %>\n+    </div>\n+  </div>\n+</div>","path":"app/views/group_assignment_invitations/_group_assignment_team.erb","position":31,"original_position":31,"commit_id":"66805e05c5021834e054733a7b34990d832931b2","original_commit_id":"66805e05c5021834e054733a7b34990d832931b2","user":{"login":"johndbritton","id":123345,"avatar_url":"https://avatars.githubusercontent.com/u/123345?v=3","gravatar_id":"","url":"https://api.github.com/users/johndbritton","html_url":"https://github.com/johndbritton","followers_url":"https://api.github.com/users/johndbritton/followers","following_url":"https://api.github.com/users/johndbritton/following{/other_user}","gists_url":"https://api.github.com/users/johndbritton/gists{/gist_id}","starred_url":"https://api.github.com/users/johndbritton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johndbritton/subscriptions","organizations_url":"https://api.github.com/users/johndbritton/orgs","repos_url":"https://api.github.com/users/johndbritton/repos","events_url":"https://api.github.com/users/johndbritton/events{/privacy}","received_events_url":"https://api.github.com/users/johndbritton/received_events","type":"User","site_admin":true},"body":"Can we make the build fail on missing newline @tarebyte?\r\n\r\ncc/ https://github.com/education/classroom/issues/514","created_at":"2016-03-23T13:24:26Z","updated_at":"2016-03-23T13:24:26Z","html_url":"https://github.com/education/classroom/pull/511#discussion_r57157635","pull_request_url":"https://api.github.com/repos/education/classroom/pulls/511","_links":{"self":{"href":"https://api.github.com/repos/education/classroom/pulls/comments/57157635"},"html":{"href":"https://github.com/education/classroom/pull/511#discussion_r57157635"},"pull_request":{"href":"https://api.github.com/repos/education/classroom/pulls/511"}}},"pull_request":{"url":"https://api.github.com/repos/education/classroom/pulls/511","id":63673879,"html_url":"https://github.com/education/classroom/pull/511","diff_url":"https://github.com/education/classroom/pull/511.diff","patch_url":"https://github.com/education/classroom/pull/511.patch","issue_url":"https://api.github.com/repos/education/classroom/issues/511","number":511,"state":"open","locked":false,"title":"Maximum number of members","user":{"login":"dinever","id":1311594,"avatar_url":"https://avatars.githubusercontent.com/u/1311594?v=3","gravatar_id":"","url":"https://api.github.com/users/dinever","html_url":"https://github.com/dinever","followers_url":"https://api.github.com/users/dinever/followers","following_url":"https://api.github.com/users/dinever/following{/other_user}","gists_url":"https://api.github.com/users/dinever/gists{/gist_id}","starred_url":"https://api.github.com/users/dinever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinever/subscriptions","organizations_url":"https://api.github.com/users/dinever/orgs","repos_url":"https://api.github.com/users/dinever/repos","events_url":"https://api.github.com/users/dinever/events{/privacy}","received_events_url":"https://api.github.com/users/dinever/received_events","type":"User","site_admin":false},"body":"Hi guys,\r\n\r\nThis PR fixes #288.\r\n\r\nBesides adding the maximum members feature, I also modified the group assignment invitation page. Now it has a better look and makes it easier for students to choose the correct team:\r\n\r\n![screen shot 2016-03-22 at 1 09 06 am](https://cloud.githubusercontent.com/assets/1311594/13943366/36659e6c-efd2-11e5-8f4f-1d6e2a0dd786.png)\r\n\r\nAny suggestions & feedback will be greatly appreciated. :smile: ","created_at":"2016-03-22T06:09:12Z","updated_at":"2016-03-23T13:24:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bbc12a6778f3b7deac9371855d2ca06c4652ff90","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/education/classroom/pulls/511/commits","review_comments_url":"https://api.github.com/repos/education/classroom/pulls/511/comments","review_comment_url":"https://api.github.com/repos/education/classroom/pulls/comments{/number}","comments_url":"https://api.github.com/repos/education/classroom/issues/511/comments","statuses_url":"https://api.github.com/repos/education/classroom/statuses/66805e05c5021834e054733a7b34990d832931b2","head":{"label":"dinever:master","ref":"master","sha":"66805e05c5021834e054733a7b34990d832931b2","user":{"login":"dinever","id":1311594,"avatar_url":"https://avatars.githubusercontent.com/u/1311594?v=3","gravatar_id":"","url":"https://api.github.com/users/dinever","html_url":"https://github.com/dinever","followers_url":"https://api.github.com/users/dinever/followers","following_url":"https://api.github.com/users/dinever/following{/other_user}","gists_url":"https://api.github.com/users/dinever/gists{/gist_id}","starred_url":"https://api.github.com/users/dinever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinever/subscriptions","organizations_url":"https://api.github.com/users/dinever/orgs","repos_url":"https://api.github.com/users/dinever/repos","events_url":"https://api.github.com/users/dinever/events{/privacy}","received_events_url":"https://api.github.com/users/dinever/received_events","type":"User","site_admin":false},"repo":{"id":53973273,"name":"classroom","full_name":"dinever/classroom","owner":{"login":"dinever","id":1311594,"avatar_url":"https://avatars.githubusercontent.com/u/1311594?v=3","gravatar_id":"","url":"https://api.github.com/users/dinever","html_url":"https://github.com/dinever","followers_url":"https://api.github.com/users/dinever/followers","following_url":"https://api.github.com/users/dinever/following{/other_user}","gists_url":"https://api.github.com/users/dinever/gists{/gist_id}","starred_url":"https://api.github.com/users/dinever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinever/subscriptions","organizations_url":"https://api.github.com/users/dinever/orgs","repos_url":"https://api.github.com/users/dinever/repos","events_url":"https://api.github.com/users/dinever/events{/privacy}","received_events_url":"https://api.github.com/users/dinever/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dinever/classroom","description":"Classroom for GitHub automates repository creation and access control, making it easy for teachers to distribute starter code and collect assignments on GitHub.","fork":true,"url":"https://api.github.com/repos/dinever/classroom","forks_url":"https://api.github.com/repos/dinever/classroom/forks","keys_url":"https://api.github.com/repos/dinever/classroom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dinever/classroom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dinever/classroom/teams","hooks_url":"https://api.github.com/repos/dinever/classroom/hooks","issue_events_url":"https://api.github.com/repos/dinever/classroom/issues/events{/number}","events_url":"https://api.github.com/repos/dinever/classroom/events","assignees_url":"https://api.github.com/repos/dinever/classroom/assignees{/user}","branches_url":"https://api.github.com/repos/dinever/classroom/branches{/branch}","tags_url":"https://api.github.com/repos/dinever/classroom/tags","blobs_url":"https://api.github.com/repos/dinever/classroom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dinever/classroom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dinever/classroom/git/refs{/sha}","trees_url":"https://api.github.com/repos/dinever/classroom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dinever/classroom/statuses/{sha}","languages_url":"https://api.github.com/repos/dinever/classroom/languages","stargazers_url":"https://api.github.com/repos/dinever/classroom/stargazers","contributors_url":"https://api.github.com/repos/dinever/classroom/contributors","subscribers_url":"https://api.github.com/repos/dinever/classroom/subscribers","subscription_url":"https://api.github.com/repos/dinever/classroom/subscription","commits_url":"https://api.github.com/repos/dinever/classroom/commits{/sha}","git_commits_url":"https://api.github.com/repos/dinever/classroom/git/commits{/sha}","comments_url":"https://api.github.com/repos/dinever/classroom/comments{/number}","issue_comment_url":"https://api.github.com/repos/dinever/classroom/issues/comments{/number}","contents_url":"https://api.github.com/repos/dinever/classroom/contents/{+path}","compare_url":"https://api.github.com/repos/dinever/classroom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dinever/classroom/merges","archive_url":"https://api.github.com/repos/dinever/classroom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dinever/classroom/downloads","issues_url":"https://api.github.com/repos/dinever/classroom/issues{/number}","pulls_url":"https://api.github.com/repos/dinever/classroom/pulls{/number}","milestones_url":"https://api.github.com/repos/dinever/classroom/milestones{/number}","notifications_url":"https://api.github.com/repos/dinever/classroom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dinever/classroom/labels{/name}","releases_url":"https://api.github.com/repos/dinever/classroom/releases{/id}","deployments_url":"https://api.github.com/repos/dinever/classroom/deployments","created_at":"2016-03-15T19:41:26Z","updated_at":"2016-03-15T19:41:28Z","pushed_at":"2016-03-23T12:09:08Z","git_url":"git://github.com/dinever/classroom.git","ssh_url":"git@github.com:dinever/classroom.git","clone_url":"https://github.com/dinever/classroom.git","svn_url":"https://github.com/dinever/classroom","homepage":"https://classroom.github.com","size":3965,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"education:master","ref":"master","sha":"f637f1420e1a2dfdf390b3b5b68c605de054a68e","user":{"login":"education","id":6667880,"avatar_url":"https://avatars.githubusercontent.com/u/6667880?v=3","gravatar_id":"","url":"https://api.github.com/users/education","html_url":"https://github.com/education","followers_url":"https://api.github.com/users/education/followers","following_url":"https://api.github.com/users/education/following{/other_user}","gists_url":"https://api.github.com/users/education/gists{/gist_id}","starred_url":"https://api.github.com/users/education/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/education/subscriptions","organizations_url":"https://api.github.com/users/education/orgs","repos_url":"https://api.github.com/users/education/repos","events_url":"https://api.github.com/users/education/events{/privacy}","received_events_url":"https://api.github.com/users/education/received_events","type":"Organization","site_admin":false},"repo":{"id":35079964,"name":"classroom","full_name":"education/classroom","owner":{"login":"education","id":6667880,"avatar_url":"https://avatars.githubusercontent.com/u/6667880?v=3","gravatar_id":"","url":"https://api.github.com/users/education","html_url":"https://github.com/education","followers_url":"https://api.github.com/users/education/followers","following_url":"https://api.github.com/users/education/following{/other_user}","gists_url":"https://api.github.com/users/education/gists{/gist_id}","starred_url":"https://api.github.com/users/education/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/education/subscriptions","organizations_url":"https://api.github.com/users/education/orgs","repos_url":"https://api.github.com/users/education/repos","events_url":"https://api.github.com/users/education/events{/privacy}","received_events_url":"https://api.github.com/users/education/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/education/classroom","description":"Classroom for GitHub automates repository creation and access control, making it easy for teachers to distribute starter code and collect assignments on GitHub.","fork":false,"url":"https://api.github.com/repos/education/classroom","forks_url":"https://api.github.com/repos/education/classroom/forks","keys_url":"https://api.github.com/repos/education/classroom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/education/classroom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/education/classroom/teams","hooks_url":"https://api.github.com/repos/education/classroom/hooks","issue_events_url":"https://api.github.com/repos/education/classroom/issues/events{/number}","events_url":"https://api.github.com/repos/education/classroom/events","assignees_url":"https://api.github.com/repos/education/classroom/assignees{/user}","branches_url":"https://api.github.com/repos/education/classroom/branches{/branch}","tags_url":"https://api.github.com/repos/education/classroom/tags","blobs_url":"https://api.github.com/repos/education/classroom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/education/classroom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/education/classroom/git/refs{/sha}","trees_url":"https://api.github.com/repos/education/classroom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/education/classroom/statuses/{sha}","languages_url":"https://api.github.com/repos/education/classroom/languages","stargazers_url":"https://api.github.com/repos/education/classroom/stargazers","contributors_url":"https://api.github.com/repos/education/classroom/contributors","subscribers_url":"https://api.github.com/repos/education/classroom/subscribers","subscription_url":"https://api.github.com/repos/education/classroom/subscription","commits_url":"https://api.github.com/repos/education/classroom/commits{/sha}","git_commits_url":"https://api.github.com/repos/education/classroom/git/commits{/sha}","comments_url":"https://api.github.com/repos/education/classroom/comments{/number}","issue_comment_url":"https://api.github.com/repos/education/classroom/issues/comments{/number}","contents_url":"https://api.github.com/repos/education/classroom/contents/{+path}","compare_url":"https://api.github.com/repos/education/classroom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/education/classroom/merges","archive_url":"https://api.github.com/repos/education/classroom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/education/classroom/downloads","issues_url":"https://api.github.com/repos/education/classroom/issues{/number}","pulls_url":"https://api.github.com/repos/education/classroom/pulls{/number}","milestones_url":"https://api.github.com/repos/education/classroom/milestones{/number}","notifications_url":"https://api.github.com/repos/education/classroom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/education/classroom/labels{/name}","releases_url":"https://api.github.com/repos/education/classroom/releases{/id}","deployments_url":"https://api.github.com/repos/education/classroom/deployments","created_at":"2015-05-05T05:33:50Z","updated_at":"2016-03-20T10:06:36Z","pushed_at":"2016-03-23T12:22:48Z","git_url":"git://github.com/education/classroom.git","ssh_url":"git@github.com:education/classroom.git","clone_url":"https://github.com/education/classroom.git","svn_url":"https://github.com/education/classroom","homepage":"https://classroom.github.com","size":5277,"stargazers_count":356,"watchers_count":356,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":79,"mirror_url":null,"open_issues_count":55,"forks":79,"open_issues":55,"watchers":356,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/education/classroom/pulls/511"},"html":{"href":"https://github.com/education/classroom/pull/511"},"issue":{"href":"https://api.github.com/repos/education/classroom/issues/511"},"comments":{"href":"https://api.github.com/repos/education/classroom/issues/511/comments"},"review_comments":{"href":"https://api.github.com/repos/education/classroom/pulls/511/comments"},"review_comment":{"href":"https://api.github.com/repos/education/classroom/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/education/classroom/pulls/511/commits"},"statuses":{"href":"https://api.github.com/repos/education/classroom/statuses/66805e05c5021834e054733a7b34990d832931b2"}}}}