{"action":"created","comment":{"url":"https://api.github.com/repos/learningequality/kolibri/pulls/comments/70837428","id":70837428,"diff_hunk":"@@ -11,24 +11,57 @@\n     </content-card>\n   </card-grid>\n \n+  <div class='button-wrapper'>\n+    <button @click='toggle()' v-if='expanded'>\n+      <i class=\"material-icons\">&#xE5CE;</i> Show Less\n+    </button>\n+    <button class='pure-button' @click='toggle()' v-else>\n+      <i class=\"material-icons\">&#xE5CF;</i> <span>Show More</span>\n+    </button>\n+  </div>\n+\n </template>\n \n \n <script>\n \n+  const N_COLLAPSED = 6;\n+  const N_EXPANDED = 12;\n+\n   module.exports = {\n     components: {\n       'content-card': require('../content-card'),\n       'card-grid': require('../card-grid'),\n     },\n+    data() {\n+      return {\n+        expanded: false,\n+      };\n+    },\n+    computed: {\n+      contents() {\n+        const num = this.expanded ? N_EXPANDED : N_COLLAPSED;","path":"kolibri/plugins/learn/assets/src/vue/learn-page/index.vue","position":41,"original_position":41,"commit_id":"8cda1beb6878f92188551aa874016e04fa9b6727","original_commit_id":"8cda1beb6878f92188551aa874016e04fa9b6727","user":{"login":"rtibbles","id":1680573,"avatar_url":"https://avatars.githubusercontent.com/u/1680573?v=3","gravatar_id":"","url":"https://api.github.com/users/rtibbles","html_url":"https://github.com/rtibbles","followers_url":"https://api.github.com/users/rtibbles/followers","following_url":"https://api.github.com/users/rtibbles/following{/other_user}","gists_url":"https://api.github.com/users/rtibbles/gists{/gist_id}","starred_url":"https://api.github.com/users/rtibbles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtibbles/subscriptions","organizations_url":"https://api.github.com/users/rtibbles/orgs","repos_url":"https://api.github.com/users/rtibbles/repos","events_url":"https://api.github.com/users/rtibbles/events{/privacy}","received_events_url":"https://api.github.com/users/rtibbles/received_events","type":"User","site_admin":false},"body":"Nice - we could probably factor this out in the future into another computed property to give more 'responsive' numbers of items.","created_at":"2016-07-14T16:28:20Z","updated_at":"2016-07-14T16:28:20Z","html_url":"https://github.com/learningequality/kolibri/pull/250#discussion_r70837428","pull_request_url":"https://api.github.com/repos/learningequality/kolibri/pulls/250","_links":{"self":{"href":"https://api.github.com/repos/learningequality/kolibri/pulls/comments/70837428"},"html":{"href":"https://github.com/learningequality/kolibri/pull/250#discussion_r70837428"},"pull_request":{"href":"https://api.github.com/repos/learningequality/kolibri/pulls/250"}}},"pull_request":{"url":"https://api.github.com/repos/learningequality/kolibri/pulls/250","id":77387782,"html_url":"https://github.com/learningequality/kolibri/pull/250","diff_url":"https://github.com/learningequality/kolibri/pull/250.diff","patch_url":"https://github.com/learningequality/kolibri/pull/250.patch","issue_url":"https://api.github.com/repos/learningequality/kolibri/issues/250","number":250,"state":"open","locked":false,"title":"very basic show more/less behavior for learn page","user":{"login":"indirectlylit","id":2367265,"avatar_url":"https://avatars.githubusercontent.com/u/2367265?v=3","gravatar_id":"","url":"https://api.github.com/users/indirectlylit","html_url":"https://github.com/indirectlylit","followers_url":"https://api.github.com/users/indirectlylit/followers","following_url":"https://api.github.com/users/indirectlylit/following{/other_user}","gists_url":"https://api.github.com/users/indirectlylit/gists{/gist_id}","starred_url":"https://api.github.com/users/indirectlylit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indirectlylit/subscriptions","organizations_url":"https://api.github.com/users/indirectlylit/orgs","repos_url":"https://api.github.com/users/indirectlylit/repos","events_url":"https://api.github.com/users/indirectlylit/events{/privacy}","received_events_url":"https://api.github.com/users/indirectlylit/received_events","type":"User","site_admin":false},"body":"first-pass at show/hide behavior. This version does not take browser-width into consideration and simply toggles between 12 and 6 items.","created_at":"2016-07-14T01:31:38Z","updated_at":"2016-07-14T16:28:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"79f46a3c0690af169adc7ed64123116113e5e533","assignee":{"login":"rtibbles","id":1680573,"avatar_url":"https://avatars.githubusercontent.com/u/1680573?v=3","gravatar_id":"","url":"https://api.github.com/users/rtibbles","html_url":"https://github.com/rtibbles","followers_url":"https://api.github.com/users/rtibbles/followers","following_url":"https://api.github.com/users/rtibbles/following{/other_user}","gists_url":"https://api.github.com/users/rtibbles/gists{/gist_id}","starred_url":"https://api.github.com/users/rtibbles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtibbles/subscriptions","organizations_url":"https://api.github.com/users/rtibbles/orgs","repos_url":"https://api.github.com/users/rtibbles/repos","events_url":"https://api.github.com/users/rtibbles/events{/privacy}","received_events_url":"https://api.github.com/users/rtibbles/received_events","type":"User","site_admin":false},"assignees":[{"login":"rtibbles","id":1680573,"avatar_url":"https://avatars.githubusercontent.com/u/1680573?v=3","gravatar_id":"","url":"https://api.github.com/users/rtibbles","html_url":"https://github.com/rtibbles","followers_url":"https://api.github.com/users/rtibbles/followers","following_url":"https://api.github.com/users/rtibbles/following{/other_user}","gists_url":"https://api.github.com/users/rtibbles/gists{/gist_id}","starred_url":"https://api.github.com/users/rtibbles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtibbles/subscriptions","organizations_url":"https://api.github.com/users/rtibbles/orgs","repos_url":"https://api.github.com/users/rtibbles/repos","events_url":"https://api.github.com/users/rtibbles/events{/privacy}","received_events_url":"https://api.github.com/users/rtibbles/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/learningequality/kolibri/pulls/250/commits","review_comments_url":"https://api.github.com/repos/learningequality/kolibri/pulls/250/comments","review_comment_url":"https://api.github.com/repos/learningequality/kolibri/pulls/comments{/number}","comments_url":"https://api.github.com/repos/learningequality/kolibri/issues/250/comments","statuses_url":"https://api.github.com/repos/learningequality/kolibri/statuses/8cda1beb6878f92188551aa874016e04fa9b6727","head":{"label":"indirectlylit:show-more","ref":"show-more","sha":"8cda1beb6878f92188551aa874016e04fa9b6727","user":{"login":"indirectlylit","id":2367265,"avatar_url":"https://avatars.githubusercontent.com/u/2367265?v=3","gravatar_id":"","url":"https://api.github.com/users/indirectlylit","html_url":"https://github.com/indirectlylit","followers_url":"https://api.github.com/users/indirectlylit/followers","following_url":"https://api.github.com/users/indirectlylit/following{/other_user}","gists_url":"https://api.github.com/users/indirectlylit/gists{/gist_id}","starred_url":"https://api.github.com/users/indirectlylit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indirectlylit/subscriptions","organizations_url":"https://api.github.com/users/indirectlylit/orgs","repos_url":"https://api.github.com/users/indirectlylit/repos","events_url":"https://api.github.com/users/indirectlylit/events{/privacy}","received_events_url":"https://api.github.com/users/indirectlylit/received_events","type":"User","site_admin":false},"repo":{"id":54517539,"name":"kolibri","full_name":"indirectlylit/kolibri","owner":{"login":"indirectlylit","id":2367265,"avatar_url":"https://avatars.githubusercontent.com/u/2367265?v=3","gravatar_id":"","url":"https://api.github.com/users/indirectlylit","html_url":"https://github.com/indirectlylit","followers_url":"https://api.github.com/users/indirectlylit/followers","following_url":"https://api.github.com/users/indirectlylit/following{/other_user}","gists_url":"https://api.github.com/users/indirectlylit/gists{/gist_id}","starred_url":"https://api.github.com/users/indirectlylit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indirectlylit/subscriptions","organizations_url":"https://api.github.com/users/indirectlylit/orgs","repos_url":"https://api.github.com/users/indirectlylit/repos","events_url":"https://api.github.com/users/indirectlylit/events{/privacy}","received_events_url":"https://api.github.com/users/indirectlylit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/indirectlylit/kolibri","description":"This is where Kolibri shall be born, watch and participate!","fork":true,"url":"https://api.github.com/repos/indirectlylit/kolibri","forks_url":"https://api.github.com/repos/indirectlylit/kolibri/forks","keys_url":"https://api.github.com/repos/indirectlylit/kolibri/keys{/key_id}","collaborators_url":"https://api.github.com/repos/indirectlylit/kolibri/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/indirectlylit/kolibri/teams","hooks_url":"https://api.github.com/repos/indirectlylit/kolibri/hooks","issue_events_url":"https://api.github.com/repos/indirectlylit/kolibri/issues/events{/number}","events_url":"https://api.github.com/repos/indirectlylit/kolibri/events","assignees_url":"https://api.github.com/repos/indirectlylit/kolibri/assignees{/user}","branches_url":"https://api.github.com/repos/indirectlylit/kolibri/branches{/branch}","tags_url":"https://api.github.com/repos/indirectlylit/kolibri/tags","blobs_url":"https://api.github.com/repos/indirectlylit/kolibri/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/indirectlylit/kolibri/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/indirectlylit/kolibri/git/refs{/sha}","trees_url":"https://api.github.com/repos/indirectlylit/kolibri/git/trees{/sha}","statuses_url":"https://api.github.com/repos/indirectlylit/kolibri/statuses/{sha}","languages_url":"https://api.github.com/repos/indirectlylit/kolibri/languages","stargazers_url":"https://api.github.com/repos/indirectlylit/kolibri/stargazers","contributors_url":"https://api.github.com/repos/indirectlylit/kolibri/contributors","subscribers_url":"https://api.github.com/repos/indirectlylit/kolibri/subscribers","subscription_url":"https://api.github.com/repos/indirectlylit/kolibri/subscription","commits_url":"https://api.github.com/repos/indirectlylit/kolibri/commits{/sha}","git_commits_url":"https://api.github.com/repos/indirectlylit/kolibri/git/commits{/sha}","comments_url":"https://api.github.com/repos/indirectlylit/kolibri/comments{/number}","issue_comment_url":"https://api.github.com/repos/indirectlylit/kolibri/issues/comments{/number}","contents_url":"https://api.github.com/repos/indirectlylit/kolibri/contents/{+path}","compare_url":"https://api.github.com/repos/indirectlylit/kolibri/compare/{base}...{head}","merges_url":"https://api.github.com/repos/indirectlylit/kolibri/merges","archive_url":"https://api.github.com/repos/indirectlylit/kolibri/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/indirectlylit/kolibri/downloads","issues_url":"https://api.github.com/repos/indirectlylit/kolibri/issues{/number}","pulls_url":"https://api.github.com/repos/indirectlylit/kolibri/pulls{/number}","milestones_url":"https://api.github.com/repos/indirectlylit/kolibri/milestones{/number}","notifications_url":"https://api.github.com/repos/indirectlylit/kolibri/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/indirectlylit/kolibri/labels{/name}","releases_url":"https://api.github.com/repos/indirectlylit/kolibri/releases{/id}","deployments_url":"https://api.github.com/repos/indirectlylit/kolibri/deployments","created_at":"2016-03-23T00:08:12Z","updated_at":"2016-03-23T00:08:12Z","pushed_at":"2016-07-14T10:26:08Z","git_url":"git://github.com/indirectlylit/kolibri.git","ssh_url":"git@github.com:indirectlylit/kolibri.git","clone_url":"https://github.com/indirectlylit/kolibri.git","svn_url":"https://github.com/indirectlylit/kolibri","homepage":"http://learningequality.org/kolibri/","size":6453,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"learningequality:master","ref":"master","sha":"453bcf9f7b61e155299eb7ca9ebc38d49386a0cb","user":{"login":"learningequality","id":3926525,"avatar_url":"https://avatars.githubusercontent.com/u/3926525?v=3","gravatar_id":"","url":"https://api.github.com/users/learningequality","html_url":"https://github.com/learningequality","followers_url":"https://api.github.com/users/learningequality/followers","following_url":"https://api.github.com/users/learningequality/following{/other_user}","gists_url":"https://api.github.com/users/learningequality/gists{/gist_id}","starred_url":"https://api.github.com/users/learningequality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/learningequality/subscriptions","organizations_url":"https://api.github.com/users/learningequality/orgs","repos_url":"https://api.github.com/users/learningequality/repos","events_url":"https://api.github.com/users/learningequality/events{/privacy}","received_events_url":"https://api.github.com/users/learningequality/received_events","type":"Organization","site_admin":false},"repo":{"id":49976939,"name":"kolibri","full_name":"learningequality/kolibri","owner":{"login":"learningequality","id":3926525,"avatar_url":"https://avatars.githubusercontent.com/u/3926525?v=3","gravatar_id":"","url":"https://api.github.com/users/learningequality","html_url":"https://github.com/learningequality","followers_url":"https://api.github.com/users/learningequality/followers","following_url":"https://api.github.com/users/learningequality/following{/other_user}","gists_url":"https://api.github.com/users/learningequality/gists{/gist_id}","starred_url":"https://api.github.com/users/learningequality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/learningequality/subscriptions","organizations_url":"https://api.github.com/users/learningequality/orgs","repos_url":"https://api.github.com/users/learningequality/repos","events_url":"https://api.github.com/users/learningequality/events{/privacy}","received_events_url":"https://api.github.com/users/learningequality/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/learningequality/kolibri","description":"This is where Kolibri shall be born, watch and participate!","fork":false,"url":"https://api.github.com/repos/learningequality/kolibri","forks_url":"https://api.github.com/repos/learningequality/kolibri/forks","keys_url":"https://api.github.com/repos/learningequality/kolibri/keys{/key_id}","collaborators_url":"https://api.github.com/repos/learningequality/kolibri/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/learningequality/kolibri/teams","hooks_url":"https://api.github.com/repos/learningequality/kolibri/hooks","issue_events_url":"https://api.github.com/repos/learningequality/kolibri/issues/events{/number}","events_url":"https://api.github.com/repos/learningequality/kolibri/events","assignees_url":"https://api.github.com/repos/learningequality/kolibri/assignees{/user}","branches_url":"https://api.github.com/repos/learningequality/kolibri/branches{/branch}","tags_url":"https://api.github.com/repos/learningequality/kolibri/tags","blobs_url":"https://api.github.com/repos/learningequality/kolibri/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/learningequality/kolibri/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/learningequality/kolibri/git/refs{/sha}","trees_url":"https://api.github.com/repos/learningequality/kolibri/git/trees{/sha}","statuses_url":"https://api.github.com/repos/learningequality/kolibri/statuses/{sha}","languages_url":"https://api.github.com/repos/learningequality/kolibri/languages","stargazers_url":"https://api.github.com/repos/learningequality/kolibri/stargazers","contributors_url":"https://api.github.com/repos/learningequality/kolibri/contributors","subscribers_url":"https://api.github.com/repos/learningequality/kolibri/subscribers","subscription_url":"https://api.github.com/repos/learningequality/kolibri/subscription","commits_url":"https://api.github.com/repos/learningequality/kolibri/commits{/sha}","git_commits_url":"https://api.github.com/repos/learningequality/kolibri/git/commits{/sha}","comments_url":"https://api.github.com/repos/learningequality/kolibri/comments{/number}","issue_comment_url":"https://api.github.com/repos/learningequality/kolibri/issues/comments{/number}","contents_url":"https://api.github.com/repos/learningequality/kolibri/contents/{+path}","compare_url":"https://api.github.com/repos/learningequality/kolibri/compare/{base}...{head}","merges_url":"https://api.github.com/repos/learningequality/kolibri/merges","archive_url":"https://api.github.com/repos/learningequality/kolibri/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/learningequality/kolibri/downloads","issues_url":"https://api.github.com/repos/learningequality/kolibri/issues{/number}","pulls_url":"https://api.github.com/repos/learningequality/kolibri/pulls{/number}","milestones_url":"https://api.github.com/repos/learningequality/kolibri/milestones{/number}","notifications_url":"https://api.github.com/repos/learningequality/kolibri/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/learningequality/kolibri/labels{/name}","releases_url":"https://api.github.com/repos/learningequality/kolibri/releases{/id}","deployments_url":"https://api.github.com/repos/learningequality/kolibri/deployments","created_at":"2016-01-19T19:22:07Z","updated_at":"2016-07-13T10:40:18Z","pushed_at":"2016-07-14T10:26:08Z","git_url":"git://github.com/learningequality/kolibri.git","ssh_url":"git@github.com:learningequality/kolibri.git","clone_url":"https://github.com/learningequality/kolibri.git","svn_url":"https://github.com/learningequality/kolibri","homepage":"http://learningequality.org/kolibri/","size":6747,"stargazers_count":24,"watchers_count":24,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":34,"forks":29,"open_issues":34,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/learningequality/kolibri/pulls/250"},"html":{"href":"https://github.com/learningequality/kolibri/pull/250"},"issue":{"href":"https://api.github.com/repos/learningequality/kolibri/issues/250"},"comments":{"href":"https://api.github.com/repos/learningequality/kolibri/issues/250/comments"},"review_comments":{"href":"https://api.github.com/repos/learningequality/kolibri/pulls/250/comments"},"review_comment":{"href":"https://api.github.com/repos/learningequality/kolibri/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/learningequality/kolibri/pulls/250/commits"},"statuses":{"href":"https://api.github.com/repos/learningequality/kolibri/statuses/8cda1beb6878f92188551aa874016e04fa9b6727"}}}}
{"actor":{"display_login":"rtibbles"}}