{"action":"created","comment":{"url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/comments/48619851","id":48619851,"diff_hunk":"@@ -0,0 +1,75 @@\n+{% load i18n %}\n+{% load hq_shared_tags %}\n+<ul class=\"nav nav-list nav-hq-sidebar\">\n+    {% if display_ua %}\n+        {% if request.user.is_superuser %}\n+            <li{% if not include_unapproved %} class=\"active\"{% endif %}><a href=\"{% url \"appstore\" %}\">{% trans \"Approved\" %}</a></li>\n+            <li{% if include_unapproved %} class=\"active\"{% endif %}><a href=\"{% url \"appstore\" %}?is_approved=false\">{% trans \"Unapproved\" %}</a></li>\n+        {% else %}\n+            <li{% if not include_unapproved and not search_query and not filter_by and not project %} class=\"active\"{% endif %}><a href=\"{% url \"appstore\" %}\">{% trans \"All\" %}</a></li>\n+        {% endif %}\n+        <li class=\"nav-divider\"></li>\n+    {% endif %}\n+\n+    <li class=\"nav-input\">\n+        <button class=\"btn btn-primary\" id=\"update-facets\" data-prefix=\"{{ facet_prefix }}\" data-params=\"{{ persistent_params }}\">{% trans \"Apply\" %}</button>\n+    </li>\n+    <li class=\"nav-input\">\n+        <form action=\"{{ search_url }}\" method=\"get\" class=\"form-search\" id=\"facet-search\">\n+            <input type=\"search\" name=\"{{ search_name }}\" placeholder=\"Search for {{ search_for }}\" value=\"{{ search_query }}\" class=\"search-query form-control\" />\n+        </form>\n+    </li>\n+</ul>\n+<ul class=\"nav nav-list nav-hq-sidebar\">\n+{% for facet_group, expanded, facets in facet_map %}\n+\n+    {% if grouped_facets and facet_group %}\n+    <li>\n+        <a class=\"facet-group-btn\" data-name=\"{{ facet_group }}\" href=\"#\">\n+            <i class=\"facet-group-chevron fa fa-angle-double-{% if expanded %}down{% else %}right{% endif %}\"></i>\n+            <strong>{{ facet_group }}</strong>\n+        </a>\n+    </li>\n+    {% endif %}\n+\n+    <li {% if grouped_facets %}style=\"margin-left: 1em\" {% endif %}class=\"facet-group {% if not expanded %}hide{% endif %}\" data-show=\"{{ expanded|JSON }}\" data-group-name=\"{{ facet_group }}\">\n+    {% for f in facets %}\n+        <a class=\"facet-btn\" href=\"#\" data-sortable=\"{{ f.facet }}\" data-show=\"{{ f.expanded|JSON }}\">\n+            <strong>\n+            {% if f.choices %}<i class=\"facet-chevron fa fa-angle-double-{% if f.expanded %}down{% else %}right{% endif %}\"></i>{% endif %}\n+                {{ f.name|default:f.facet }}\n+            </strong>\n+            {% ifequal f.name 'License' %}\n+                <a id=\"license-info-label\" target=\"_blank\" href=\"http://creativecommons.org/licenses/#licenses\">\n+                    <i class=\"fa fa-info-circle\"></i>\n+                </a>\n+            {% endifequal %}\n+        </a>\n+\n+        <ul class=\"nav nav-list facet-nav\">\n+        {% for choice in f.choices %}\n+            <li class=\"sortable sortable-{{ f.facet }}\n+                {% if not f.expanded or forloop.counter > 5 and choices|length > 6 %}\n+                    hide\n+                {% endif %}\n+                \" data-name=\"{{ f.facet }}\">\n+                <div class=\"row\">\n+                    <div class=\"col-sm-10\">\n+                        <label for=\"s-{{ f.facet }}-{{ choice.name }}\">\n+                            <span>{{ choice.display|default:choice.name }} ({{ choice.count }})</span>\n+                        </label>\n+                    </div>\n+                    <div class=\"col-sm-2\"><input id=\"s-{{ f.facet }}-{{ choice.name }}\" name=\"{{ choice.name|urlencode }}\" class=\"facet-checkbox\" type=\"checkbox\" {% if choice.active %}checked=checked{% endif %}/></div>\n+                </div>\n+\n+\n+            </li>\n+        {% endfor %}\n+        {% if f.choices|length > 6 and f.expanded %}\n+            <li style=\"list-style-type: none;\"><a class=\"more-sortable-button\" data-sortable=\"{{ f.facet }}\" href=\"#\">{% trans \"More...\" %}</a></li>","path":"corehq/apps/appstore/templates/appstore/partials/bootstrap3/sidebar.html","position":69,"original_position":69,"commit_id":"c32847211d1e45a73c11ae87c48bb72840ac4d1f","original_commit_id":"c32847211d1e45a73c11ae87c48bb72840ac4d1f","user":{"login":"biyeun","id":716573,"avatar_url":"https://avatars.githubusercontent.com/u/716573?v=3","gravatar_id":"","url":"https://api.github.com/users/biyeun","html_url":"https://github.com/biyeun","followers_url":"https://api.github.com/users/biyeun/followers","following_url":"https://api.github.com/users/biyeun/following{/other_user}","gists_url":"https://api.github.com/users/biyeun/gists{/gist_id}","starred_url":"https://api.github.com/users/biyeun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biyeun/subscriptions","organizations_url":"https://api.github.com/users/biyeun/orgs","repos_url":"https://api.github.com/users/biyeun/repos","events_url":"https://api.github.com/users/biyeun/events{/privacy}","received_events_url":"https://api.github.com/users/biyeun/received_events","type":"User","site_admin":false},"body":"a lot of that came from the copy over I'll remove it","created_at":"2015-12-30T17:58:52Z","updated_at":"2015-12-30T17:58:52Z","html_url":"https://github.com/dimagi/commcare-hq/pull/9735#discussion_r48619851","pull_request_url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/9735","_links":{"self":{"href":"https://api.github.com/repos/dimagi/commcare-hq/pulls/comments/48619851"},"html":{"href":"https://github.com/dimagi/commcare-hq/pull/9735#discussion_r48619851"},"pull_request":{"href":"https://api.github.com/repos/dimagi/commcare-hq/pulls/9735"}}},"pull_request":{"url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/9735","id":54768733,"html_url":"https://github.com/dimagi/commcare-hq/pull/9735","diff_url":"https://github.com/dimagi/commcare-hq/pull/9735.diff","patch_url":"https://github.com/dimagi/commcare-hq/pull/9735.patch","issue_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/9735","number":9735,"state":"open","locked":false,"title":"Migrate Domain Faceted Report to Bootstrap 3","user":{"login":"biyeun","id":716573,"avatar_url":"https://avatars.githubusercontent.com/u/716573?v=3","gravatar_id":"","url":"https://api.github.com/users/biyeun","html_url":"https://github.com/biyeun","followers_url":"https://api.github.com/users/biyeun/followers","following_url":"https://api.github.com/users/biyeun/following{/other_user}","gists_url":"https://api.github.com/users/biyeun/gists{/gist_id}","starred_url":"https://api.github.com/users/biyeun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biyeun/subscriptions","organizations_url":"https://api.github.com/users/biyeun/orgs","repos_url":"https://api.github.com/users/biyeun/repos","events_url":"https://api.github.com/users/biyeun/events{/privacy}","received_events_url":"https://api.github.com/users/biyeun/received_events","type":"User","site_admin":false},"body":"presenting a report, in the terrible old framework, migrated to bootstrap 3 with minimal refactoring.\r\n@orangejenny @sravfeyn @czue @benrudolph \r\n\r\ncc @dimagi/product (hehe)\r\n\r\n<img width=\"1194\" alt=\"screen shot 2015-12-29 at 7 00 11 pm\" src=\"https://cloud.githubusercontent.com/assets/716573/12044437/38cfdc12-ae5f-11e5-8d0e-a9f2c6b6cb1b.png\">\r\n<img width=\"1227\" alt=\"screen shot 2015-12-29 at 7 00 05 pm\" src=\"https://cloud.githubusercontent.com/assets/716573/12044439/38d3c58e-ae5f-11e5-93f9-4ae07fe5ae66.png\">\r\n<img width=\"341\" alt=\"screen shot 2015-12-29 at 6 59 56 pm\" src=\"https://cloud.githubusercontent.com/assets/716573/12044438/38d27238-ae5f-11e5-9d62-0134eb34b454.png\">\r\n","created_at":"2015-12-30T00:07:35Z","updated_at":"2015-12-30T17:58:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b1bb06616ed45ca317de55ba851e7f8a97b2d6f2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/9735/commits","review_comments_url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/9735/comments","review_comment_url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/9735/comments","statuses_url":"https://api.github.com/repos/dimagi/commcare-hq/statuses/c32847211d1e45a73c11ae87c48bb72840ac4d1f","head":{"label":"dimagi:hqadmin-b3-migrate","ref":"hqadmin-b3-migrate","sha":"c32847211d1e45a73c11ae87c48bb72840ac4d1f","user":{"login":"dimagi","id":94514,"avatar_url":"https://avatars.githubusercontent.com/u/94514?v=3","gravatar_id":"","url":"https://api.github.com/users/dimagi","html_url":"https://github.com/dimagi","followers_url":"https://api.github.com/users/dimagi/followers","following_url":"https://api.github.com/users/dimagi/following{/other_user}","gists_url":"https://api.github.com/users/dimagi/gists{/gist_id}","starred_url":"https://api.github.com/users/dimagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimagi/subscriptions","organizations_url":"https://api.github.com/users/dimagi/orgs","repos_url":"https://api.github.com/users/dimagi/repos","events_url":"https://api.github.com/users/dimagi/events{/privacy}","received_events_url":"https://api.github.com/users/dimagi/received_events","type":"Organization","site_admin":false},"repo":{"id":247278,"name":"commcare-hq","full_name":"dimagi/commcare-hq","owner":{"login":"dimagi","id":94514,"avatar_url":"https://avatars.githubusercontent.com/u/94514?v=3","gravatar_id":"","url":"https://api.github.com/users/dimagi","html_url":"https://github.com/dimagi","followers_url":"https://api.github.com/users/dimagi/followers","following_url":"https://api.github.com/users/dimagi/following{/other_user}","gists_url":"https://api.github.com/users/dimagi/gists{/gist_id}","starred_url":"https://api.github.com/users/dimagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimagi/subscriptions","organizations_url":"https://api.github.com/users/dimagi/orgs","repos_url":"https://api.github.com/users/dimagi/repos","events_url":"https://api.github.com/users/dimagi/events{/privacy}","received_events_url":"https://api.github.com/users/dimagi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dimagi/commcare-hq","description":"A server-side tool to help manage community health workers, written in Django","fork":false,"url":"https://api.github.com/repos/dimagi/commcare-hq","forks_url":"https://api.github.com/repos/dimagi/commcare-hq/forks","keys_url":"https://api.github.com/repos/dimagi/commcare-hq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dimagi/commcare-hq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dimagi/commcare-hq/teams","hooks_url":"https://api.github.com/repos/dimagi/commcare-hq/hooks","issue_events_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/events{/number}","events_url":"https://api.github.com/repos/dimagi/commcare-hq/events","assignees_url":"https://api.github.com/repos/dimagi/commcare-hq/assignees{/user}","branches_url":"https://api.github.com/repos/dimagi/commcare-hq/branches{/branch}","tags_url":"https://api.github.com/repos/dimagi/commcare-hq/tags","blobs_url":"https://api.github.com/repos/dimagi/commcare-hq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dimagi/commcare-hq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dimagi/commcare-hq/git/refs{/sha}","trees_url":"https://api.github.com/repos/dimagi/commcare-hq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dimagi/commcare-hq/statuses/{sha}","languages_url":"https://api.github.com/repos/dimagi/commcare-hq/languages","stargazers_url":"https://api.github.com/repos/dimagi/commcare-hq/stargazers","contributors_url":"https://api.github.com/repos/dimagi/commcare-hq/contributors","subscribers_url":"https://api.github.com/repos/dimagi/commcare-hq/subscribers","subscription_url":"https://api.github.com/repos/dimagi/commcare-hq/subscription","commits_url":"https://api.github.com/repos/dimagi/commcare-hq/commits{/sha}","git_commits_url":"https://api.github.com/repos/dimagi/commcare-hq/git/commits{/sha}","comments_url":"https://api.github.com/repos/dimagi/commcare-hq/comments{/number}","issue_comment_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/comments{/number}","contents_url":"https://api.github.com/repos/dimagi/commcare-hq/contents/{+path}","compare_url":"https://api.github.com/repos/dimagi/commcare-hq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dimagi/commcare-hq/merges","archive_url":"https://api.github.com/repos/dimagi/commcare-hq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dimagi/commcare-hq/downloads","issues_url":"https://api.github.com/repos/dimagi/commcare-hq/issues{/number}","pulls_url":"https://api.github.com/repos/dimagi/commcare-hq/pulls{/number}","milestones_url":"https://api.github.com/repos/dimagi/commcare-hq/milestones{/number}","notifications_url":"https://api.github.com/repos/dimagi/commcare-hq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dimagi/commcare-hq/labels{/name}","releases_url":"https://api.github.com/repos/dimagi/commcare-hq/releases{/id}","created_at":"2009-07-09T17:00:07Z","updated_at":"2015-12-15T18:32:41Z","pushed_at":"2015-12-30T17:53:10Z","git_url":"git://github.com/dimagi/commcare-hq.git","ssh_url":"git@github.com:dimagi/commcare-hq.git","clone_url":"https://github.com/dimagi/commcare-hq.git","svn_url":"https://github.com/dimagi/commcare-hq","homepage":"http://www.commcarehq.org","size":242329,"stargazers_count":57,"watchers_count":57,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":64,"mirror_url":null,"open_issues_count":65,"forks":64,"open_issues":65,"watchers":57,"default_branch":"master"}},"base":{"label":"dimagi:master","ref":"master","sha":"71da0bbf5c2451fdb058c06da8687162d3a902c4","user":{"login":"dimagi","id":94514,"avatar_url":"https://avatars.githubusercontent.com/u/94514?v=3","gravatar_id":"","url":"https://api.github.com/users/dimagi","html_url":"https://github.com/dimagi","followers_url":"https://api.github.com/users/dimagi/followers","following_url":"https://api.github.com/users/dimagi/following{/other_user}","gists_url":"https://api.github.com/users/dimagi/gists{/gist_id}","starred_url":"https://api.github.com/users/dimagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimagi/subscriptions","organizations_url":"https://api.github.com/users/dimagi/orgs","repos_url":"https://api.github.com/users/dimagi/repos","events_url":"https://api.github.com/users/dimagi/events{/privacy}","received_events_url":"https://api.github.com/users/dimagi/received_events","type":"Organization","site_admin":false},"repo":{"id":247278,"name":"commcare-hq","full_name":"dimagi/commcare-hq","owner":{"login":"dimagi","id":94514,"avatar_url":"https://avatars.githubusercontent.com/u/94514?v=3","gravatar_id":"","url":"https://api.github.com/users/dimagi","html_url":"https://github.com/dimagi","followers_url":"https://api.github.com/users/dimagi/followers","following_url":"https://api.github.com/users/dimagi/following{/other_user}","gists_url":"https://api.github.com/users/dimagi/gists{/gist_id}","starred_url":"https://api.github.com/users/dimagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimagi/subscriptions","organizations_url":"https://api.github.com/users/dimagi/orgs","repos_url":"https://api.github.com/users/dimagi/repos","events_url":"https://api.github.com/users/dimagi/events{/privacy}","received_events_url":"https://api.github.com/users/dimagi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dimagi/commcare-hq","description":"A server-side tool to help manage community health workers, written in Django","fork":false,"url":"https://api.github.com/repos/dimagi/commcare-hq","forks_url":"https://api.github.com/repos/dimagi/commcare-hq/forks","keys_url":"https://api.github.com/repos/dimagi/commcare-hq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dimagi/commcare-hq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dimagi/commcare-hq/teams","hooks_url":"https://api.github.com/repos/dimagi/commcare-hq/hooks","issue_events_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/events{/number}","events_url":"https://api.github.com/repos/dimagi/commcare-hq/events","assignees_url":"https://api.github.com/repos/dimagi/commcare-hq/assignees{/user}","branches_url":"https://api.github.com/repos/dimagi/commcare-hq/branches{/branch}","tags_url":"https://api.github.com/repos/dimagi/commcare-hq/tags","blobs_url":"https://api.github.com/repos/dimagi/commcare-hq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dimagi/commcare-hq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dimagi/commcare-hq/git/refs{/sha}","trees_url":"https://api.github.com/repos/dimagi/commcare-hq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dimagi/commcare-hq/statuses/{sha}","languages_url":"https://api.github.com/repos/dimagi/commcare-hq/languages","stargazers_url":"https://api.github.com/repos/dimagi/commcare-hq/stargazers","contributors_url":"https://api.github.com/repos/dimagi/commcare-hq/contributors","subscribers_url":"https://api.github.com/repos/dimagi/commcare-hq/subscribers","subscription_url":"https://api.github.com/repos/dimagi/commcare-hq/subscription","commits_url":"https://api.github.com/repos/dimagi/commcare-hq/commits{/sha}","git_commits_url":"https://api.github.com/repos/dimagi/commcare-hq/git/commits{/sha}","comments_url":"https://api.github.com/repos/dimagi/commcare-hq/comments{/number}","issue_comment_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/comments{/number}","contents_url":"https://api.github.com/repos/dimagi/commcare-hq/contents/{+path}","compare_url":"https://api.github.com/repos/dimagi/commcare-hq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dimagi/commcare-hq/merges","archive_url":"https://api.github.com/repos/dimagi/commcare-hq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dimagi/commcare-hq/downloads","issues_url":"https://api.github.com/repos/dimagi/commcare-hq/issues{/number}","pulls_url":"https://api.github.com/repos/dimagi/commcare-hq/pulls{/number}","milestones_url":"https://api.github.com/repos/dimagi/commcare-hq/milestones{/number}","notifications_url":"https://api.github.com/repos/dimagi/commcare-hq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dimagi/commcare-hq/labels{/name}","releases_url":"https://api.github.com/repos/dimagi/commcare-hq/releases{/id}","created_at":"2009-07-09T17:00:07Z","updated_at":"2015-12-15T18:32:41Z","pushed_at":"2015-12-30T17:53:10Z","git_url":"git://github.com/dimagi/commcare-hq.git","ssh_url":"git@github.com:dimagi/commcare-hq.git","clone_url":"https://github.com/dimagi/commcare-hq.git","svn_url":"https://github.com/dimagi/commcare-hq","homepage":"http://www.commcarehq.org","size":242329,"stargazers_count":57,"watchers_count":57,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":64,"mirror_url":null,"open_issues_count":65,"forks":64,"open_issues":65,"watchers":57,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dimagi/commcare-hq/pulls/9735"},"html":{"href":"https://github.com/dimagi/commcare-hq/pull/9735"},"issue":{"href":"https://api.github.com/repos/dimagi/commcare-hq/issues/9735"},"comments":{"href":"https://api.github.com/repos/dimagi/commcare-hq/issues/9735/comments"},"review_comments":{"href":"https://api.github.com/repos/dimagi/commcare-hq/pulls/9735/comments"},"review_comment":{"href":"https://api.github.com/repos/dimagi/commcare-hq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dimagi/commcare-hq/pulls/9735/commits"},"statuses":{"href":"https://api.github.com/repos/dimagi/commcare-hq/statuses/c32847211d1e45a73c11ae87c48bb72840ac4d1f"}}}}