{"action":"created","comment":{"url":"https://api.github.com/repos/codex-team/codex/pulls/comments/46678644","id":46678644,"diff_hunk":"@@ -4,52 +4,43 @@\n             <p>Здесь пока нет статей.</p>\n         </article>\n     <? else: ?>\n-        <table class=\"admin_tables\">\n-            <tr>\n-                <th>ID</th>\n-                <th>Название</th>\n-                <th>Автор</th>\n-                <th>Дата</th>\n-                <th>Просмотры</th>\n-                <td></td>\n-                <td></td>\n-            </tr>\n+        <table class=\"p_table\">\n             <? foreach ($articles as $current_article): ?>\n <!--                TODO(#39) здесь не предусмотрен сценарий обработки удалённых статей -->\n                 <? if ($current_article->is_removed != 1): ?>\n                     <tr>\n-                        <td><?= $current_article->id ?></td>\n+                        <td class=\"id\"><?= $current_article->id ?></td>\n                         <td class=\"title\">\n-                            <a href=\"/articles/<?= $current_article->id ?>\">\n-                                <?= $current_article->title ?>\n+                            <a href=\"/article/<?= $current_article->id ?>\">\n+                                <b><?= $current_article->title ?></b>\n                             </a>\n                         </td>\n-                        <td><?= $current_article->user_id ?></td>\n-                        <td>\n-                            <?  //Выводим дату изменений, если таковые были.\n-                                if(is_null($current_article->dt_update)):\n-                                    echo $current_article->dt_create;\n-                                else:\n-                                    echo $current_article->dt_update;\n-                                endif;\n-                            ?>\n+                        <td class=\"user\">\n+                            <? foreach ($users as $user): ?>\n+                                <? if ($user->id == $current_article->user_id): ?>\n+                                    <a class=\"name\" href=\"/user/<?= $user->id ?>\"><?= $user->name ?></a> <br />\n+                                    <a class=\"nick\" href=\"//github.com/<?= $user->github_uri ?>\" target=\"_blank\">\n+                                        <i class=\"icon-github-circled\"></i>\n+                                        <?= $user->github_uri ?>\n+                                    </a>\n+                                <? endif; ?>\n+                            <? endforeach; ?>\n                         </td>\n-                        <td>Без просмотров</td>\n-<!--                        TODO(#44) Выводить счётчик просмотров-->\n-                        <td>Редактировать</td>\n-                        <td><a href='/article/delarticle/<?= $current_article->id ?>'>Удалить</a></td>\n+                        <td class=\"date\">\n+                            <? if(is_null($current_article->dt_update)): ?>\n+                                <?= $current_article->dt_create ?>\n+                            <? else: ?>\n+                                <?= $current_article->dt_update ?>\n+                            <? endif; ?>\n+                        </td>\n+                        <td class=\"counter\">\n+                            <b><?= array_shift($views) ?></b>","path":"application/views/templates/admin/articles/list.php","position":60,"original_position":60,"commit_id":"f22fe93434ad7eeef10eb1f668dface3425f4cf3","original_commit_id":"f22fe93434ad7eeef10eb1f668dface3425f4cf3","user":{"login":"ivanszhuravlev","id":14206477,"avatar_url":"https://avatars.githubusercontent.com/u/14206477?v=3","gravatar_id":"","url":"https://api.github.com/users/ivanszhuravlev","html_url":"https://github.com/ivanszhuravlev","followers_url":"https://api.github.com/users/ivanszhuravlev/followers","following_url":"https://api.github.com/users/ivanszhuravlev/following{/other_user}","gists_url":"https://api.github.com/users/ivanszhuravlev/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanszhuravlev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanszhuravlev/subscriptions","organizations_url":"https://api.github.com/users/ivanszhuravlev/orgs","repos_url":"https://api.github.com/users/ivanszhuravlev/repos","events_url":"https://api.github.com/users/ivanszhuravlev/events{/privacy}","received_events_url":"https://api.github.com/users/ivanszhuravlev/received_events","type":"User","site_admin":false},"body":"@neSpecc echo убрал","created_at":"2015-12-04T12:54:06Z","updated_at":"2015-12-04T12:54:06Z","html_url":"https://github.com/codex-team/codex/pull/60#discussion_r46678644","pull_request_url":"https://api.github.com/repos/codex-team/codex/pulls/60","_links":{"self":{"href":"https://api.github.com/repos/codex-team/codex/pulls/comments/46678644"},"html":{"href":"https://github.com/codex-team/codex/pull/60#discussion_r46678644"},"pull_request":{"href":"https://api.github.com/repos/codex-team/codex/pulls/60"}}},"pull_request":{"url":"https://api.github.com/repos/codex-team/codex/pulls/60","id":52202040,"html_url":"https://github.com/codex-team/codex/pull/60","diff_url":"https://github.com/codex-team/codex/pull/60.diff","patch_url":"https://github.com/codex-team/codex/pull/60.patch","issue_url":"https://api.github.com/repos/codex-team/codex/issues/60","number":60,"state":"open","locked":false,"title":"Просмотры #44","user":{"login":"ivanszhuravlev","id":14206477,"avatar_url":"https://avatars.githubusercontent.com/u/14206477?v=3","gravatar_id":"","url":"https://api.github.com/users/ivanszhuravlev","html_url":"https://github.com/ivanszhuravlev","followers_url":"https://api.github.com/users/ivanszhuravlev/followers","following_url":"https://api.github.com/users/ivanszhuravlev/following{/other_user}","gists_url":"https://api.github.com/users/ivanszhuravlev/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanszhuravlev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanszhuravlev/subscriptions","organizations_url":"https://api.github.com/users/ivanszhuravlev/orgs","repos_url":"https://api.github.com/users/ivanszhuravlev/repos","events_url":"https://api.github.com/users/ivanszhuravlev/events{/privacy}","received_events_url":"https://api.github.com/users/ivanszhuravlev/received_events","type":"User","site_admin":false},"body":"- [ ] @neSpecc \r\n- [ ] @eliseealex \r\n\r\nCloses #44 ","created_at":"2015-12-01T00:53:46Z","updated_at":"2015-12-04T12:54:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1c1c9c460839019d94f05164a9b957c2881b04ff","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/codex-team/codex/pulls/60/commits","review_comments_url":"https://api.github.com/repos/codex-team/codex/pulls/60/comments","review_comment_url":"https://api.github.com/repos/codex-team/codex/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codex-team/codex/issues/60/comments","statuses_url":"https://api.github.com/repos/codex-team/codex/statuses/f22fe93434ad7eeef10eb1f668dface3425f4cf3","head":{"label":"codex-team:views-#44","ref":"views-#44","sha":"f22fe93434ad7eeef10eb1f668dface3425f4cf3","user":{"login":"codex-team","id":16060815,"avatar_url":"https://avatars.githubusercontent.com/u/16060815?v=3","gravatar_id":"","url":"https://api.github.com/users/codex-team","html_url":"https://github.com/codex-team","followers_url":"https://api.github.com/users/codex-team/followers","following_url":"https://api.github.com/users/codex-team/following{/other_user}","gists_url":"https://api.github.com/users/codex-team/gists{/gist_id}","starred_url":"https://api.github.com/users/codex-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codex-team/subscriptions","organizations_url":"https://api.github.com/users/codex-team/orgs","repos_url":"https://api.github.com/users/codex-team/repos","events_url":"https://api.github.com/users/codex-team/events{/privacy}","received_events_url":"https://api.github.com/users/codex-team/received_events","type":"Organization","site_admin":false},"repo":{"id":44992775,"name":"codex","full_name":"codex-team/codex","owner":{"login":"codex-team","id":16060815,"avatar_url":"https://avatars.githubusercontent.com/u/16060815?v=3","gravatar_id":"","url":"https://api.github.com/users/codex-team","html_url":"https://github.com/codex-team","followers_url":"https://api.github.com/users/codex-team/followers","following_url":"https://api.github.com/users/codex-team/following{/other_user}","gists_url":"https://api.github.com/users/codex-team/gists{/gist_id}","starred_url":"https://api.github.com/users/codex-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codex-team/subscriptions","organizations_url":"https://api.github.com/users/codex-team/orgs","repos_url":"https://api.github.com/users/codex-team/repos","events_url":"https://api.github.com/users/codex-team/events{/privacy}","received_events_url":"https://api.github.com/users/codex-team/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codex-team/codex","description":"Codex Team development","fork":false,"url":"https://api.github.com/repos/codex-team/codex","forks_url":"https://api.github.com/repos/codex-team/codex/forks","keys_url":"https://api.github.com/repos/codex-team/codex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codex-team/codex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codex-team/codex/teams","hooks_url":"https://api.github.com/repos/codex-team/codex/hooks","issue_events_url":"https://api.github.com/repos/codex-team/codex/issues/events{/number}","events_url":"https://api.github.com/repos/codex-team/codex/events","assignees_url":"https://api.github.com/repos/codex-team/codex/assignees{/user}","branches_url":"https://api.github.com/repos/codex-team/codex/branches{/branch}","tags_url":"https://api.github.com/repos/codex-team/codex/tags","blobs_url":"https://api.github.com/repos/codex-team/codex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codex-team/codex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codex-team/codex/git/refs{/sha}","trees_url":"https://api.github.com/repos/codex-team/codex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codex-team/codex/statuses/{sha}","languages_url":"https://api.github.com/repos/codex-team/codex/languages","stargazers_url":"https://api.github.com/repos/codex-team/codex/stargazers","contributors_url":"https://api.github.com/repos/codex-team/codex/contributors","subscribers_url":"https://api.github.com/repos/codex-team/codex/subscribers","subscription_url":"https://api.github.com/repos/codex-team/codex/subscription","commits_url":"https://api.github.com/repos/codex-team/codex/commits{/sha}","git_commits_url":"https://api.github.com/repos/codex-team/codex/git/commits{/sha}","comments_url":"https://api.github.com/repos/codex-team/codex/comments{/number}","issue_comment_url":"https://api.github.com/repos/codex-team/codex/issues/comments{/number}","contents_url":"https://api.github.com/repos/codex-team/codex/contents/{+path}","compare_url":"https://api.github.com/repos/codex-team/codex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codex-team/codex/merges","archive_url":"https://api.github.com/repos/codex-team/codex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codex-team/codex/downloads","issues_url":"https://api.github.com/repos/codex-team/codex/issues{/number}","pulls_url":"https://api.github.com/repos/codex-team/codex/pulls{/number}","milestones_url":"https://api.github.com/repos/codex-team/codex/milestones{/number}","notifications_url":"https://api.github.com/repos/codex-team/codex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codex-team/codex/labels{/name}","releases_url":"https://api.github.com/repos/codex-team/codex/releases{/id}","created_at":"2015-10-26T19:41:35Z","updated_at":"2015-11-28T17:09:25Z","pushed_at":"2015-12-04T12:40:46Z","git_url":"git://github.com/codex-team/codex.git","ssh_url":"git@github.com:codex-team/codex.git","clone_url":"https://github.com/codex-team/codex.git","svn_url":"https://github.com/codex-team/codex","homepage":"http://alpha.difual.com","size":9550,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":17,"forks":4,"open_issues":17,"watchers":0,"default_branch":"master"}},"base":{"label":"codex-team:master","ref":"master","sha":"ee14b6d30a2fb91859aada08e25047ff45415f0c","user":{"login":"codex-team","id":16060815,"avatar_url":"https://avatars.githubusercontent.com/u/16060815?v=3","gravatar_id":"","url":"https://api.github.com/users/codex-team","html_url":"https://github.com/codex-team","followers_url":"https://api.github.com/users/codex-team/followers","following_url":"https://api.github.com/users/codex-team/following{/other_user}","gists_url":"https://api.github.com/users/codex-team/gists{/gist_id}","starred_url":"https://api.github.com/users/codex-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codex-team/subscriptions","organizations_url":"https://api.github.com/users/codex-team/orgs","repos_url":"https://api.github.com/users/codex-team/repos","events_url":"https://api.github.com/users/codex-team/events{/privacy}","received_events_url":"https://api.github.com/users/codex-team/received_events","type":"Organization","site_admin":false},"repo":{"id":44992775,"name":"codex","full_name":"codex-team/codex","owner":{"login":"codex-team","id":16060815,"avatar_url":"https://avatars.githubusercontent.com/u/16060815?v=3","gravatar_id":"","url":"https://api.github.com/users/codex-team","html_url":"https://github.com/codex-team","followers_url":"https://api.github.com/users/codex-team/followers","following_url":"https://api.github.com/users/codex-team/following{/other_user}","gists_url":"https://api.github.com/users/codex-team/gists{/gist_id}","starred_url":"https://api.github.com/users/codex-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codex-team/subscriptions","organizations_url":"https://api.github.com/users/codex-team/orgs","repos_url":"https://api.github.com/users/codex-team/repos","events_url":"https://api.github.com/users/codex-team/events{/privacy}","received_events_url":"https://api.github.com/users/codex-team/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codex-team/codex","description":"Codex Team development","fork":false,"url":"https://api.github.com/repos/codex-team/codex","forks_url":"https://api.github.com/repos/codex-team/codex/forks","keys_url":"https://api.github.com/repos/codex-team/codex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codex-team/codex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codex-team/codex/teams","hooks_url":"https://api.github.com/repos/codex-team/codex/hooks","issue_events_url":"https://api.github.com/repos/codex-team/codex/issues/events{/number}","events_url":"https://api.github.com/repos/codex-team/codex/events","assignees_url":"https://api.github.com/repos/codex-team/codex/assignees{/user}","branches_url":"https://api.github.com/repos/codex-team/codex/branches{/branch}","tags_url":"https://api.github.com/repos/codex-team/codex/tags","blobs_url":"https://api.github.com/repos/codex-team/codex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codex-team/codex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codex-team/codex/git/refs{/sha}","trees_url":"https://api.github.com/repos/codex-team/codex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codex-team/codex/statuses/{sha}","languages_url":"https://api.github.com/repos/codex-team/codex/languages","stargazers_url":"https://api.github.com/repos/codex-team/codex/stargazers","contributors_url":"https://api.github.com/repos/codex-team/codex/contributors","subscribers_url":"https://api.github.com/repos/codex-team/codex/subscribers","subscription_url":"https://api.github.com/repos/codex-team/codex/subscription","commits_url":"https://api.github.com/repos/codex-team/codex/commits{/sha}","git_commits_url":"https://api.github.com/repos/codex-team/codex/git/commits{/sha}","comments_url":"https://api.github.com/repos/codex-team/codex/comments{/number}","issue_comment_url":"https://api.github.com/repos/codex-team/codex/issues/comments{/number}","contents_url":"https://api.github.com/repos/codex-team/codex/contents/{+path}","compare_url":"https://api.github.com/repos/codex-team/codex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codex-team/codex/merges","archive_url":"https://api.github.com/repos/codex-team/codex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codex-team/codex/downloads","issues_url":"https://api.github.com/repos/codex-team/codex/issues{/number}","pulls_url":"https://api.github.com/repos/codex-team/codex/pulls{/number}","milestones_url":"https://api.github.com/repos/codex-team/codex/milestones{/number}","notifications_url":"https://api.github.com/repos/codex-team/codex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codex-team/codex/labels{/name}","releases_url":"https://api.github.com/repos/codex-team/codex/releases{/id}","created_at":"2015-10-26T19:41:35Z","updated_at":"2015-11-28T17:09:25Z","pushed_at":"2015-12-04T12:40:46Z","git_url":"git://github.com/codex-team/codex.git","ssh_url":"git@github.com:codex-team/codex.git","clone_url":"https://github.com/codex-team/codex.git","svn_url":"https://github.com/codex-team/codex","homepage":"http://alpha.difual.com","size":9550,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":17,"forks":4,"open_issues":17,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codex-team/codex/pulls/60"},"html":{"href":"https://github.com/codex-team/codex/pull/60"},"issue":{"href":"https://api.github.com/repos/codex-team/codex/issues/60"},"comments":{"href":"https://api.github.com/repos/codex-team/codex/issues/60/comments"},"review_comments":{"href":"https://api.github.com/repos/codex-team/codex/pulls/60/comments"},"review_comment":{"href":"https://api.github.com/repos/codex-team/codex/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codex-team/codex/pulls/60/commits"},"statuses":{"href":"https://api.github.com/repos/codex-team/codex/statuses/f22fe93434ad7eeef10eb1f668dface3425f4cf3"}}}}