{"action":"created","issue":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2990","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2990/labels{/name}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2990/comments","events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2990/events","html_url":"https://github.com/CenterForOpenScience/osf.io/pull/2990","id":85592220,"number":2990,"title":"[feature] Treebeard Wiki Menu","user":{"login":"caseyrollins","id":7913604,"avatar_url":"https://avatars.githubusercontent.com/u/7913604?v=3","gravatar_id":"","url":"https://api.github.com/users/caseyrollins","html_url":"https://github.com/caseyrollins","followers_url":"https://api.github.com/users/caseyrollins/followers","following_url":"https://api.github.com/users/caseyrollins/following{/other_user}","gists_url":"https://api.github.com/users/caseyrollins/gists{/gist_id}","starred_url":"https://api.github.com/users/caseyrollins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caseyrollins/subscriptions","organizations_url":"https://api.github.com/users/caseyrollins/orgs","repos_url":"https://api.github.com/users/caseyrollins/repos","events_url":"https://api.github.com/users/caseyrollins/events{/privacy}","received_events_url":"https://api.github.com/users/caseyrollins/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones/40","html_url":"https://github.com/CenterForOpenScience/osf.io/milestones/0.42.0","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones/40/labels","id":1175091,"number":40,"title":"0.42.0","description":"","creator":{"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},"open_issues":15,"closed_issues":35,"state":"open","created_at":"2015-06-22T13:30:59Z","updated_at":"2015-06-30T19:40:26Z","due_on":null,"closed_at":null},"comments":18,"created_at":"2015-06-05T17:53:17Z","updated_at":"2015-06-30T20:02:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2990","html_url":"https://github.com/CenterForOpenScience/osf.io/pull/2990","diff_url":"https://github.com/CenterForOpenScience/osf.io/pull/2990.diff","patch_url":"https://github.com/CenterForOpenScience/osf.io/pull/2990.patch"},"body":"Closes [#2891](https://github.com/CenterForOpenScience/osf.io/issues/2891)\r\n\r\n### Purpose:\r\n- Currently, the menu for navigating between wiki pages is dynamically generated through complex logic inside the ```toc.mako``` template. This PR changes the wiki navigation menu to become an instance of Treebeard.\r\n\r\n### Changes\r\n- ```toc.mako``` template removed in favor of creating a Treebeard instance for the menu.\r\n- Buttons for creating and deleting a wiki now appear next to the toggle view buttons, as opposed to appearing within the navigation menu.\r\n- Project Wiki Pages expand on page load, while Component Wiki Pages must be manually expanded.\r\n- For non-contributors, only wiki pages with content are clickable from the menu. This change relates to [#2891](https://github.com/CenterForOpenScience/osf.io/issues/2891).\r\n\r\n### Screenshots\r\n- Contributor View of Wiki Menu (with all folders expanded)\r\n![screen shot 2015-06-25 at 10 40 43 am](https://cloud.githubusercontent.com/assets/7913604/8357025/b3b9b820-1b26-11e5-836e-ef3189c85800.png)\r\n\r\n\r\n\r\n- Non-Contributor View of Wiki Menu (with all folders expanded)\r\n![screen shot 2015-06-25 at 10 40 28 am](https://cloud.githubusercontent.com/assets/7913604/8357028/b8aee576-1b26-11e5-8a7b-81186bd91484.png)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/comments/117322848","html_url":"https://github.com/CenterForOpenScience/osf.io/pull/2990#issuecomment-117322848","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2990","id":117322848,"user":{"login":"GaryKriebel","id":9437946,"avatar_url":"https://avatars.githubusercontent.com/u/9437946?v=3","gravatar_id":"","url":"https://api.github.com/users/GaryKriebel","html_url":"https://github.com/GaryKriebel","followers_url":"https://api.github.com/users/GaryKriebel/followers","following_url":"https://api.github.com/users/GaryKriebel/following{/other_user}","gists_url":"https://api.github.com/users/GaryKriebel/gists{/gist_id}","starred_url":"https://api.github.com/users/GaryKriebel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GaryKriebel/subscriptions","organizations_url":"https://api.github.com/users/GaryKriebel/orgs","repos_url":"https://api.github.com/users/GaryKriebel/repos","events_url":"https://api.github.com/users/GaryKriebel/events{/privacy}","received_events_url":"https://api.github.com/users/GaryKriebel/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T20:02:01Z","updated_at":"2015-06-30T20:02:01Z","body":"Also, in discussions with @sloria and @JeffSpies, the navigation tree as seen below:\r\n\r\n![screen shot 2015-06-30 at 3 55 25 pm](https://cloud.githubusercontent.com/assets/9437946/8440535/bbd24d42-1f40-11e5-93bf-5f5835f6d115.png)\r\n\r\nShould either have the link icon ![screen shot 2015-06-30 at 3 55 42 pm](https://cloud.githubusercontent.com/assets/9437946/8440544/ce60df82-1f40-11e5-9bf9-9b1d41d44a78.png) designating that clicking the wiki page (e.g. Component 1 - With a WIki ) will take you away from this page\r\n\r\n**OR**\r\n\r\nMaking the Component name an unclickable \"folder\" with \"Home\" for its home wiki underneath like you do for its parent project.\r\n\r\nUsing the above as the example,\r\n\r\n**Component 3 - With a Wiki also**\r\n  *Home*\r\n  *Another component wiki*\r\n\r\nWhere *Home* and   *Another component wiki* are the links.\r\n\r\nSteve and Jeff, did I capture that correctly?\r\n@caneruguz any thoughts on the two approaches?"}}