{"action":"created","comment":{"url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/pulls/comments/51210224","id":51210224,"diff_hunk":"@@ -1,25 +1,28 @@\n-<p id=\"notice\"><%= notice %></p>\n-\n <div id=\"pictures\" class=\"container\">\n-  <div class=\"row\">\n-    <div class=\"col-sm-12\">\n-      <%=link_to \"New Image\", new_picture_path, class: 'btn btn-warning' %>\n+  <p id=\"notice\"><%= notice %></p>\n+  <% unless params[:name] %>\n+    <div class=\"row\">\n+      <div class=\"col-sm-12\">\n+        <%= link_to \"New Image\", new_picture_path, class: 'btn btn-warning', id: 'add_button' %>\n+      </div>\n     </div>\n-  </div>\n+  <% end %>","path":"app/views/pictures/index.html.erb","position":15,"original_position":15,"commit_id":"a92554d43ae3fef9ec453f814d8c88044bba44ea","original_commit_id":"a92554d43ae3fef9ec453f814d8c88044bba44ea","user":{"login":"HaominZhang","id":2638719,"avatar_url":"https://avatars.githubusercontent.com/u/2638719?v=3","gravatar_id":"","url":"https://api.github.com/users/HaominZhang","html_url":"https://github.com/HaominZhang","followers_url":"https://api.github.com/users/HaominZhang/followers","following_url":"https://api.github.com/users/HaominZhang/following{/other_user}","gists_url":"https://api.github.com/users/HaominZhang/gists{/gist_id}","starred_url":"https://api.github.com/users/HaominZhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HaominZhang/subscriptions","organizations_url":"https://api.github.com/users/HaominZhang/orgs","repos_url":"https://api.github.com/users/HaominZhang/repos","events_url":"https://api.github.com/users/HaominZhang/events{/privacy}","received_events_url":"https://api.github.com/users/HaominZhang/received_events","type":"User","site_admin":false},"body":"For now I just remove the hiding `create` link, I will try to figure out the autofill stuff in future branches.","created_at":"2016-01-29T00:24:03Z","updated_at":"2016-01-29T00:24:03Z","html_url":"https://github.com/AppFolioOnboarding/Haomin_ImageUploader/pull/12#discussion_r51210224","pull_request_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/pulls/comments/51210224"},"html":{"href":"https://github.com/AppFolioOnboarding/Haomin_ImageUploader/pull/12#discussion_r51210224"},"pull_request":{"href":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/pulls/12","id":57578560,"html_url":"https://github.com/AppFolioOnboarding/Haomin_ImageUploader/pull/12","diff_url":"https://github.com/AppFolioOnboarding/Haomin_ImageUploader/pull/12.diff","patch_url":"https://github.com/AppFolioOnboarding/Haomin_ImageUploader/pull/12.patch","issue_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/issues/12","number":12,"state":"open","locked":false,"title":"Add picture display associate with a tag","user":{"login":"HaominZhang","id":2638719,"avatar_url":"https://avatars.githubusercontent.com/u/2638719?v=3","gravatar_id":"","url":"https://api.github.com/users/HaominZhang","html_url":"https://github.com/HaominZhang","followers_url":"https://api.github.com/users/HaominZhang/followers","following_url":"https://api.github.com/users/HaominZhang/following{/other_user}","gists_url":"https://api.github.com/users/HaominZhang/gists{/gist_id}","starred_url":"https://api.github.com/users/HaominZhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HaominZhang/subscriptions","organizations_url":"https://api.github.com/users/HaominZhang/orgs","repos_url":"https://api.github.com/users/HaominZhang/repos","events_url":"https://api.github.com/users/HaominZhang/events{/privacy}","received_events_url":"https://api.github.com/users/HaominZhang/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-28T22:43:34Z","updated_at":"2016-01-29T00:24:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b5f884494c6805cf789ef58f69b0902994539157","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/pulls/12/commits","review_comments_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/pulls/12/comments","review_comment_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/issues/12/comments","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/statuses/a92554d43ae3fef9ec453f814d8c88044bba44ea","head":{"label":"AppFolioOnboarding:tagDisplay","ref":"tagDisplay","sha":"a92554d43ae3fef9ec453f814d8c88044bba44ea","user":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars.githubusercontent.com/u/16782391?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioOnboarding","html_url":"https://github.com/AppFolioOnboarding","followers_url":"https://api.github.com/users/AppFolioOnboarding/followers","following_url":"https://api.github.com/users/AppFolioOnboarding/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioOnboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioOnboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioOnboarding/subscriptions","organizations_url":"https://api.github.com/users/AppFolioOnboarding/orgs","repos_url":"https://api.github.com/users/AppFolioOnboarding/repos","events_url":"https://api.github.com/users/AppFolioOnboarding/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioOnboarding/received_events","type":"Organization","site_admin":false},"repo":{"id":49970174,"name":"Haomin_ImageUploader","full_name":"AppFolioOnboarding/Haomin_ImageUploader","owner":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars.githubusercontent.com/u/16782391?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioOnboarding","html_url":"https://github.com/AppFolioOnboarding","followers_url":"https://api.github.com/users/AppFolioOnboarding/followers","following_url":"https://api.github.com/users/AppFolioOnboarding/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioOnboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioOnboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioOnboarding/subscriptions","organizations_url":"https://api.github.com/users/AppFolioOnboarding/orgs","repos_url":"https://api.github.com/users/AppFolioOnboarding/repos","events_url":"https://api.github.com/users/AppFolioOnboarding/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioOnboarding/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AppFolioOnboarding/Haomin_ImageUploader","description":"","fork":false,"url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader","forks_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/forks","keys_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/teams","hooks_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/hooks","issue_events_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/issues/events{/number}","events_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/events","assignees_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/assignees{/user}","branches_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/branches{/branch}","tags_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/tags","blobs_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/git/refs{/sha}","trees_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/statuses/{sha}","languages_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/languages","stargazers_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/stargazers","contributors_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/contributors","subscribers_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/subscribers","subscription_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/subscription","commits_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/commits{/sha}","git_commits_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/git/commits{/sha}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/comments{/number}","issue_comment_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/issues/comments{/number}","contents_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/contents/{+path}","compare_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/merges","archive_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/downloads","issues_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/issues{/number}","pulls_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/pulls{/number}","milestones_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/milestones{/number}","notifications_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/labels{/name}","releases_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/releases{/id}","deployments_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/deployments","created_at":"2016-01-19T17:32:08Z","updated_at":"2016-01-19T17:34:26Z","pushed_at":"2016-01-28T23:03:26Z","git_url":"git://github.com/AppFolioOnboarding/Haomin_ImageUploader.git","ssh_url":"git@github.com:AppFolioOnboarding/Haomin_ImageUploader.git","clone_url":"https://github.com/AppFolioOnboarding/Haomin_ImageUploader.git","svn_url":"https://github.com/AppFolioOnboarding/Haomin_ImageUploader","homepage":null,"size":85,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":0,"default_branch":"master"}},"base":{"label":"AppFolioOnboarding:master","ref":"master","sha":"da818e10525cd333bd0e67703fd22ec2b07ea651","user":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars.githubusercontent.com/u/16782391?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioOnboarding","html_url":"https://github.com/AppFolioOnboarding","followers_url":"https://api.github.com/users/AppFolioOnboarding/followers","following_url":"https://api.github.com/users/AppFolioOnboarding/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioOnboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioOnboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioOnboarding/subscriptions","organizations_url":"https://api.github.com/users/AppFolioOnboarding/orgs","repos_url":"https://api.github.com/users/AppFolioOnboarding/repos","events_url":"https://api.github.com/users/AppFolioOnboarding/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioOnboarding/received_events","type":"Organization","site_admin":false},"repo":{"id":49970174,"name":"Haomin_ImageUploader","full_name":"AppFolioOnboarding/Haomin_ImageUploader","owner":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars.githubusercontent.com/u/16782391?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioOnboarding","html_url":"https://github.com/AppFolioOnboarding","followers_url":"https://api.github.com/users/AppFolioOnboarding/followers","following_url":"https://api.github.com/users/AppFolioOnboarding/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioOnboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioOnboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioOnboarding/subscriptions","organizations_url":"https://api.github.com/users/AppFolioOnboarding/orgs","repos_url":"https://api.github.com/users/AppFolioOnboarding/repos","events_url":"https://api.github.com/users/AppFolioOnboarding/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioOnboarding/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AppFolioOnboarding/Haomin_ImageUploader","description":"","fork":false,"url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader","forks_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/forks","keys_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/teams","hooks_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/hooks","issue_events_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/issues/events{/number}","events_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/events","assignees_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/assignees{/user}","branches_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/branches{/branch}","tags_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/tags","blobs_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/git/refs{/sha}","trees_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/statuses/{sha}","languages_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/languages","stargazers_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/stargazers","contributors_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/contributors","subscribers_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/subscribers","subscription_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/subscription","commits_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/commits{/sha}","git_commits_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/git/commits{/sha}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/comments{/number}","issue_comment_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/issues/comments{/number}","contents_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/contents/{+path}","compare_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/merges","archive_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/downloads","issues_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/issues{/number}","pulls_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/pulls{/number}","milestones_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/milestones{/number}","notifications_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/labels{/name}","releases_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/releases{/id}","deployments_url":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/deployments","created_at":"2016-01-19T17:32:08Z","updated_at":"2016-01-19T17:34:26Z","pushed_at":"2016-01-28T23:03:26Z","git_url":"git://github.com/AppFolioOnboarding/Haomin_ImageUploader.git","ssh_url":"git@github.com:AppFolioOnboarding/Haomin_ImageUploader.git","clone_url":"https://github.com/AppFolioOnboarding/Haomin_ImageUploader.git","svn_url":"https://github.com/AppFolioOnboarding/Haomin_ImageUploader","homepage":null,"size":85,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/pulls/12"},"html":{"href":"https://github.com/AppFolioOnboarding/Haomin_ImageUploader/pull/12"},"issue":{"href":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/issues/12"},"comments":{"href":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/AppFolioOnboarding/Haomin_ImageUploader/statuses/a92554d43ae3fef9ec453f814d8c88044bba44ea"}}}}