{"action":"created","comment":{"url":"https://api.github.com/repos/indico/indico/pulls/comments/69114301","id":69114301,"diff_hunk":"@@ -0,0 +1,121 @@\n+<div class=\"category-container\">\n+    <div class=\"category-header\">\n+        <div id=\"category-toolbar\" class=\"toolbar right\">\n+            <div class=\"group\">\n+                {% if not category.is_root %}\n+                    <a class=\"i-button icon-arrow-up\" href=\"{{ category.parent.url }}\"> Parent category </a>\n+                {% endif %}\n+                {% if category.events %}\n+                    <a href=\"#\" id=\"exportIcal{{ category.id }}\"\n+                       class=\"i-button icon-calendar arrow exportIcal\"\n+                       title=\"{% trans %}Export to scheduling tool{% endtrans %}\"\n+                       data-id=\"{{ category.id }}\"></a>\n+                    {% with item=category, ics_url=url_for('categories.export_ical', category) -%}\n+                        {% include 'categories/category_export_ical.html' %}\n+                    {%- endwith %}\n+                {% endif %}\n+                <a class=\"i-button icon-eye arrow js-dropdown\"\n+                   title=\"{% trans %}View{% endtrans %}\"\n+                   data-toggle=\"dropdown\"></a>\n+                <ul class=\"dropdown\">\n+                    <li>\n+                        <a href=\"{# TODO url_for('.today', category) #}\">{% trans %}Today's events{% endtrans %}</a>\n+                    </li>\n+                    <li>\n+                        <a href=\"{# TODO url_for('.week', category) #}\">{% trans %}Week's events{% endtrans %}</a>\n+                    </li>\n+                    <li>\n+                        <a href=\"{# TODO url_for('.calendar', category) #}\">{% trans %}Calendar{% endtrans %}</a>\n+                    </li>\n+                    <li>\n+                        <a href=\"{# TODO url_for('.map', category) #}\">{% trans %}Category map{% endtrans %}</a>\n+                    </li>\n+                    <li>\n+                        <a href=\"{{ url_for('.statistics', category) }}\">{% trans %}Category statistics{% endtrans %}</a>\n+                    </li>\n+                </ul>\n+                <a class=\"i-button icon-plus arrow js-dropdown\"\n+                   title=\"{% trans %}Create new event{% endtrans %}\"\n+                   data-toggle=\"dropdown\"></a>\n+                <ul class=\"dropdown\">\n+                    <li>\n+                        <a href=\"{{ url_for('event_creation.conferenceCreation', event_type='lecture') }}\">\n+                            {% trans %}Lecture{% endtrans %}\n+                        </a>\n+                    </li>\n+                    <li>\n+                        <a href=\"{{ url_for('event_creation.conferenceCreation', event_type='meeting') }}\">\n+                            {% trans %}Meeting{% endtrans %}\n+                        </a>\n+                    </li>\n+                    <li>\n+                        <a href=\"{{ url_for('event_creation.conferenceCreation', event_type='conference') }}\">\n+                            {% trans %}Conference{% endtrans %}\n+                        </a>\n+                    </li>\n+                </ul>\n+                {% if category.can_manage(session.user) %}\n+                    <a class=\"i-button icon-edit arrow js-dropdown\"\n+                       title=\"{% trans %}Management options{% endtrans %}\"\n+                       data-toggle=\"dropdown\"></a>\n+                    <ul class=\"dropdown\">\n+                        <li>\n+                            <a href=\"{{ url_for('categories.manage_content', category) }}\">\n+                                {% trans %}Edit category{% endtrans %}\n+                            </a>\n+                        </li>\n+                        <li>\n+                            <a href=\"#\"\n+                               data-ajax-dialog\n+                               data-href=\"{{ url_for('.create_subcategory', category) }}\"\n+                               data-title=\"{% trans %}New category{% endtrans %}\">\n+                                {% trans %}Add subcategory{% endtrans %}\n+                            </a>\n+                        </li>\n+                    </ul>\n+                {% endif %}\n+            </div>\n+            {% if session.user and not category.is_root %}\n+                <div class=\"group\">\n+                    <button type=\"button\"\n+                            class=\"i-button fav-button icon-only icon-bookmark {{ 'enabled' if category in session.user.favorite_categories }}\"\n+                            data-href=\"{{ url_for('users.user_favorites_category_api', category) }}\"></button>\n+                </div>\n+            {% endif %}\n+        </div>\n+\n+        {% if category.is_root  or category.attachment_count or category.can_manage(session.user) %}","path":"indico/modules/categories/templates/display/base.html","position":87,"original_position":87,"commit_id":"1d17d572f38526908b35edcce0206e89af68ea07","original_commit_id":"1d17d572f38526908b35edcce0206e89af68ea07","user":{"login":"ThiefMaster","id":179599,"avatar_url":"https://avatars.githubusercontent.com/u/179599?v=3","gravatar_id":"","url":"https://api.github.com/users/ThiefMaster","html_url":"https://github.com/ThiefMaster","followers_url":"https://api.github.com/users/ThiefMaster/followers","following_url":"https://api.github.com/users/ThiefMaster/following{/other_user}","gists_url":"https://api.github.com/users/ThiefMaster/gists{/gist_id}","starred_url":"https://api.github.com/users/ThiefMaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThiefMaster/subscriptions","organizations_url":"https://api.github.com/users/ThiefMaster/orgs","repos_url":"https://api.github.com/users/ThiefMaster/repos","events_url":"https://api.github.com/users/ThiefMaster/events{/privacy}","received_events_url":"https://api.github.com/users/ThiefMaster/received_events","type":"User","site_admin":false},"body":"You can `undefer('attachment_count')` when querying the category","created_at":"2016-06-30T11:12:39Z","updated_at":"2016-06-30T11:12:39Z","html_url":"https://github.com/indico/indico/pull/2494#discussion_r69114301","pull_request_url":"https://api.github.com/repos/indico/indico/pulls/2494","_links":{"self":{"href":"https://api.github.com/repos/indico/indico/pulls/comments/69114301"},"html":{"href":"https://github.com/indico/indico/pull/2494#discussion_r69114301"},"pull_request":{"href":"https://api.github.com/repos/indico/indico/pulls/2494"}}},"pull_request":{"url":"https://api.github.com/repos/indico/indico/pulls/2494","id":75780001,"html_url":"https://github.com/indico/indico/pull/2494","diff_url":"https://github.com/indico/indico/pull/2494.diff","patch_url":"https://github.com/indico/indico/pull/2494.patch","issue_url":"https://api.github.com/repos/indico/indico/issues/2494","number":2494,"state":"open","locked":false,"title":"Render category display page with Jinja","user":{"login":"florv","id":2007047,"avatar_url":"https://avatars.githubusercontent.com/u/2007047?v=3","gravatar_id":"","url":"https://api.github.com/users/florv","html_url":"https://github.com/florv","followers_url":"https://api.github.com/users/florv/followers","following_url":"https://api.github.com/users/florv/following{/other_user}","gists_url":"https://api.github.com/users/florv/gists{/gist_id}","starred_url":"https://api.github.com/users/florv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/florv/subscriptions","organizations_url":"https://api.github.com/users/florv/orgs","repos_url":"https://api.github.com/users/florv/repos","events_url":"https://api.github.com/users/florv/events{/privacy}","received_events_url":"https://api.github.com/users/florv/received_events","type":"User","site_admin":false},"body":"This includes only the header and the subcatogories and events list.","created_at":"2016-06-30T08:37:50Z","updated_at":"2016-06-30T11:12:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d8173be7ba3d51779fb801fb0d5def6e4a69d6fb","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/indico/indico/pulls/2494/commits","review_comments_url":"https://api.github.com/repos/indico/indico/pulls/2494/comments","review_comment_url":"https://api.github.com/repos/indico/indico/pulls/comments{/number}","comments_url":"https://api.github.com/repos/indico/indico/issues/2494/comments","statuses_url":"https://api.github.com/repos/indico/indico/statuses/1d17d572f38526908b35edcce0206e89af68ea07","head":{"label":"florv:jinja","ref":"jinja","sha":"1d17d572f38526908b35edcce0206e89af68ea07","user":{"login":"florv","id":2007047,"avatar_url":"https://avatars.githubusercontent.com/u/2007047?v=3","gravatar_id":"","url":"https://api.github.com/users/florv","html_url":"https://github.com/florv","followers_url":"https://api.github.com/users/florv/followers","following_url":"https://api.github.com/users/florv/following{/other_user}","gists_url":"https://api.github.com/users/florv/gists{/gist_id}","starred_url":"https://api.github.com/users/florv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/florv/subscriptions","organizations_url":"https://api.github.com/users/florv/orgs","repos_url":"https://api.github.com/users/florv/repos","events_url":"https://api.github.com/users/florv/events{/privacy}","received_events_url":"https://api.github.com/users/florv/received_events","type":"User","site_admin":false},"repo":{"id":50827127,"name":"indico","full_name":"florv/indico","owner":{"login":"florv","id":2007047,"avatar_url":"https://avatars.githubusercontent.com/u/2007047?v=3","gravatar_id":"","url":"https://api.github.com/users/florv","html_url":"https://github.com/florv","followers_url":"https://api.github.com/users/florv/followers","following_url":"https://api.github.com/users/florv/following{/other_user}","gists_url":"https://api.github.com/users/florv/gists{/gist_id}","starred_url":"https://api.github.com/users/florv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/florv/subscriptions","organizations_url":"https://api.github.com/users/florv/orgs","repos_url":"https://api.github.com/users/florv/repos","events_url":"https://api.github.com/users/florv/events{/privacy}","received_events_url":"https://api.github.com/users/florv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/florv/indico","description":"The Indico Project","fork":true,"url":"https://api.github.com/repos/florv/indico","forks_url":"https://api.github.com/repos/florv/indico/forks","keys_url":"https://api.github.com/repos/florv/indico/keys{/key_id}","collaborators_url":"https://api.github.com/repos/florv/indico/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/florv/indico/teams","hooks_url":"https://api.github.com/repos/florv/indico/hooks","issue_events_url":"https://api.github.com/repos/florv/indico/issues/events{/number}","events_url":"https://api.github.com/repos/florv/indico/events","assignees_url":"https://api.github.com/repos/florv/indico/assignees{/user}","branches_url":"https://api.github.com/repos/florv/indico/branches{/branch}","tags_url":"https://api.github.com/repos/florv/indico/tags","blobs_url":"https://api.github.com/repos/florv/indico/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/florv/indico/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/florv/indico/git/refs{/sha}","trees_url":"https://api.github.com/repos/florv/indico/git/trees{/sha}","statuses_url":"https://api.github.com/repos/florv/indico/statuses/{sha}","languages_url":"https://api.github.com/repos/florv/indico/languages","stargazers_url":"https://api.github.com/repos/florv/indico/stargazers","contributors_url":"https://api.github.com/repos/florv/indico/contributors","subscribers_url":"https://api.github.com/repos/florv/indico/subscribers","subscription_url":"https://api.github.com/repos/florv/indico/subscription","commits_url":"https://api.github.com/repos/florv/indico/commits{/sha}","git_commits_url":"https://api.github.com/repos/florv/indico/git/commits{/sha}","comments_url":"https://api.github.com/repos/florv/indico/comments{/number}","issue_comment_url":"https://api.github.com/repos/florv/indico/issues/comments{/number}","contents_url":"https://api.github.com/repos/florv/indico/contents/{+path}","compare_url":"https://api.github.com/repos/florv/indico/compare/{base}...{head}","merges_url":"https://api.github.com/repos/florv/indico/merges","archive_url":"https://api.github.com/repos/florv/indico/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/florv/indico/downloads","issues_url":"https://api.github.com/repos/florv/indico/issues{/number}","pulls_url":"https://api.github.com/repos/florv/indico/pulls{/number}","milestones_url":"https://api.github.com/repos/florv/indico/milestones{/number}","notifications_url":"https://api.github.com/repos/florv/indico/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/florv/indico/labels{/name}","releases_url":"https://api.github.com/repos/florv/indico/releases{/id}","deployments_url":"https://api.github.com/repos/florv/indico/deployments","created_at":"2016-02-01T08:57:59Z","updated_at":"2016-02-01T08:58:04Z","pushed_at":"2016-06-30T09:04:19Z","git_url":"git://github.com/florv/indico.git","ssh_url":"git@github.com:florv/indico.git","clone_url":"https://github.com/florv/indico.git","svn_url":"https://github.com/florv/indico","homepage":"http://indico-software.org","size":188075,"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":"indico:devel","ref":"devel","sha":"b600f821f62a801f9074e4d06a426160536ba786","user":{"login":"indico","id":715236,"avatar_url":"https://avatars.githubusercontent.com/u/715236?v=3","gravatar_id":"","url":"https://api.github.com/users/indico","html_url":"https://github.com/indico","followers_url":"https://api.github.com/users/indico/followers","following_url":"https://api.github.com/users/indico/following{/other_user}","gists_url":"https://api.github.com/users/indico/gists{/gist_id}","starred_url":"https://api.github.com/users/indico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indico/subscriptions","organizations_url":"https://api.github.com/users/indico/orgs","repos_url":"https://api.github.com/users/indico/repos","events_url":"https://api.github.com/users/indico/events{/privacy}","received_events_url":"https://api.github.com/users/indico/received_events","type":"Organization","site_admin":false},"repo":{"id":2113067,"name":"indico","full_name":"indico/indico","owner":{"login":"indico","id":715236,"avatar_url":"https://avatars.githubusercontent.com/u/715236?v=3","gravatar_id":"","url":"https://api.github.com/users/indico","html_url":"https://github.com/indico","followers_url":"https://api.github.com/users/indico/followers","following_url":"https://api.github.com/users/indico/following{/other_user}","gists_url":"https://api.github.com/users/indico/gists{/gist_id}","starred_url":"https://api.github.com/users/indico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indico/subscriptions","organizations_url":"https://api.github.com/users/indico/orgs","repos_url":"https://api.github.com/users/indico/repos","events_url":"https://api.github.com/users/indico/events{/privacy}","received_events_url":"https://api.github.com/users/indico/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/indico/indico","description":"The Indico Project","fork":false,"url":"https://api.github.com/repos/indico/indico","forks_url":"https://api.github.com/repos/indico/indico/forks","keys_url":"https://api.github.com/repos/indico/indico/keys{/key_id}","collaborators_url":"https://api.github.com/repos/indico/indico/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/indico/indico/teams","hooks_url":"https://api.github.com/repos/indico/indico/hooks","issue_events_url":"https://api.github.com/repos/indico/indico/issues/events{/number}","events_url":"https://api.github.com/repos/indico/indico/events","assignees_url":"https://api.github.com/repos/indico/indico/assignees{/user}","branches_url":"https://api.github.com/repos/indico/indico/branches{/branch}","tags_url":"https://api.github.com/repos/indico/indico/tags","blobs_url":"https://api.github.com/repos/indico/indico/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/indico/indico/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/indico/indico/git/refs{/sha}","trees_url":"https://api.github.com/repos/indico/indico/git/trees{/sha}","statuses_url":"https://api.github.com/repos/indico/indico/statuses/{sha}","languages_url":"https://api.github.com/repos/indico/indico/languages","stargazers_url":"https://api.github.com/repos/indico/indico/stargazers","contributors_url":"https://api.github.com/repos/indico/indico/contributors","subscribers_url":"https://api.github.com/repos/indico/indico/subscribers","subscription_url":"https://api.github.com/repos/indico/indico/subscription","commits_url":"https://api.github.com/repos/indico/indico/commits{/sha}","git_commits_url":"https://api.github.com/repos/indico/indico/git/commits{/sha}","comments_url":"https://api.github.com/repos/indico/indico/comments{/number}","issue_comment_url":"https://api.github.com/repos/indico/indico/issues/comments{/number}","contents_url":"https://api.github.com/repos/indico/indico/contents/{+path}","compare_url":"https://api.github.com/repos/indico/indico/compare/{base}...{head}","merges_url":"https://api.github.com/repos/indico/indico/merges","archive_url":"https://api.github.com/repos/indico/indico/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/indico/indico/downloads","issues_url":"https://api.github.com/repos/indico/indico/issues{/number}","pulls_url":"https://api.github.com/repos/indico/indico/pulls{/number}","milestones_url":"https://api.github.com/repos/indico/indico/milestones{/number}","notifications_url":"https://api.github.com/repos/indico/indico/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/indico/indico/labels{/name}","releases_url":"https://api.github.com/repos/indico/indico/releases{/id}","deployments_url":"https://api.github.com/repos/indico/indico/deployments","created_at":"2011-07-27T13:56:30Z","updated_at":"2016-06-24T19:21:55Z","pushed_at":"2016-06-30T09:46:30Z","git_url":"git://github.com/indico/indico.git","ssh_url":"git@github.com:indico/indico.git","clone_url":"https://github.com/indico/indico.git","svn_url":"https://github.com/indico/indico","homepage":"http://indico-software.org","size":200171,"stargazers_count":148,"watchers_count":148,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":73,"mirror_url":null,"open_issues_count":628,"forks":73,"open_issues":628,"watchers":148,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/indico/indico/pulls/2494"},"html":{"href":"https://github.com/indico/indico/pull/2494"},"issue":{"href":"https://api.github.com/repos/indico/indico/issues/2494"},"comments":{"href":"https://api.github.com/repos/indico/indico/issues/2494/comments"},"review_comments":{"href":"https://api.github.com/repos/indico/indico/pulls/2494/comments"},"review_comment":{"href":"https://api.github.com/repos/indico/indico/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/indico/indico/pulls/2494/commits"},"statuses":{"href":"https://api.github.com/repos/indico/indico/statuses/1d17d572f38526908b35edcce0206e89af68ea07"}}}}
{"actor":{"display_login":"ThiefMaster"}}