{"action":"created","comment":{"url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/comments/26389169","id":26389169,"diff_hunk":"@@ -3,11 +3,13 @@\n \n \n {% with status=member|state %}\n-    {% if status == 'BAN'%}\n+    {% if status == 'STAFF' %}","path":"templates/misc/badge.part.html","position":5,"original_position":5,"commit_id":"87b369ef625429a675c8231ca6daf05c2ac72089","original_commit_id":"87b369ef625429a675c8231ca6daf05c2ac72089","user":{"login":"SpaceFox","id":5786268,"avatar_url":"https://avatars.githubusercontent.com/u/5786268?v=3","gravatar_id":"","url":"https://api.github.com/users/SpaceFox","html_url":"https://github.com/SpaceFox","followers_url":"https://api.github.com/users/SpaceFox/followers","following_url":"https://api.github.com/users/SpaceFox/following{/other_user}","gists_url":"https://api.github.com/users/SpaceFox/gists{/gist_id}","starred_url":"https://api.github.com/users/SpaceFox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpaceFox/subscriptions","organizations_url":"https://api.github.com/users/SpaceFox/orgs","repos_url":"https://api.github.com/users/SpaceFox/repos","events_url":"https://api.github.com/users/SpaceFox/events{/privacy}","received_events_url":"https://api.github.com/users/SpaceFox/received_events","type":"User","site_admin":false},"body":"Le comportement est cassé parce que tu changes une règle d'affichage :\r\n\r\n> Là si on bannit un staff (exemple d'un accès piraté), on affichera \"staff\" et pas \"ban\".\r\n\r\nD'autre part : \r\n\r\n>  et on réduit le temps de chargement de la page.\r\n\r\nSérieusement, non. J'ai l'impression de lire qu'il faut mettre des guillemets simples et non des guillemets double en PHP là... c'est pas ça de l'optimisation. Si tu veux optimiser, il y a plein de trucs à faire, comme par exemple fusionner les 2 tables de membres.","created_at":"2015-03-13T14:25:47Z","updated_at":"2015-03-13T14:25:47Z","html_url":"https://github.com/zestedesavoir/zds-site/pull/2425#discussion_r26389169","pull_request_url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/2425","_links":{"self":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/comments/26389169"},"html":{"href":"https://github.com/zestedesavoir/zds-site/pull/2425#discussion_r26389169"},"pull_request":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/2425"}}},"pull_request":{"url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/2425","id":31117057,"html_url":"https://github.com/zestedesavoir/zds-site/pull/2425","diff_url":"https://github.com/zestedesavoir/zds-site/pull/2425.diff","patch_url":"https://github.com/zestedesavoir/zds-site/pull/2425.patch","issue_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/2425","number":2425,"state":"open","locked":false,"title":"Distinction d'un membre n'ayant pas encore activé son compte","user":{"login":"firm1","id":6066015,"avatar_url":"https://avatars.githubusercontent.com/u/6066015?v=3","gravatar_id":"","url":"https://api.github.com/users/firm1","html_url":"https://github.com/firm1","followers_url":"https://api.github.com/users/firm1/followers","following_url":"https://api.github.com/users/firm1/following{/other_user}","gists_url":"https://api.github.com/users/firm1/gists{/gist_id}","starred_url":"https://api.github.com/users/firm1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firm1/subscriptions","organizations_url":"https://api.github.com/users/firm1/orgs","repos_url":"https://api.github.com/users/firm1/repos","events_url":"https://api.github.com/users/firm1/events{/privacy}","received_events_url":"https://api.github.com/users/firm1/received_events","type":"User","site_admin":false},"body":"| Q                         | R\r\n| ------------------------- | -------------------------------------------\r\n| Correction de bugs ?      | oui\r\n| Nouvelle Fonctionnalité ? | non\r\n| Tickets (_issues_) concernés         | #2300\r\n\r\nCette PR permet d'afficher sur la page de profil d'un membre inactif le badge portant une indication comme quoi le compte est inactif.\r\n\r\n**Note pour la QA:**\r\n\r\nCréer 4 types de comptes (inactif, staff, banni et en lecture seule) et vérifier que sur les pages de profil de chacun on a la bonne mention.\r\n\r\nVérifier aussi que pour le membre inactif, il n'y a aucune mention de personne à bannir","created_at":"2015-03-13T11:09:33Z","updated_at":"2015-03-13T14:25:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ea016efce23326ecd4342b405111990295e8c07b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/2425/commits","review_comments_url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/2425/comments","review_comment_url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/2425/comments","statuses_url":"https://api.github.com/repos/zestedesavoir/zds-site/statuses/87b369ef625429a675c8231ca6daf05c2ac72089","head":{"label":"firm1:display_prof","ref":"display_prof","sha":"87b369ef625429a675c8231ca6daf05c2ac72089","user":{"login":"firm1","id":6066015,"avatar_url":"https://avatars.githubusercontent.com/u/6066015?v=3","gravatar_id":"","url":"https://api.github.com/users/firm1","html_url":"https://github.com/firm1","followers_url":"https://api.github.com/users/firm1/followers","following_url":"https://api.github.com/users/firm1/following{/other_user}","gists_url":"https://api.github.com/users/firm1/gists{/gist_id}","starred_url":"https://api.github.com/users/firm1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firm1/subscriptions","organizations_url":"https://api.github.com/users/firm1/orgs","repos_url":"https://api.github.com/users/firm1/repos","events_url":"https://api.github.com/users/firm1/events{/privacy}","received_events_url":"https://api.github.com/users/firm1/received_events","type":"User","site_admin":false},"repo":{"id":22507463,"name":"zds-site","full_name":"firm1/zds-site","owner":{"login":"firm1","id":6066015,"avatar_url":"https://avatars.githubusercontent.com/u/6066015?v=3","gravatar_id":"","url":"https://api.github.com/users/firm1","html_url":"https://github.com/firm1","followers_url":"https://api.github.com/users/firm1/followers","following_url":"https://api.github.com/users/firm1/following{/other_user}","gists_url":"https://api.github.com/users/firm1/gists{/gist_id}","starred_url":"https://api.github.com/users/firm1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firm1/subscriptions","organizations_url":"https://api.github.com/users/firm1/orgs","repos_url":"https://api.github.com/users/firm1/repos","events_url":"https://api.github.com/users/firm1/events{/privacy}","received_events_url":"https://api.github.com/users/firm1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/firm1/zds-site","description":"Dépot ZDS","fork":true,"url":"https://api.github.com/repos/firm1/zds-site","forks_url":"https://api.github.com/repos/firm1/zds-site/forks","keys_url":"https://api.github.com/repos/firm1/zds-site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/firm1/zds-site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/firm1/zds-site/teams","hooks_url":"https://api.github.com/repos/firm1/zds-site/hooks","issue_events_url":"https://api.github.com/repos/firm1/zds-site/issues/events{/number}","events_url":"https://api.github.com/repos/firm1/zds-site/events","assignees_url":"https://api.github.com/repos/firm1/zds-site/assignees{/user}","branches_url":"https://api.github.com/repos/firm1/zds-site/branches{/branch}","tags_url":"https://api.github.com/repos/firm1/zds-site/tags","blobs_url":"https://api.github.com/repos/firm1/zds-site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/firm1/zds-site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/firm1/zds-site/git/refs{/sha}","trees_url":"https://api.github.com/repos/firm1/zds-site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/firm1/zds-site/statuses/{sha}","languages_url":"https://api.github.com/repos/firm1/zds-site/languages","stargazers_url":"https://api.github.com/repos/firm1/zds-site/stargazers","contributors_url":"https://api.github.com/repos/firm1/zds-site/contributors","subscribers_url":"https://api.github.com/repos/firm1/zds-site/subscribers","subscription_url":"https://api.github.com/repos/firm1/zds-site/subscription","commits_url":"https://api.github.com/repos/firm1/zds-site/commits{/sha}","git_commits_url":"https://api.github.com/repos/firm1/zds-site/git/commits{/sha}","comments_url":"https://api.github.com/repos/firm1/zds-site/comments{/number}","issue_comment_url":"https://api.github.com/repos/firm1/zds-site/issues/comments{/number}","contents_url":"https://api.github.com/repos/firm1/zds-site/contents/{+path}","compare_url":"https://api.github.com/repos/firm1/zds-site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/firm1/zds-site/merges","archive_url":"https://api.github.com/repos/firm1/zds-site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/firm1/zds-site/downloads","issues_url":"https://api.github.com/repos/firm1/zds-site/issues{/number}","pulls_url":"https://api.github.com/repos/firm1/zds-site/pulls{/number}","milestones_url":"https://api.github.com/repos/firm1/zds-site/milestones{/number}","notifications_url":"https://api.github.com/repos/firm1/zds-site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/firm1/zds-site/labels{/name}","releases_url":"https://api.github.com/repos/firm1/zds-site/releases{/id}","created_at":"2014-08-01T11:47:06Z","updated_at":"2015-03-13T10:41:32Z","pushed_at":"2015-03-13T13:18:41Z","git_url":"git://github.com/firm1/zds-site.git","ssh_url":"git@github.com:firm1/zds-site.git","clone_url":"https://github.com/firm1/zds-site.git","svn_url":"https://github.com/firm1/zds-site","homepage":null,"size":55527,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"dev"}},"base":{"label":"zestedesavoir:dev","ref":"dev","sha":"7527fe6309c0ad474247a780b245b2e395bbaa04","user":{"login":"zestedesavoir","id":7406239,"avatar_url":"https://avatars.githubusercontent.com/u/7406239?v=3","gravatar_id":"","url":"https://api.github.com/users/zestedesavoir","html_url":"https://github.com/zestedesavoir","followers_url":"https://api.github.com/users/zestedesavoir/followers","following_url":"https://api.github.com/users/zestedesavoir/following{/other_user}","gists_url":"https://api.github.com/users/zestedesavoir/gists{/gist_id}","starred_url":"https://api.github.com/users/zestedesavoir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zestedesavoir/subscriptions","organizations_url":"https://api.github.com/users/zestedesavoir/orgs","repos_url":"https://api.github.com/users/zestedesavoir/repos","events_url":"https://api.github.com/users/zestedesavoir/events{/privacy}","received_events_url":"https://api.github.com/users/zestedesavoir/received_events","type":"Organization","site_admin":false},"repo":{"id":14778920,"name":"zds-site","full_name":"zestedesavoir/zds-site","owner":{"login":"zestedesavoir","id":7406239,"avatar_url":"https://avatars.githubusercontent.com/u/7406239?v=3","gravatar_id":"","url":"https://api.github.com/users/zestedesavoir","html_url":"https://github.com/zestedesavoir","followers_url":"https://api.github.com/users/zestedesavoir/followers","following_url":"https://api.github.com/users/zestedesavoir/following{/other_user}","gists_url":"https://api.github.com/users/zestedesavoir/gists{/gist_id}","starred_url":"https://api.github.com/users/zestedesavoir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zestedesavoir/subscriptions","organizations_url":"https://api.github.com/users/zestedesavoir/orgs","repos_url":"https://api.github.com/users/zestedesavoir/repos","events_url":"https://api.github.com/users/zestedesavoir/events{/privacy}","received_events_url":"https://api.github.com/users/zestedesavoir/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zestedesavoir/zds-site","description":"Dépot ZDS","fork":false,"url":"https://api.github.com/repos/zestedesavoir/zds-site","forks_url":"https://api.github.com/repos/zestedesavoir/zds-site/forks","keys_url":"https://api.github.com/repos/zestedesavoir/zds-site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zestedesavoir/zds-site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zestedesavoir/zds-site/teams","hooks_url":"https://api.github.com/repos/zestedesavoir/zds-site/hooks","issue_events_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/events{/number}","events_url":"https://api.github.com/repos/zestedesavoir/zds-site/events","assignees_url":"https://api.github.com/repos/zestedesavoir/zds-site/assignees{/user}","branches_url":"https://api.github.com/repos/zestedesavoir/zds-site/branches{/branch}","tags_url":"https://api.github.com/repos/zestedesavoir/zds-site/tags","blobs_url":"https://api.github.com/repos/zestedesavoir/zds-site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zestedesavoir/zds-site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zestedesavoir/zds-site/git/refs{/sha}","trees_url":"https://api.github.com/repos/zestedesavoir/zds-site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zestedesavoir/zds-site/statuses/{sha}","languages_url":"https://api.github.com/repos/zestedesavoir/zds-site/languages","stargazers_url":"https://api.github.com/repos/zestedesavoir/zds-site/stargazers","contributors_url":"https://api.github.com/repos/zestedesavoir/zds-site/contributors","subscribers_url":"https://api.github.com/repos/zestedesavoir/zds-site/subscribers","subscription_url":"https://api.github.com/repos/zestedesavoir/zds-site/subscription","commits_url":"https://api.github.com/repos/zestedesavoir/zds-site/commits{/sha}","git_commits_url":"https://api.github.com/repos/zestedesavoir/zds-site/git/commits{/sha}","comments_url":"https://api.github.com/repos/zestedesavoir/zds-site/comments{/number}","issue_comment_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/comments{/number}","contents_url":"https://api.github.com/repos/zestedesavoir/zds-site/contents/{+path}","compare_url":"https://api.github.com/repos/zestedesavoir/zds-site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zestedesavoir/zds-site/merges","archive_url":"https://api.github.com/repos/zestedesavoir/zds-site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zestedesavoir/zds-site/downloads","issues_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues{/number}","pulls_url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls{/number}","milestones_url":"https://api.github.com/repos/zestedesavoir/zds-site/milestones{/number}","notifications_url":"https://api.github.com/repos/zestedesavoir/zds-site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zestedesavoir/zds-site/labels{/name}","releases_url":"https://api.github.com/repos/zestedesavoir/zds-site/releases{/id}","created_at":"2013-11-28T14:23:48Z","updated_at":"2015-03-12T08:55:18Z","pushed_at":"2015-03-12T08:38:34Z","git_url":"git://github.com/zestedesavoir/zds-site.git","ssh_url":"git@github.com:zestedesavoir/zds-site.git","clone_url":"https://github.com/zestedesavoir/zds-site.git","svn_url":"https://github.com/zestedesavoir/zds-site","homepage":null,"size":132717,"stargazers_count":88,"watchers_count":88,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":79,"mirror_url":null,"open_issues_count":252,"forks":79,"open_issues":252,"watchers":88,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/2425"},"html":{"href":"https://github.com/zestedesavoir/zds-site/pull/2425"},"issue":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/issues/2425"},"comments":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/issues/2425/comments"},"review_comments":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/2425/comments"},"review_comment":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/2425/commits"},"statuses":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/statuses/87b369ef625429a675c8231ca6daf05c2ac72089"}}}}