{"action":"created","issue":{"url":"https://api.github.com/repos/gjb2048/moodle-theme_essential/issues/576","labels_url":"https://api.github.com/repos/gjb2048/moodle-theme_essential/issues/576/labels{/name}","comments_url":"https://api.github.com/repos/gjb2048/moodle-theme_essential/issues/576/comments","events_url":"https://api.github.com/repos/gjb2048/moodle-theme_essential/issues/576/events","html_url":"https://github.com/gjb2048/moodle-theme_essential/pull/576","id":120744880,"number":576,"title":"Add setting to display a page editing menu/button on the header","user":{"login":"jojoob","id":4180675,"avatar_url":"https://avatars.githubusercontent.com/u/4180675?v=3","gravatar_id":"","url":"https://api.github.com/users/jojoob","html_url":"https://github.com/jojoob","followers_url":"https://api.github.com/users/jojoob/followers","following_url":"https://api.github.com/users/jojoob/following{/other_user}","gists_url":"https://api.github.com/users/jojoob/gists{/gist_id}","starred_url":"https://api.github.com/users/jojoob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jojoob/subscriptions","organizations_url":"https://api.github.com/users/jojoob/orgs","repos_url":"https://api.github.com/users/jojoob/repos","events_url":"https://api.github.com/users/jojoob/events{/privacy}","received_events_url":"https://api.github.com/users/jojoob/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-07T10:43:07Z","updated_at":"2015-12-07T10:57:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gjb2048/moodle-theme_essential/pulls/576","html_url":"https://github.com/gjb2048/moodle-theme_essential/pull/576","diff_url":"https://github.com/gjb2048/moodle-theme_essential/pull/576.diff","patch_url":"https://github.com/gjb2048/moodle-theme_essential/pull/576.patch"},"body":"I've added a setting to display a page editing button on the header (right side).\r\n<img width=\"329\" alt=\"editing button\" src=\"https://cloud.githubusercontent.com/assets/4180675/11624941/7cee8ca2-9cd7-11e5-8522-05007caa2263.png\">\r\n\r\nThis button has the same functionality as the default \"Turn editing on/off\" button on the top right of a page. The button on the header is only displayed if the setting is turned on and the user is allowed to edit the page.\r\n<img width=\"894\" alt=\"editingmenu setting\" src=\"https://cloud.githubusercontent.com/assets/4180675/11624945/842ec612-9cd7-11e5-9ed2-e22cdd0fbfd6.png\">\r\n\r\n\r\nIn addition another setting allows to disable/remove the default button from any page.\r\n<img width=\"377\" alt=\"editingmenu default disabled\" src=\"https://cloud.githubusercontent.com/assets/4180675/11624955/98db8d66-9cd7-11e5-9206-d5308eb349e8.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/gjb2048/moodle-theme_essential/issues/comments/162482398","html_url":"https://github.com/gjb2048/moodle-theme_essential/pull/576#issuecomment-162482398","issue_url":"https://api.github.com/repos/gjb2048/moodle-theme_essential/issues/576","id":162482398,"user":{"login":"gjb2048","id":1058419,"avatar_url":"https://avatars.githubusercontent.com/u/1058419?v=3","gravatar_id":"","url":"https://api.github.com/users/gjb2048","html_url":"https://github.com/gjb2048","followers_url":"https://api.github.com/users/gjb2048/followers","following_url":"https://api.github.com/users/gjb2048/following{/other_user}","gists_url":"https://api.github.com/users/gjb2048/gists{/gist_id}","starred_url":"https://api.github.com/users/gjb2048/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gjb2048/subscriptions","organizations_url":"https://api.github.com/users/gjb2048/orgs","repos_url":"https://api.github.com/users/gjb2048/repos","events_url":"https://api.github.com/users/gjb2048/events{/privacy}","received_events_url":"https://api.github.com/users/gjb2048/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T10:57:01Z","updated_at":"2015-12-07T10:57:01Z","body":"Hi Johannes,\r\n\r\nNice, I like it :) - before I can merge, please rebase your branch so that only your commit https://github.com/sudile/moodle-theme_essential/commit/e05e84044b3906ffcb91d031d83821cc037f22d4 is in the pull otherwise it will make a mess of the branch.  If not I'll have to cherry pick it.\r\n\r\nCheers,\r\n\r\nGareth"}}