{"action":"created","comment":{"url":"https://api.github.com/repos/vijos/vj4/pulls/comments/79285562","id":79285562,"diff_hunk":"@@ -50,40 +51,83 @@ <h2 class=\"status_title\">{{ _(title) }}</h2>\n     {% endif %}\n     {% endfor %}\n     <div class=\"section\">\n+    {% if not tdocs %}\n+      {{ nothing.render('There are no contests...') }}\n+    {% else %}\n       <div class=\"section__header\">\n         <h1 class=\"section__title\">{{ _('All Contests') }}</h1>\n+        <div class=\"section__tools\">\n+          {{ _('Show') }}:\n+          <select class=\"inline select\">\n+            <option>All</option>\n+            <option>Only OI</option>\n+            <option>Only ACM/ICPC</option>\n+            <!-- TODO: dynamic list -->\n+          </select>\n+        </div>\n       </div>\n-      <div class=\"section__body\"><ol class=\"contest__list\">\n-      {% for row in tdocs|batch(3, '') %}\n-        <div class=\"row\">\n-        {% for tdoc in row %}\n-          <div class=\"medium-4 columns\">\n-          {% if not tdoc %}\n-            &nbsp;\n-          {% else %}\n-            <li class=\"contest__item\"><a href=\"{{ reverse_url('contest_detail', tid=tdoc['doc_id']) }}\" class=\"contest__card\">\n-              <div class=\"contest__card__image cci--{{ tdoc['doc_id'].binary[-1] % 16 }}\">\n-                <div class=\"contest__card__info\">\n-                  <h1>{{ tdoc['title'] }}</h1>\n-                  <ul>\n-                    <li>\n-                      <span class=\"icon icon-award\"></span>\n-                      {{ vj4.model.adaptor.contest.RULE_TEXTS[tdoc['rule']] }}\n-                    </li>\n-                    <li>\n-                      <span class=\"icon icon-calendar\"></span>\n-                      {{ datetime_span(tdoc['begin_at']) }}\n-                    </li>\n-                  </ul>\n-                </div>\n+      <ol class=\"contest__list\">\n+      {% for tdoc in tdocs %}\n+        <li class=\"contest__item contest-type--{{ vj4.constant.contest.RULE_ID[tdoc['rule']] }}\">\n+          <div class=\"media\">\n+            <div class=\"media__left medium\">\n+              <div class=\"contest__date numbox\">\n+                <div class=\"numbox__num large\">4</div>\n+                <div class=\"numbox__text\">2016.06</div>\n               </div>\n-            </li></a>\n-          {% endif %}\n+            </div>\n+            <div class=\"media__body medium\">\n+              <h1 class=\"contest__title\"><a href=\"{{ reverse_url('contest_detail', tid=tdoc['doc_id']) }}\" data-emoji-enabled>{{ tdoc['title'] }}</a></h1>\n+              <ul class=\"contest__supplementary\">\n+                <li>\n+                  <a href=\"#\" class=\"contest-type-tag\"><span class=\"icon icon-award\"></span>{{ vj4.constant.contest.RULE_TEXTS[tdoc['rule']] }}</a>","path":"vj4/ui/templates/contest_main.html","position":83,"original_position":83,"commit_id":"d726f11ba3e5f32a42aad79522f4ca689118421c","original_commit_id":"d726f11ba3e5f32a42aad79522f4ca689118421c","user":{"login":"breeswish","id":1916485,"avatar_url":"https://avatars.githubusercontent.com/u/1916485?v=3","gravatar_id":"","url":"https://api.github.com/users/breeswish","html_url":"https://github.com/breeswish","followers_url":"https://api.github.com/users/breeswish/followers","following_url":"https://api.github.com/users/breeswish/following{/other_user}","gists_url":"https://api.github.com/users/breeswish/gists{/gist_id}","starred_url":"https://api.github.com/users/breeswish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/breeswish/subscriptions","organizations_url":"https://api.github.com/users/breeswish/orgs","repos_url":"https://api.github.com/users/breeswish/repos","events_url":"https://api.github.com/users/breeswish/events{/privacy}","received_events_url":"https://api.github.com/users/breeswish/received_events","type":"User","site_admin":false},"body":"@twd2 When clicking links, a filter should be applied","created_at":"2016-09-17T14:54:21Z","updated_at":"2016-09-17T14:54:21Z","html_url":"https://github.com/vijos/vj4/pull/85#discussion_r79285562","pull_request_url":"https://api.github.com/repos/vijos/vj4/pulls/85","_links":{"self":{"href":"https://api.github.com/repos/vijos/vj4/pulls/comments/79285562"},"html":{"href":"https://github.com/vijos/vj4/pull/85#discussion_r79285562"},"pull_request":{"href":"https://api.github.com/repos/vijos/vj4/pulls/85"}}},"pull_request":{"url":"https://api.github.com/repos/vijos/vj4/pulls/85","id":85676080,"html_url":"https://github.com/vijos/vj4/pull/85","diff_url":"https://github.com/vijos/vj4/pull/85.diff","patch_url":"https://github.com/vijos/vj4/pull/85.patch","issue_url":"https://api.github.com/repos/vijos/vj4/issues/85","number":85,"state":"open","locked":false,"title":"WIP: improve contest ui","user":{"login":"breeswish","id":1916485,"avatar_url":"https://avatars.githubusercontent.com/u/1916485?v=3","gravatar_id":"","url":"https://api.github.com/users/breeswish","html_url":"https://github.com/breeswish","followers_url":"https://api.github.com/users/breeswish/followers","following_url":"https://api.github.com/users/breeswish/following{/other_user}","gists_url":"https://api.github.com/users/breeswish/gists{/gist_id}","starred_url":"https://api.github.com/users/breeswish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/breeswish/subscriptions","organizations_url":"https://api.github.com/users/breeswish/orgs","repos_url":"https://api.github.com/users/breeswish/repos","events_url":"https://api.github.com/users/breeswish/events{/privacy}","received_events_url":"https://api.github.com/users/breeswish/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-17T14:35:58Z","updated_at":"2016-09-17T14:54:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5806a66d40956a1640d52efd49947010784e0722","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/vijos/vj4/pulls/85/commits","review_comments_url":"https://api.github.com/repos/vijos/vj4/pulls/85/comments","review_comment_url":"https://api.github.com/repos/vijos/vj4/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vijos/vj4/issues/85/comments","statuses_url":"https://api.github.com/repos/vijos/vj4/statuses/d726f11ba3e5f32a42aad79522f4ca689118421c","head":{"label":"vijos:ui/improve-contest-ui","ref":"ui/improve-contest-ui","sha":"d726f11ba3e5f32a42aad79522f4ca689118421c","user":{"login":"vijos","id":4272237,"avatar_url":"https://avatars.githubusercontent.com/u/4272237?v=3","gravatar_id":"","url":"https://api.github.com/users/vijos","html_url":"https://github.com/vijos","followers_url":"https://api.github.com/users/vijos/followers","following_url":"https://api.github.com/users/vijos/following{/other_user}","gists_url":"https://api.github.com/users/vijos/gists{/gist_id}","starred_url":"https://api.github.com/users/vijos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vijos/subscriptions","organizations_url":"https://api.github.com/users/vijos/orgs","repos_url":"https://api.github.com/users/vijos/repos","events_url":"https://api.github.com/users/vijos/events{/privacy}","received_events_url":"https://api.github.com/users/vijos/received_events","type":"Organization","site_admin":false},"repo":{"id":58306028,"name":"vj4","full_name":"vijos/vj4","owner":{"login":"vijos","id":4272237,"avatar_url":"https://avatars.githubusercontent.com/u/4272237?v=3","gravatar_id":"","url":"https://api.github.com/users/vijos","html_url":"https://github.com/vijos","followers_url":"https://api.github.com/users/vijos/followers","following_url":"https://api.github.com/users/vijos/following{/other_user}","gists_url":"https://api.github.com/users/vijos/gists{/gist_id}","starred_url":"https://api.github.com/users/vijos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vijos/subscriptions","organizations_url":"https://api.github.com/users/vijos/orgs","repos_url":"https://api.github.com/users/vijos/repos","events_url":"https://api.github.com/users/vijos/events{/privacy}","received_events_url":"https://api.github.com/users/vijos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vijos/vj4","description":"Next generation Vijos. Built with asyncio on Python 3.5.","fork":false,"url":"https://api.github.com/repos/vijos/vj4","forks_url":"https://api.github.com/repos/vijos/vj4/forks","keys_url":"https://api.github.com/repos/vijos/vj4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vijos/vj4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vijos/vj4/teams","hooks_url":"https://api.github.com/repos/vijos/vj4/hooks","issue_events_url":"https://api.github.com/repos/vijos/vj4/issues/events{/number}","events_url":"https://api.github.com/repos/vijos/vj4/events","assignees_url":"https://api.github.com/repos/vijos/vj4/assignees{/user}","branches_url":"https://api.github.com/repos/vijos/vj4/branches{/branch}","tags_url":"https://api.github.com/repos/vijos/vj4/tags","blobs_url":"https://api.github.com/repos/vijos/vj4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vijos/vj4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vijos/vj4/git/refs{/sha}","trees_url":"https://api.github.com/repos/vijos/vj4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vijos/vj4/statuses/{sha}","languages_url":"https://api.github.com/repos/vijos/vj4/languages","stargazers_url":"https://api.github.com/repos/vijos/vj4/stargazers","contributors_url":"https://api.github.com/repos/vijos/vj4/contributors","subscribers_url":"https://api.github.com/repos/vijos/vj4/subscribers","subscription_url":"https://api.github.com/repos/vijos/vj4/subscription","commits_url":"https://api.github.com/repos/vijos/vj4/commits{/sha}","git_commits_url":"https://api.github.com/repos/vijos/vj4/git/commits{/sha}","comments_url":"https://api.github.com/repos/vijos/vj4/comments{/number}","issue_comment_url":"https://api.github.com/repos/vijos/vj4/issues/comments{/number}","contents_url":"https://api.github.com/repos/vijos/vj4/contents/{+path}","compare_url":"https://api.github.com/repos/vijos/vj4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vijos/vj4/merges","archive_url":"https://api.github.com/repos/vijos/vj4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vijos/vj4/downloads","issues_url":"https://api.github.com/repos/vijos/vj4/issues{/number}","pulls_url":"https://api.github.com/repos/vijos/vj4/pulls{/number}","milestones_url":"https://api.github.com/repos/vijos/vj4/milestones{/number}","notifications_url":"https://api.github.com/repos/vijos/vj4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vijos/vj4/labels{/name}","releases_url":"https://api.github.com/repos/vijos/vj4/releases{/id}","deployments_url":"https://api.github.com/repos/vijos/vj4/deployments","created_at":"2016-05-08T09:55:54Z","updated_at":"2016-09-16T17:57:08Z","pushed_at":"2016-09-17T14:48:16Z","git_url":"git://github.com/vijos/vj4.git","ssh_url":"git@github.com:vijos/vj4.git","clone_url":"https://github.com/vijos/vj4.git","svn_url":"https://github.com/vijos/vj4","homepage":"https://vijos.org","size":3745,"stargazers_count":34,"watchers_count":34,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":10,"forks":8,"open_issues":10,"watchers":34,"default_branch":"master"}},"base":{"label":"vijos:master","ref":"master","sha":"46adc10ae1fccabd10aeabd74d10ef3e336dfe40","user":{"login":"vijos","id":4272237,"avatar_url":"https://avatars.githubusercontent.com/u/4272237?v=3","gravatar_id":"","url":"https://api.github.com/users/vijos","html_url":"https://github.com/vijos","followers_url":"https://api.github.com/users/vijos/followers","following_url":"https://api.github.com/users/vijos/following{/other_user}","gists_url":"https://api.github.com/users/vijos/gists{/gist_id}","starred_url":"https://api.github.com/users/vijos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vijos/subscriptions","organizations_url":"https://api.github.com/users/vijos/orgs","repos_url":"https://api.github.com/users/vijos/repos","events_url":"https://api.github.com/users/vijos/events{/privacy}","received_events_url":"https://api.github.com/users/vijos/received_events","type":"Organization","site_admin":false},"repo":{"id":58306028,"name":"vj4","full_name":"vijos/vj4","owner":{"login":"vijos","id":4272237,"avatar_url":"https://avatars.githubusercontent.com/u/4272237?v=3","gravatar_id":"","url":"https://api.github.com/users/vijos","html_url":"https://github.com/vijos","followers_url":"https://api.github.com/users/vijos/followers","following_url":"https://api.github.com/users/vijos/following{/other_user}","gists_url":"https://api.github.com/users/vijos/gists{/gist_id}","starred_url":"https://api.github.com/users/vijos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vijos/subscriptions","organizations_url":"https://api.github.com/users/vijos/orgs","repos_url":"https://api.github.com/users/vijos/repos","events_url":"https://api.github.com/users/vijos/events{/privacy}","received_events_url":"https://api.github.com/users/vijos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vijos/vj4","description":"Next generation Vijos. Built with asyncio on Python 3.5.","fork":false,"url":"https://api.github.com/repos/vijos/vj4","forks_url":"https://api.github.com/repos/vijos/vj4/forks","keys_url":"https://api.github.com/repos/vijos/vj4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vijos/vj4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vijos/vj4/teams","hooks_url":"https://api.github.com/repos/vijos/vj4/hooks","issue_events_url":"https://api.github.com/repos/vijos/vj4/issues/events{/number}","events_url":"https://api.github.com/repos/vijos/vj4/events","assignees_url":"https://api.github.com/repos/vijos/vj4/assignees{/user}","branches_url":"https://api.github.com/repos/vijos/vj4/branches{/branch}","tags_url":"https://api.github.com/repos/vijos/vj4/tags","blobs_url":"https://api.github.com/repos/vijos/vj4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vijos/vj4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vijos/vj4/git/refs{/sha}","trees_url":"https://api.github.com/repos/vijos/vj4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vijos/vj4/statuses/{sha}","languages_url":"https://api.github.com/repos/vijos/vj4/languages","stargazers_url":"https://api.github.com/repos/vijos/vj4/stargazers","contributors_url":"https://api.github.com/repos/vijos/vj4/contributors","subscribers_url":"https://api.github.com/repos/vijos/vj4/subscribers","subscription_url":"https://api.github.com/repos/vijos/vj4/subscription","commits_url":"https://api.github.com/repos/vijos/vj4/commits{/sha}","git_commits_url":"https://api.github.com/repos/vijos/vj4/git/commits{/sha}","comments_url":"https://api.github.com/repos/vijos/vj4/comments{/number}","issue_comment_url":"https://api.github.com/repos/vijos/vj4/issues/comments{/number}","contents_url":"https://api.github.com/repos/vijos/vj4/contents/{+path}","compare_url":"https://api.github.com/repos/vijos/vj4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vijos/vj4/merges","archive_url":"https://api.github.com/repos/vijos/vj4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vijos/vj4/downloads","issues_url":"https://api.github.com/repos/vijos/vj4/issues{/number}","pulls_url":"https://api.github.com/repos/vijos/vj4/pulls{/number}","milestones_url":"https://api.github.com/repos/vijos/vj4/milestones{/number}","notifications_url":"https://api.github.com/repos/vijos/vj4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vijos/vj4/labels{/name}","releases_url":"https://api.github.com/repos/vijos/vj4/releases{/id}","deployments_url":"https://api.github.com/repos/vijos/vj4/deployments","created_at":"2016-05-08T09:55:54Z","updated_at":"2016-09-16T17:57:08Z","pushed_at":"2016-09-17T14:48:16Z","git_url":"git://github.com/vijos/vj4.git","ssh_url":"git@github.com:vijos/vj4.git","clone_url":"https://github.com/vijos/vj4.git","svn_url":"https://github.com/vijos/vj4","homepage":"https://vijos.org","size":3745,"stargazers_count":34,"watchers_count":34,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":10,"forks":8,"open_issues":10,"watchers":34,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vijos/vj4/pulls/85"},"html":{"href":"https://github.com/vijos/vj4/pull/85"},"issue":{"href":"https://api.github.com/repos/vijos/vj4/issues/85"},"comments":{"href":"https://api.github.com/repos/vijos/vj4/issues/85/comments"},"review_comments":{"href":"https://api.github.com/repos/vijos/vj4/pulls/85/comments"},"review_comment":{"href":"https://api.github.com/repos/vijos/vj4/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vijos/vj4/pulls/85/commits"},"statuses":{"href":"https://api.github.com/repos/vijos/vj4/statuses/d726f11ba3e5f32a42aad79522f4ca689118421c"}}}}
{"actor":{"display_login":"breeswish"}}