{"action":"created","comment":{"url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/pulls/comments/29120477","id":29120477,"diff_hunk":"@@ -57,51 +59,52 @@\n       <div class=\"panel panel-default\">\n         <div class=\"panel-heading\">Profile</div>\n         <div class=\"panel-body\">\n-          {% if user == profile_user %}\n-            <form class=\"form-horizontal\" action=\"\" method=\"post\" style=\"margin:10px;\">\n+          <form class=\"form-horizontal\" action=\"\" method=\"post\" style=\"margin:10px;\">\n+            {% if user == profile_user %}\n               {% csrf_token %}\n               {{ profile_form|bootstrap_horizontal:'col-lg-4' }}\n               <div class=\"modal-footer\">\n-                <div class='col-lg-8'>{{ profile_message }}</div>\n                 <button type=\"submit\" name=\"profile_form\"\n                   class=\"btn btn-primary\">Submit</button>\n               </div>\n-            </form>\n-          {% else %}\n-            <div class=\"form-group\">\n-              <div class='row'>\n-                <div class='col-lg-2 col-lg-offset-1'>\n-                  <label class=\"control-label\">Username</label>\n-                </div>\n-                <div class='col-lg-6'>\n+            {% else %}\n+              <div class=\"form-group\">\n+                <label class=\"control-label col-lg-4\">Username</label>\n+                <div class=\"col-lg-8\">\n                   <input class=\"form-control\" readonly=\"True\" type=\"text\"\n-                    value=\"{{ profile_user.username }}\">\n+                    id=\"id_username\" value=\"{{ profile_user.username }}\">\n                 </div>\n               </div>\n-            </div>\n-            <div class=\"form-group\">\n-              <div class='row'>\n-                <div class='col-lg-2 col-lg-offset-1'>\n-                  <label class=\"control-label\">Email</label>\n+              {% if user|reveal_private_info:profile_user %}","path":"users/templates/users/profile.html","position":57,"original_position":57,"commit_id":"b1162d66bec5c4690ad5e0e63e055235bb530ddb","original_commit_id":"b1162d66bec5c4690ad5e0e63e055235bb530ddb","user":{"login":"henryyang42","id":6128538,"avatar_url":"https://avatars.githubusercontent.com/u/6128538?v=3","gravatar_id":"","url":"https://api.github.com/users/henryyang42","html_url":"https://github.com/henryyang42","followers_url":"https://api.github.com/users/henryyang42/followers","following_url":"https://api.github.com/users/henryyang42/following{/other_user}","gists_url":"https://api.github.com/users/henryyang42/gists{/gist_id}","starred_url":"https://api.github.com/users/henryyang42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henryyang42/subscriptions","organizations_url":"https://api.github.com/users/henryyang42/orgs","repos_url":"https://api.github.com/users/henryyang42/repos","events_url":"https://api.github.com/users/henryyang42/events{/privacy}","received_events_url":"https://api.github.com/users/henryyang42/received_events","type":"User","site_admin":false},"body":"Hide email from other user","created_at":"2015-04-27T04:47:11Z","updated_at":"2015-04-27T04:47:11Z","html_url":"https://github.com/bruce3557/NTHUOJ_web/pull/144#discussion_r29120477","pull_request_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/pulls/144","_links":{"self":{"href":"https://api.github.com/repos/bruce3557/NTHUOJ_web/pulls/comments/29120477"},"html":{"href":"https://github.com/bruce3557/NTHUOJ_web/pull/144#discussion_r29120477"},"pull_request":{"href":"https://api.github.com/repos/bruce3557/NTHUOJ_web/pulls/144"}}},"pull_request":{"url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/pulls/144","id":34125898,"html_url":"https://github.com/bruce3557/NTHUOJ_web/pull/144","diff_url":"https://github.com/bruce3557/NTHUOJ_web/pull/144.diff","patch_url":"https://github.com/bruce3557/NTHUOJ_web/pull/144.patch","issue_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/issues/144","number":144,"state":"open","locked":false,"title":"Profile and Auth alert / message","user":{"login":"henryyang42","id":6128538,"avatar_url":"https://avatars.githubusercontent.com/u/6128538?v=3","gravatar_id":"","url":"https://api.github.com/users/henryyang42","html_url":"https://github.com/henryyang42","followers_url":"https://api.github.com/users/henryyang42/followers","following_url":"https://api.github.com/users/henryyang42/following{/other_user}","gists_url":"https://api.github.com/users/henryyang42/gists{/gist_id}","starred_url":"https://api.github.com/users/henryyang42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henryyang42/subscriptions","organizations_url":"https://api.github.com/users/henryyang42/orgs","repos_url":"https://api.github.com/users/henryyang42/repos","events_url":"https://api.github.com/users/henryyang42/events{/privacy}","received_events_url":"https://api.github.com/users/henryyang42/received_events","type":"User","site_admin":false},"body":"Change the outlook in user profile\r\n\r\n - ``忘記密碼 update 完之後 Update successfully 字太小了 而且在最下面按鈕旁邊根本就看不到`` -> use message\r\n - ``讓 user 跟 subjudge 可以看到自己的 user level 但是不能改`` -> add readonly form\r\n - ``改user level ＋alert`` -> add ``onsubmit`` check\r\n","created_at":"2015-04-26T16:47:31Z","updated_at":"2015-04-27T04:47:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"46e5669c2588ddc96407cff244d645c23597a115","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/pulls/144/commits","review_comments_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/pulls/144/comments","review_comment_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/issues/144/comments","statuses_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/statuses/b1162d66bec5c4690ad5e0e63e055235bb530ddb","head":{"label":"henryyang42:profile","ref":"profile","sha":"b1162d66bec5c4690ad5e0e63e055235bb530ddb","user":{"login":"henryyang42","id":6128538,"avatar_url":"https://avatars.githubusercontent.com/u/6128538?v=3","gravatar_id":"","url":"https://api.github.com/users/henryyang42","html_url":"https://github.com/henryyang42","followers_url":"https://api.github.com/users/henryyang42/followers","following_url":"https://api.github.com/users/henryyang42/following{/other_user}","gists_url":"https://api.github.com/users/henryyang42/gists{/gist_id}","starred_url":"https://api.github.com/users/henryyang42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henryyang42/subscriptions","organizations_url":"https://api.github.com/users/henryyang42/orgs","repos_url":"https://api.github.com/users/henryyang42/repos","events_url":"https://api.github.com/users/henryyang42/events{/privacy}","received_events_url":"https://api.github.com/users/henryyang42/received_events","type":"User","site_admin":false},"repo":{"id":27711860,"name":"NTHUOJ_web","full_name":"henryyang42/NTHUOJ_web","owner":{"login":"henryyang42","id":6128538,"avatar_url":"https://avatars.githubusercontent.com/u/6128538?v=3","gravatar_id":"","url":"https://api.github.com/users/henryyang42","html_url":"https://github.com/henryyang42","followers_url":"https://api.github.com/users/henryyang42/followers","following_url":"https://api.github.com/users/henryyang42/following{/other_user}","gists_url":"https://api.github.com/users/henryyang42/gists{/gist_id}","starred_url":"https://api.github.com/users/henryyang42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henryyang42/subscriptions","organizations_url":"https://api.github.com/users/henryyang42/orgs","repos_url":"https://api.github.com/users/henryyang42/repos","events_url":"https://api.github.com/users/henryyang42/events{/privacy}","received_events_url":"https://api.github.com/users/henryyang42/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/henryyang42/NTHUOJ_web","description":"","fork":true,"url":"https://api.github.com/repos/henryyang42/NTHUOJ_web","forks_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/forks","keys_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/teams","hooks_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/hooks","issue_events_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/issues/events{/number}","events_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/events","assignees_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/assignees{/user}","branches_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/branches{/branch}","tags_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/tags","blobs_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/git/refs{/sha}","trees_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/statuses/{sha}","languages_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/languages","stargazers_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/stargazers","contributors_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/contributors","subscribers_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/subscribers","subscription_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/subscription","commits_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/commits{/sha}","git_commits_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/git/commits{/sha}","comments_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/comments{/number}","issue_comment_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/issues/comments{/number}","contents_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/contents/{+path}","compare_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/merges","archive_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/downloads","issues_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/issues{/number}","pulls_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/pulls{/number}","milestones_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/milestones{/number}","notifications_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/labels{/name}","releases_url":"https://api.github.com/repos/henryyang42/NTHUOJ_web/releases{/id}","created_at":"2014-12-08T11:34:29Z","updated_at":"2015-04-05T14:41:39Z","pushed_at":"2015-04-27T04:45:44Z","git_url":"git://github.com/henryyang42/NTHUOJ_web.git","ssh_url":"git@github.com:henryyang42/NTHUOJ_web.git","clone_url":"https://github.com/henryyang42/NTHUOJ_web.git","svn_url":"https://github.com/henryyang42/NTHUOJ_web","homepage":null,"size":4210,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"bruce3557:dev","ref":"dev","sha":"a61a2d94c958fff6651684ad895cba1c9d530e62","user":{"login":"bruce3557","id":4061342,"avatar_url":"https://avatars.githubusercontent.com/u/4061342?v=3","gravatar_id":"","url":"https://api.github.com/users/bruce3557","html_url":"https://github.com/bruce3557","followers_url":"https://api.github.com/users/bruce3557/followers","following_url":"https://api.github.com/users/bruce3557/following{/other_user}","gists_url":"https://api.github.com/users/bruce3557/gists{/gist_id}","starred_url":"https://api.github.com/users/bruce3557/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruce3557/subscriptions","organizations_url":"https://api.github.com/users/bruce3557/orgs","repos_url":"https://api.github.com/users/bruce3557/repos","events_url":"https://api.github.com/users/bruce3557/events{/privacy}","received_events_url":"https://api.github.com/users/bruce3557/received_events","type":"User","site_admin":false},"repo":{"id":27471538,"name":"NTHUOJ_web","full_name":"bruce3557/NTHUOJ_web","owner":{"login":"bruce3557","id":4061342,"avatar_url":"https://avatars.githubusercontent.com/u/4061342?v=3","gravatar_id":"","url":"https://api.github.com/users/bruce3557","html_url":"https://github.com/bruce3557","followers_url":"https://api.github.com/users/bruce3557/followers","following_url":"https://api.github.com/users/bruce3557/following{/other_user}","gists_url":"https://api.github.com/users/bruce3557/gists{/gist_id}","starred_url":"https://api.github.com/users/bruce3557/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruce3557/subscriptions","organizations_url":"https://api.github.com/users/bruce3557/orgs","repos_url":"https://api.github.com/users/bruce3557/repos","events_url":"https://api.github.com/users/bruce3557/events{/privacy}","received_events_url":"https://api.github.com/users/bruce3557/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bruce3557/NTHUOJ_web","description":"","fork":false,"url":"https://api.github.com/repos/bruce3557/NTHUOJ_web","forks_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/forks","keys_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/teams","hooks_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/hooks","issue_events_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/issues/events{/number}","events_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/events","assignees_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/assignees{/user}","branches_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/branches{/branch}","tags_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/tags","blobs_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/git/refs{/sha}","trees_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/statuses/{sha}","languages_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/languages","stargazers_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/stargazers","contributors_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/contributors","subscribers_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/subscribers","subscription_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/subscription","commits_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/commits{/sha}","git_commits_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/git/commits{/sha}","comments_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/comments{/number}","issue_comment_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/issues/comments{/number}","contents_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/contents/{+path}","compare_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/merges","archive_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/downloads","issues_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/issues{/number}","pulls_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/pulls{/number}","milestones_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/milestones{/number}","notifications_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/labels{/name}","releases_url":"https://api.github.com/repos/bruce3557/NTHUOJ_web/releases{/id}","created_at":"2014-12-03T05:45:27Z","updated_at":"2014-12-10T14:13:37Z","pushed_at":"2015-04-27T04:45:45Z","git_url":"git://github.com/bruce3557/NTHUOJ_web.git","ssh_url":"git@github.com:bruce3557/NTHUOJ_web.git","clone_url":"https://github.com/bruce3557/NTHUOJ_web.git","svn_url":"https://github.com/bruce3557/NTHUOJ_web","homepage":null,"size":5515,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":16,"forks":9,"open_issues":16,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bruce3557/NTHUOJ_web/pulls/144"},"html":{"href":"https://github.com/bruce3557/NTHUOJ_web/pull/144"},"issue":{"href":"https://api.github.com/repos/bruce3557/NTHUOJ_web/issues/144"},"comments":{"href":"https://api.github.com/repos/bruce3557/NTHUOJ_web/issues/144/comments"},"review_comments":{"href":"https://api.github.com/repos/bruce3557/NTHUOJ_web/pulls/144/comments"},"review_comment":{"href":"https://api.github.com/repos/bruce3557/NTHUOJ_web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bruce3557/NTHUOJ_web/pulls/144/commits"},"statuses":{"href":"https://api.github.com/repos/bruce3557/NTHUOJ_web/statuses/b1162d66bec5c4690ad5e0e63e055235bb530ddb"}}}}