{"action":"created","comment":{"url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/pulls/comments/244353398","pull_request_review_id":188320727,"id":244353398,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NDM1MzM5OA==","diff_hunk":"@@ -0,0 +1,104 @@\n+<?php\n+\n+use yii\\bootstrap\\ButtonDropdown;\n+use yii\\grid\\GridView;\n+use yii\\helpers\\ArrayHelper;\n+use yii\\helpers\\Html;\n+\n+/* @var $this yii\\web\\View */\n+/* @var $dataProvider yii\\data\\ActiveDataProvider */\n+\n+$this->title = 'Support Groups';\n+$this->params['breadcrumbs'][] = $this->title;\n+?>\n+<div class=\"col-md-12\">\n+    <?php $this->beginBlock('content-header-data'); ?>\n+        <div class=\"row mb-2\">\n+            <div class=\"col-sm-4\">\n+                <h1 class=\"text-dark mt-4\"><?= Html::encode($this->title) ?></h1>\n+            </div>\n+        </div>\n+        <div class=\"row mb-2\">\n+            <div class=\"col\">\n+                <div class=\"alert alert-info\" role=\"alert\">\n+                    <b>Support Groups:</b> <?= Yii::$app->user->identity->supportGroupCount ?>/<?= Yii::$app->user->identity->maxSupportGroup ?>. \n+                    (<?= $settingQty ?> per 1 User Rating)\n+                </div>\n+            </div>\n+        </div>\n+    <?php $this->endBlock(); ?>\n+    <div class=\"card\">\n+        <div class=\"card-header text-right\">\n+            <?= Html::a('New Support Group', ['create'], ['class' => 'btn btn-success ml-3']) ?>\n+        </div>\n+        <div class=\"card-body p-0\">\n+            <?= GridView::widget([\n+                'dataProvider' => $dataProvider,\n+                'summary' => false,\n+                'showHeader' => false,\n+                'tableOptions' => ['class' => 'table table-hover table-condensed'],\n+                'columns' => [\n+                    'title',\n+                    [\n+                        'class' => 'yii\\grid\\ActionColumn',\n+                        'template' => '{all}',\n+                        'buttons' => [\n+                            'all' => function ($url, $model, $key) {\n+                                if($model->user_id == Yii::$app->user->identity->id) {\n+                                    return ButtonDropdown::widget([\n+                                        'encodeLabel' => false, // if you're going to use html on the button label\n+                                        'label' => '<i class=\"fas fa-cog\"></i>',","path":"views/support-groups/index.php","position":50,"original_position":50,"commit_id":"7a561de308349008cb0c00eab1131f0df8ccc3c2","original_commit_id":"7a561de308349008cb0c00eab1131f0df8ccc3c2","user":{"login":"codeclimate[bot]","id":36754821,"node_id":"MDM6Qm90MzY3NTQ4MjE=","avatar_url":"https://avatars0.githubusercontent.com/in/9403?v=4","gravatar_id":"","url":"https://api.github.com/users/codeclimate%5Bbot%5D","html_url":"https://github.com/apps/codeclimate","followers_url":"https://api.github.com/users/codeclimate%5Bbot%5D/followers","following_url":"https://api.github.com/users/codeclimate%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/codeclimate%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/codeclimate%5Bbot%5D/repos","events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/received_events","type":"Bot","site_admin":false},"body":"Define a constant instead of duplicating this literal \"label\" 4 times.","created_at":"2018-12-28T16:09:21Z","updated_at":"2018-12-28T16:09:21Z","html_url":"https://github.com/opensourcewebsite-org/opensourcewebsite-org/pull/120#discussion_r244353398","pull_request_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/pulls/120","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/pulls/comments/244353398"},"html":{"href":"https://github.com/opensourcewebsite-org/opensourcewebsite-org/pull/120#discussion_r244353398"},"pull_request":{"href":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/pulls/120"}}},"pull_request":{"url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/pulls/120","id":241186146,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQxMTg2MTQ2","html_url":"https://github.com/opensourcewebsite-org/opensourcewebsite-org/pull/120","diff_url":"https://github.com/opensourcewebsite-org/opensourcewebsite-org/pull/120.diff","patch_url":"https://github.com/opensourcewebsite-org/opensourcewebsite-org/pull/120.patch","issue_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/issues/120","number":120,"state":"open","locked":false,"title":"Support groups","user":{"login":"komalkedia","id":9436398,"node_id":"MDQ6VXNlcjk0MzYzOTg=","avatar_url":"https://avatars2.githubusercontent.com/u/9436398?v=4","gravatar_id":"","url":"https://api.github.com/users/komalkedia","html_url":"https://github.com/komalkedia","followers_url":"https://api.github.com/users/komalkedia/followers","following_url":"https://api.github.com/users/komalkedia/following{/other_user}","gists_url":"https://api.github.com/users/komalkedia/gists{/gist_id}","starred_url":"https://api.github.com/users/komalkedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/komalkedia/subscriptions","organizations_url":"https://api.github.com/users/komalkedia/orgs","repos_url":"https://api.github.com/users/komalkedia/repos","events_url":"https://api.github.com/users/komalkedia/events{/privacy}","received_events_url":"https://api.github.com/users/komalkedia/received_events","type":"User","site_admin":false},"body":"### Requirements\r\n\r\nhttps://github.com/opensourcewebsite-org/opensourcewebsite-org/issues/107","created_at":"2018-12-27T16:34:08Z","updated_at":"2018-12-28T16:09:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5ea4d2626e79c48913290c30253571a941669663","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/pulls/120/commits","review_comments_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/pulls/120/comments","review_comment_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/issues/120/comments","statuses_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/statuses/7a561de308349008cb0c00eab1131f0df8ccc3c2","head":{"label":"komalkedia:support_groups","ref":"support_groups","sha":"7a561de308349008cb0c00eab1131f0df8ccc3c2","user":{"login":"komalkedia","id":9436398,"node_id":"MDQ6VXNlcjk0MzYzOTg=","avatar_url":"https://avatars2.githubusercontent.com/u/9436398?v=4","gravatar_id":"","url":"https://api.github.com/users/komalkedia","html_url":"https://github.com/komalkedia","followers_url":"https://api.github.com/users/komalkedia/followers","following_url":"https://api.github.com/users/komalkedia/following{/other_user}","gists_url":"https://api.github.com/users/komalkedia/gists{/gist_id}","starred_url":"https://api.github.com/users/komalkedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/komalkedia/subscriptions","organizations_url":"https://api.github.com/users/komalkedia/orgs","repos_url":"https://api.github.com/users/komalkedia/repos","events_url":"https://api.github.com/users/komalkedia/events{/privacy}","received_events_url":"https://api.github.com/users/komalkedia/received_events","type":"User","site_admin":false},"repo":{"id":153905306,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM5MDUzMDY=","name":"opensourcewebsite-org","full_name":"komalkedia/opensourcewebsite-org","private":false,"owner":{"login":"komalkedia","id":9436398,"node_id":"MDQ6VXNlcjk0MzYzOTg=","avatar_url":"https://avatars2.githubusercontent.com/u/9436398?v=4","gravatar_id":"","url":"https://api.github.com/users/komalkedia","html_url":"https://github.com/komalkedia","followers_url":"https://api.github.com/users/komalkedia/followers","following_url":"https://api.github.com/users/komalkedia/following{/other_user}","gists_url":"https://api.github.com/users/komalkedia/gists{/gist_id}","starred_url":"https://api.github.com/users/komalkedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/komalkedia/subscriptions","organizations_url":"https://api.github.com/users/komalkedia/orgs","repos_url":"https://api.github.com/users/komalkedia/repos","events_url":"https://api.github.com/users/komalkedia/events{/privacy}","received_events_url":"https://api.github.com/users/komalkedia/received_events","type":"User","site_admin":false},"html_url":"https://github.com/komalkedia/opensourcewebsite-org","description":"OpenSourceWebsite (OSW) is an open source website for the world's largest online social community, and is available for free on Live Website (https://opensourcewebsite.org).","fork":true,"url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org","forks_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/forks","keys_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/teams","hooks_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/hooks","issue_events_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/issues/events{/number}","events_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/events","assignees_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/assignees{/user}","branches_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/branches{/branch}","tags_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/tags","blobs_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/git/refs{/sha}","trees_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/statuses/{sha}","languages_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/languages","stargazers_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/stargazers","contributors_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/contributors","subscribers_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/subscribers","subscription_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/subscription","commits_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/commits{/sha}","git_commits_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/git/commits{/sha}","comments_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/comments{/number}","issue_comment_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/issues/comments{/number}","contents_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/contents/{+path}","compare_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/merges","archive_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/downloads","issues_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/issues{/number}","pulls_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/pulls{/number}","milestones_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/milestones{/number}","notifications_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/labels{/name}","releases_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/releases{/id}","deployments_url":"https://api.github.com/repos/komalkedia/opensourcewebsite-org/deployments","created_at":"2018-10-20T12:52:49Z","updated_at":"2018-11-02T15:48:50Z","pushed_at":"2018-12-28T16:07:21Z","git_url":"git://github.com/komalkedia/opensourcewebsite-org.git","ssh_url":"git@github.com:komalkedia/opensourcewebsite-org.git","clone_url":"https://github.com/komalkedia/opensourcewebsite-org.git","svn_url":"https://github.com/komalkedia/opensourcewebsite-org","homepage":null,"size":548,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"opensourcewebsite-org:master","ref":"master","sha":"0280e1a8dd145eb3cbacf10a50ac3f8a26059c87","user":{"login":"opensourcewebsite-org","id":42433667,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNDMzNjY3","avatar_url":"https://avatars1.githubusercontent.com/u/42433667?v=4","gravatar_id":"","url":"https://api.github.com/users/opensourcewebsite-org","html_url":"https://github.com/opensourcewebsite-org","followers_url":"https://api.github.com/users/opensourcewebsite-org/followers","following_url":"https://api.github.com/users/opensourcewebsite-org/following{/other_user}","gists_url":"https://api.github.com/users/opensourcewebsite-org/gists{/gist_id}","starred_url":"https://api.github.com/users/opensourcewebsite-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opensourcewebsite-org/subscriptions","organizations_url":"https://api.github.com/users/opensourcewebsite-org/orgs","repos_url":"https://api.github.com/users/opensourcewebsite-org/repos","events_url":"https://api.github.com/users/opensourcewebsite-org/events{/privacy}","received_events_url":"https://api.github.com/users/opensourcewebsite-org/received_events","type":"Organization","site_admin":false},"repo":{"id":144956786,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQ5NTY3ODY=","name":"opensourcewebsite-org","full_name":"opensourcewebsite-org/opensourcewebsite-org","private":false,"owner":{"login":"opensourcewebsite-org","id":42433667,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNDMzNjY3","avatar_url":"https://avatars1.githubusercontent.com/u/42433667?v=4","gravatar_id":"","url":"https://api.github.com/users/opensourcewebsite-org","html_url":"https://github.com/opensourcewebsite-org","followers_url":"https://api.github.com/users/opensourcewebsite-org/followers","following_url":"https://api.github.com/users/opensourcewebsite-org/following{/other_user}","gists_url":"https://api.github.com/users/opensourcewebsite-org/gists{/gist_id}","starred_url":"https://api.github.com/users/opensourcewebsite-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opensourcewebsite-org/subscriptions","organizations_url":"https://api.github.com/users/opensourcewebsite-org/orgs","repos_url":"https://api.github.com/users/opensourcewebsite-org/repos","events_url":"https://api.github.com/users/opensourcewebsite-org/events{/privacy}","received_events_url":"https://api.github.com/users/opensourcewebsite-org/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/opensourcewebsite-org/opensourcewebsite-org","description":"OpenSourceWebsite (OSW) is an open source website for the world's largest online social community, and is available for free on Live Website (https://opensourcewebsite.org).","fork":false,"url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org","forks_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/forks","keys_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/teams","hooks_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/hooks","issue_events_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/issues/events{/number}","events_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/events","assignees_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/assignees{/user}","branches_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/branches{/branch}","tags_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/tags","blobs_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/git/refs{/sha}","trees_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/statuses/{sha}","languages_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/languages","stargazers_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/stargazers","contributors_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/contributors","subscribers_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/subscribers","subscription_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/subscription","commits_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/commits{/sha}","git_commits_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/git/commits{/sha}","comments_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/comments{/number}","issue_comment_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/issues/comments{/number}","contents_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/contents/{+path}","compare_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/merges","archive_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/downloads","issues_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/issues{/number}","pulls_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/pulls{/number}","milestones_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/milestones{/number}","notifications_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/labels{/name}","releases_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/releases{/id}","deployments_url":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/deployments","created_at":"2018-08-16T08:04:10Z","updated_at":"2018-12-28T01:53:19Z","pushed_at":"2018-12-28T16:07:23Z","git_url":"git://github.com/opensourcewebsite-org/opensourcewebsite-org.git","ssh_url":"git@github.com:opensourcewebsite-org/opensourcewebsite-org.git","clone_url":"https://github.com/opensourcewebsite-org/opensourcewebsite-org.git","svn_url":"https://github.com/opensourcewebsite-org/opensourcewebsite-org","homepage":null,"size":487,"stargazers_count":7,"watchers_count":7,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":16,"open_issues":6,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/pulls/120"},"html":{"href":"https://github.com/opensourcewebsite-org/opensourcewebsite-org/pull/120"},"issue":{"href":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/issues/120"},"comments":{"href":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/issues/120/comments"},"review_comments":{"href":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/pulls/120/comments"},"review_comment":{"href":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/pulls/120/commits"},"statuses":{"href":"https://api.github.com/repos/opensourcewebsite-org/opensourcewebsite-org/statuses/7a561de308349008cb0c00eab1131f0df8ccc3c2"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"codeclimate"}}