{"action":"closed","number":5093,"pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5093","id":61134310,"html_url":"https://github.com/CenterForOpenScience/osf.io/pull/5093","diff_url":"https://github.com/CenterForOpenScience/osf.io/pull/5093.diff","patch_url":"https://github.com/CenterForOpenScience/osf.io/pull/5093.patch","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/5093","number":5093,"state":"closed","locked":false,"title":"Feature/read more link wiki","user":{"login":"erinspace","id":801594,"avatar_url":"https://avatars.githubusercontent.com/u/801594?v=3","gravatar_id":"","url":"https://api.github.com/users/erinspace","html_url":"https://github.com/erinspace","followers_url":"https://api.github.com/users/erinspace/followers","following_url":"https://api.github.com/users/erinspace/following{/other_user}","gists_url":"https://api.github.com/users/erinspace/gists{/gist_id}","starred_url":"https://api.github.com/users/erinspace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erinspace/subscriptions","organizations_url":"https://api.github.com/users/erinspace/orgs","repos_url":"https://api.github.com/users/erinspace/repos","events_url":"https://api.github.com/users/erinspace/events{/privacy}","received_events_url":"https://api.github.com/users/erinspace/received_events","type":"User","site_admin":false},"body":"Relates to https://openscience.atlassian.net/browse/OSF-5450\r\n\r\n# Purpose \r\nPreviously, when a wiki was too long to be rendered, the text would be truncated and had a '...' appended to the end. \r\n\r\nThis PR adds a \"Read More\" link to wikis that have additonal content on the home page, OR wikis that  have additional content on pages other than the home page.\r\n\r\nA \"Read More\" link is not present when there is additional content in a component's wiki - this was to avoid blank parent wikis with a confusing \"Read More\" link when their components had wiki content.\r\n\r\n# Changes\r\n- wiki_widget.mako:\r\n    - Add new div with the \"Read More\" link.\r\n        - I added a new div instead of placing it in the ```markdownRender``` div to avoid the ReadMore link being replaced when the content is re-rendered by js in ```project-dashboard-page.js```\r\n- wiki/views.py:\r\n     - Set the ```more``` variable up front if there are more wiki pages on the current component\r\n     - update cutoff variable from 500 to 400 to match later JS rendering of truncated text","created_at":"2016-02-29T19:54:20Z","updated_at":"2016-03-04T14:51:04Z","closed_at":"2016-03-04T14:51:04Z","merged_at":"2016-03-04T14:51:04Z","merge_commit_sha":"13d65094e4272f530c49a7e90b03a8f4f1f89cd8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5093/commits","review_comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5093/comments","review_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/5093/comments","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/5ac8887e8dfd68cfadfb1744d5e556eab54c138c","head":{"label":"erinspace:feature/read_more_link_wiki","ref":"feature/read_more_link_wiki","sha":"5ac8887e8dfd68cfadfb1744d5e556eab54c138c","user":{"login":"erinspace","id":801594,"avatar_url":"https://avatars.githubusercontent.com/u/801594?v=3","gravatar_id":"","url":"https://api.github.com/users/erinspace","html_url":"https://github.com/erinspace","followers_url":"https://api.github.com/users/erinspace/followers","following_url":"https://api.github.com/users/erinspace/following{/other_user}","gists_url":"https://api.github.com/users/erinspace/gists{/gist_id}","starred_url":"https://api.github.com/users/erinspace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erinspace/subscriptions","organizations_url":"https://api.github.com/users/erinspace/orgs","repos_url":"https://api.github.com/users/erinspace/repos","events_url":"https://api.github.com/users/erinspace/events{/privacy}","received_events_url":"https://api.github.com/users/erinspace/received_events","type":"User","site_admin":false},"repo":{"id":27143923,"name":"osf.io","full_name":"erinspace/osf.io","owner":{"login":"erinspace","id":801594,"avatar_url":"https://avatars.githubusercontent.com/u/801594?v=3","gravatar_id":"","url":"https://api.github.com/users/erinspace","html_url":"https://github.com/erinspace","followers_url":"https://api.github.com/users/erinspace/followers","following_url":"https://api.github.com/users/erinspace/following{/other_user}","gists_url":"https://api.github.com/users/erinspace/gists{/gist_id}","starred_url":"https://api.github.com/users/erinspace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erinspace/subscriptions","organizations_url":"https://api.github.com/users/erinspace/orgs","repos_url":"https://api.github.com/users/erinspace/repos","events_url":"https://api.github.com/users/erinspace/events{/privacy}","received_events_url":"https://api.github.com/users/erinspace/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/erinspace/osf.io","description":"Facilitating Open Science","fork":true,"url":"https://api.github.com/repos/erinspace/osf.io","forks_url":"https://api.github.com/repos/erinspace/osf.io/forks","keys_url":"https://api.github.com/repos/erinspace/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/erinspace/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/erinspace/osf.io/teams","hooks_url":"https://api.github.com/repos/erinspace/osf.io/hooks","issue_events_url":"https://api.github.com/repos/erinspace/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/erinspace/osf.io/events","assignees_url":"https://api.github.com/repos/erinspace/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/erinspace/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/erinspace/osf.io/tags","blobs_url":"https://api.github.com/repos/erinspace/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/erinspace/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/erinspace/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/erinspace/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/erinspace/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/erinspace/osf.io/languages","stargazers_url":"https://api.github.com/repos/erinspace/osf.io/stargazers","contributors_url":"https://api.github.com/repos/erinspace/osf.io/contributors","subscribers_url":"https://api.github.com/repos/erinspace/osf.io/subscribers","subscription_url":"https://api.github.com/repos/erinspace/osf.io/subscription","commits_url":"https://api.github.com/repos/erinspace/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/erinspace/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/erinspace/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/erinspace/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/erinspace/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/erinspace/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/erinspace/osf.io/merges","archive_url":"https://api.github.com/repos/erinspace/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/erinspace/osf.io/downloads","issues_url":"https://api.github.com/repos/erinspace/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/erinspace/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/erinspace/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/erinspace/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/erinspace/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/erinspace/osf.io/releases{/id}","deployments_url":"https://api.github.com/repos/erinspace/osf.io/deployments","created_at":"2014-11-25T20:10:31Z","updated_at":"2015-04-03T14:29:22Z","pushed_at":"2016-03-03T19:07:47Z","git_url":"git://github.com/erinspace/osf.io.git","ssh_url":"git@github.com:erinspace/osf.io.git","clone_url":"https://github.com/erinspace/osf.io.git","svn_url":"https://github.com/erinspace/osf.io","homepage":"http://osf.io","size":121450,"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":"develop"}},"base":{"label":"CenterForOpenScience:develop","ref":"develop","sha":"44963ddf62664a50dfd4ec39e32ca96ccd70c832","user":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"repo":{"id":10199599,"name":"osf.io","full_name":"CenterForOpenScience/osf.io","owner":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CenterForOpenScience/osf.io","description":"Facilitating Open Science","fork":false,"url":"https://api.github.com/repos/CenterForOpenScience/osf.io","forks_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/forks","keys_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/teams","hooks_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/hooks","issue_events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/events","assignees_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/tags","blobs_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/languages","stargazers_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/stargazers","contributors_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/contributors","subscribers_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/subscribers","subscription_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/subscription","commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/merges","archive_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/downloads","issues_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/releases{/id}","deployments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/deployments","created_at":"2013-05-21T15:53:37Z","updated_at":"2016-03-03T06:04:49Z","pushed_at":"2016-03-04T14:51:00Z","git_url":"git://github.com/CenterForOpenScience/osf.io.git","ssh_url":"git@github.com:CenterForOpenScience/osf.io.git","clone_url":"https://github.com/CenterForOpenScience/osf.io.git","svn_url":"https://github.com/CenterForOpenScience/osf.io","homepage":"http://osf.io","size":267049,"stargazers_count":197,"watchers_count":197,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":149,"mirror_url":null,"open_issues_count":327,"forks":149,"open_issues":327,"watchers":197,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5093"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/5093"},"issue":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/5093"},"comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/5093/comments"},"review_comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5093/comments"},"review_comment":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5093/commits"},"statuses":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/5ac8887e8dfd68cfadfb1744d5e556eab54c138c"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"sloria","id":2379650,"avatar_url":"https://avatars.githubusercontent.com/u/2379650?v=3","gravatar_id":"","url":"https://api.github.com/users/sloria","html_url":"https://github.com/sloria","followers_url":"https://api.github.com/users/sloria/followers","following_url":"https://api.github.com/users/sloria/following{/other_user}","gists_url":"https://api.github.com/users/sloria/gists{/gist_id}","starred_url":"https://api.github.com/users/sloria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sloria/subscriptions","organizations_url":"https://api.github.com/users/sloria/orgs","repos_url":"https://api.github.com/users/sloria/repos","events_url":"https://api.github.com/users/sloria/events{/privacy}","received_events_url":"https://api.github.com/users/sloria/received_events","type":"User","site_admin":false},"comments":2,"review_comments":1,"commits":4,"additions":18,"deletions":4,"changed_files":3}}