{"action":"opened","issue":{"url":"https://api.github.com/repos/Grandman/pm/issues/1","labels_url":"https://api.github.com/repos/Grandman/pm/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Grandman/pm/issues/1/comments","events_url":"https://api.github.com/repos/Grandman/pm/issues/1/events","html_url":"https://github.com/Grandman/pm/issues/1","id":57561248,"number":1,"title":"хэлпер для вывода дерева","user":{"login":"darkleaf","id":1124593,"avatar_url":"https://avatars.githubusercontent.com/u/1124593?v=3","gravatar_id":"","url":"https://api.github.com/users/darkleaf","html_url":"https://github.com/darkleaf","followers_url":"https://api.github.com/users/darkleaf/followers","following_url":"https://api.github.com/users/darkleaf/following{/other_user}","gists_url":"https://api.github.com/users/darkleaf/gists{/gist_id}","starred_url":"https://api.github.com/users/darkleaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkleaf/subscriptions","organizations_url":"https://api.github.com/users/darkleaf/orgs","repos_url":"https://api.github.com/users/darkleaf/repos","events_url":"https://api.github.com/users/darkleaf/events{/privacy}","received_events_url":"https://api.github.com/users/darkleaf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-13T05:29:11Z","updated_at":"2015-02-13T05:29:11Z","closed_at":null,"body":"```ruby\r\n  def menu_item_tree(arrange_hash)\r\n    return if arrange_hash.empty?\r\n\r\n    content_tag :ul do\r\n      items = arrange_hash.map do |item, children|\r\n        subtree = menu_item_tree(children)\r\n        li_item item.name, item.url, class: left_menu_item_class(item), sublist: subtree\r\n      end\r\n      items.join.html_safe\r\n    end\r\n  end\r\n```"}}