{"action":"opened","number":740,"pull_request":{"url":"https://api.github.com/repos/mholt/caddy/pulls/740","id":66036879,"html_url":"https://github.com/mholt/caddy/pull/740","diff_url":"https://github.com/mholt/caddy/pull/740.diff","patch_url":"https://github.com/mholt/caddy/pull/740.patch","issue_url":"https://api.github.com/repos/mholt/caddy/issues/740","number":740,"state":"open","locked":false,"title":"Added breadcrumb map function to browse","user":{"login":"tboerger","id":156964,"avatar_url":"https://avatars.githubusercontent.com/u/156964?v=3","gravatar_id":"","url":"https://api.github.com/users/tboerger","html_url":"https://github.com/tboerger","followers_url":"https://api.github.com/users/tboerger/followers","following_url":"https://api.github.com/users/tboerger/following{/other_user}","gists_url":"https://api.github.com/users/tboerger/gists{/gist_id}","starred_url":"https://api.github.com/users/tboerger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tboerger/subscriptions","organizations_url":"https://api.github.com/users/tboerger/orgs","repos_url":"https://api.github.com/users/tboerger/repos","events_url":"https://api.github.com/users/tboerger/events{/privacy}","received_events_url":"https://api.github.com/users/tboerger/received_events","type":"User","site_admin":false},"body":"In order to being able to really build a custom template for the browse\ndirective I have added another function to build even custom breadcrumb\npaths. The other function `LinkedPath` is not that easy styleable as\nthis map function. That way we are able to build the breadcrumb path\nmatching different CSS frameworks like Bootstrap.\n\nAn example implementation should look like that, matching the Bootstrap structure:\n\n```\n<ol class=\"breadcrumb\">\n  {{range $url, $name := .LinkedList}}\n    <li><a href=\"{{$url}}\">{{$name}}</a></li>\n  {{end}}\n</ol>\n```\n\nSigned-off-by: Thomas Boerger <thomas@webhippie.de>","created_at":"2016-04-11T18:08:55Z","updated_at":"2016-04-11T18:08:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mholt/caddy/pulls/740/commits","review_comments_url":"https://api.github.com/repos/mholt/caddy/pulls/740/comments","review_comment_url":"https://api.github.com/repos/mholt/caddy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mholt/caddy/issues/740/comments","statuses_url":"https://api.github.com/repos/mholt/caddy/statuses/71deb6bd4ac6434c0ab56deb70e91ca2141a4684","head":{"label":"tboerger:feature/browse-breadcrumb","ref":"feature/browse-breadcrumb","sha":"71deb6bd4ac6434c0ab56deb70e91ca2141a4684","user":{"login":"tboerger","id":156964,"avatar_url":"https://avatars.githubusercontent.com/u/156964?v=3","gravatar_id":"","url":"https://api.github.com/users/tboerger","html_url":"https://github.com/tboerger","followers_url":"https://api.github.com/users/tboerger/followers","following_url":"https://api.github.com/users/tboerger/following{/other_user}","gists_url":"https://api.github.com/users/tboerger/gists{/gist_id}","starred_url":"https://api.github.com/users/tboerger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tboerger/subscriptions","organizations_url":"https://api.github.com/users/tboerger/orgs","repos_url":"https://api.github.com/users/tboerger/repos","events_url":"https://api.github.com/users/tboerger/events{/privacy}","received_events_url":"https://api.github.com/users/tboerger/received_events","type":"User","site_admin":false},"repo":{"id":55993572,"name":"caddy","full_name":"tboerger/caddy","owner":{"login":"tboerger","id":156964,"avatar_url":"https://avatars.githubusercontent.com/u/156964?v=3","gravatar_id":"","url":"https://api.github.com/users/tboerger","html_url":"https://github.com/tboerger","followers_url":"https://api.github.com/users/tboerger/followers","following_url":"https://api.github.com/users/tboerger/following{/other_user}","gists_url":"https://api.github.com/users/tboerger/gists{/gist_id}","starred_url":"https://api.github.com/users/tboerger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tboerger/subscriptions","organizations_url":"https://api.github.com/users/tboerger/orgs","repos_url":"https://api.github.com/users/tboerger/repos","events_url":"https://api.github.com/users/tboerger/events{/privacy}","received_events_url":"https://api.github.com/users/tboerger/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tboerger/caddy","description":"Fast, cross-platform HTTP/2 web server with automatic HTTPS","fork":true,"url":"https://api.github.com/repos/tboerger/caddy","forks_url":"https://api.github.com/repos/tboerger/caddy/forks","keys_url":"https://api.github.com/repos/tboerger/caddy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tboerger/caddy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tboerger/caddy/teams","hooks_url":"https://api.github.com/repos/tboerger/caddy/hooks","issue_events_url":"https://api.github.com/repos/tboerger/caddy/issues/events{/number}","events_url":"https://api.github.com/repos/tboerger/caddy/events","assignees_url":"https://api.github.com/repos/tboerger/caddy/assignees{/user}","branches_url":"https://api.github.com/repos/tboerger/caddy/branches{/branch}","tags_url":"https://api.github.com/repos/tboerger/caddy/tags","blobs_url":"https://api.github.com/repos/tboerger/caddy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tboerger/caddy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tboerger/caddy/git/refs{/sha}","trees_url":"https://api.github.com/repos/tboerger/caddy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tboerger/caddy/statuses/{sha}","languages_url":"https://api.github.com/repos/tboerger/caddy/languages","stargazers_url":"https://api.github.com/repos/tboerger/caddy/stargazers","contributors_url":"https://api.github.com/repos/tboerger/caddy/contributors","subscribers_url":"https://api.github.com/repos/tboerger/caddy/subscribers","subscription_url":"https://api.github.com/repos/tboerger/caddy/subscription","commits_url":"https://api.github.com/repos/tboerger/caddy/commits{/sha}","git_commits_url":"https://api.github.com/repos/tboerger/caddy/git/commits{/sha}","comments_url":"https://api.github.com/repos/tboerger/caddy/comments{/number}","issue_comment_url":"https://api.github.com/repos/tboerger/caddy/issues/comments{/number}","contents_url":"https://api.github.com/repos/tboerger/caddy/contents/{+path}","compare_url":"https://api.github.com/repos/tboerger/caddy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tboerger/caddy/merges","archive_url":"https://api.github.com/repos/tboerger/caddy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tboerger/caddy/downloads","issues_url":"https://api.github.com/repos/tboerger/caddy/issues{/number}","pulls_url":"https://api.github.com/repos/tboerger/caddy/pulls{/number}","milestones_url":"https://api.github.com/repos/tboerger/caddy/milestones{/number}","notifications_url":"https://api.github.com/repos/tboerger/caddy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tboerger/caddy/labels{/name}","releases_url":"https://api.github.com/repos/tboerger/caddy/releases{/id}","deployments_url":"https://api.github.com/repos/tboerger/caddy/deployments","created_at":"2016-04-11T17:39:59Z","updated_at":"2016-04-11T17:40:01Z","pushed_at":"2016-04-11T18:07:25Z","git_url":"git://github.com/tboerger/caddy.git","ssh_url":"git@github.com:tboerger/caddy.git","clone_url":"https://github.com/tboerger/caddy.git","svn_url":"https://github.com/tboerger/caddy","homepage":"https://caddyserver.com","size":1513,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"master"}},"base":{"label":"mholt:master","ref":"master","sha":"0a7ca64f53970dbbf94567ace6c873be9fabb69b","user":{"login":"mholt","id":1128849,"avatar_url":"https://avatars.githubusercontent.com/u/1128849?v=3","gravatar_id":"","url":"https://api.github.com/users/mholt","html_url":"https://github.com/mholt","followers_url":"https://api.github.com/users/mholt/followers","following_url":"https://api.github.com/users/mholt/following{/other_user}","gists_url":"https://api.github.com/users/mholt/gists{/gist_id}","starred_url":"https://api.github.com/users/mholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mholt/subscriptions","organizations_url":"https://api.github.com/users/mholt/orgs","repos_url":"https://api.github.com/users/mholt/repos","events_url":"https://api.github.com/users/mholt/events{/privacy}","received_events_url":"https://api.github.com/users/mholt/received_events","type":"User","site_admin":false},"repo":{"id":29207621,"name":"caddy","full_name":"mholt/caddy","owner":{"login":"mholt","id":1128849,"avatar_url":"https://avatars.githubusercontent.com/u/1128849?v=3","gravatar_id":"","url":"https://api.github.com/users/mholt","html_url":"https://github.com/mholt","followers_url":"https://api.github.com/users/mholt/followers","following_url":"https://api.github.com/users/mholt/following{/other_user}","gists_url":"https://api.github.com/users/mholt/gists{/gist_id}","starred_url":"https://api.github.com/users/mholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mholt/subscriptions","organizations_url":"https://api.github.com/users/mholt/orgs","repos_url":"https://api.github.com/users/mholt/repos","events_url":"https://api.github.com/users/mholt/events{/privacy}","received_events_url":"https://api.github.com/users/mholt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mholt/caddy","description":"Fast, cross-platform HTTP/2 web server with automatic HTTPS","fork":false,"url":"https://api.github.com/repos/mholt/caddy","forks_url":"https://api.github.com/repos/mholt/caddy/forks","keys_url":"https://api.github.com/repos/mholt/caddy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mholt/caddy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mholt/caddy/teams","hooks_url":"https://api.github.com/repos/mholt/caddy/hooks","issue_events_url":"https://api.github.com/repos/mholt/caddy/issues/events{/number}","events_url":"https://api.github.com/repos/mholt/caddy/events","assignees_url":"https://api.github.com/repos/mholt/caddy/assignees{/user}","branches_url":"https://api.github.com/repos/mholt/caddy/branches{/branch}","tags_url":"https://api.github.com/repos/mholt/caddy/tags","blobs_url":"https://api.github.com/repos/mholt/caddy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mholt/caddy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mholt/caddy/git/refs{/sha}","trees_url":"https://api.github.com/repos/mholt/caddy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mholt/caddy/statuses/{sha}","languages_url":"https://api.github.com/repos/mholt/caddy/languages","stargazers_url":"https://api.github.com/repos/mholt/caddy/stargazers","contributors_url":"https://api.github.com/repos/mholt/caddy/contributors","subscribers_url":"https://api.github.com/repos/mholt/caddy/subscribers","subscription_url":"https://api.github.com/repos/mholt/caddy/subscription","commits_url":"https://api.github.com/repos/mholt/caddy/commits{/sha}","git_commits_url":"https://api.github.com/repos/mholt/caddy/git/commits{/sha}","comments_url":"https://api.github.com/repos/mholt/caddy/comments{/number}","issue_comment_url":"https://api.github.com/repos/mholt/caddy/issues/comments{/number}","contents_url":"https://api.github.com/repos/mholt/caddy/contents/{+path}","compare_url":"https://api.github.com/repos/mholt/caddy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mholt/caddy/merges","archive_url":"https://api.github.com/repos/mholt/caddy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mholt/caddy/downloads","issues_url":"https://api.github.com/repos/mholt/caddy/issues{/number}","pulls_url":"https://api.github.com/repos/mholt/caddy/pulls{/number}","milestones_url":"https://api.github.com/repos/mholt/caddy/milestones{/number}","notifications_url":"https://api.github.com/repos/mholt/caddy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mholt/caddy/labels{/name}","releases_url":"https://api.github.com/repos/mholt/caddy/releases{/id}","deployments_url":"https://api.github.com/repos/mholt/caddy/deployments","created_at":"2015-01-13T19:45:03Z","updated_at":"2016-04-11T15:17:27Z","pushed_at":"2016-04-11T17:41:21Z","git_url":"git://github.com/mholt/caddy.git","ssh_url":"git@github.com:mholt/caddy.git","clone_url":"https://github.com/mholt/caddy.git","svn_url":"https://github.com/mholt/caddy","homepage":"https://caddyserver.com","size":2233,"stargazers_count":5458,"watchers_count":5458,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":353,"mirror_url":null,"open_issues_count":57,"forks":353,"open_issues":57,"watchers":5458,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mholt/caddy/pulls/740"},"html":{"href":"https://github.com/mholt/caddy/pull/740"},"issue":{"href":"https://api.github.com/repos/mholt/caddy/issues/740"},"comments":{"href":"https://api.github.com/repos/mholt/caddy/issues/740/comments"},"review_comments":{"href":"https://api.github.com/repos/mholt/caddy/pulls/740/comments"},"review_comment":{"href":"https://api.github.com/repos/mholt/caddy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mholt/caddy/pulls/740/commits"},"statuses":{"href":"https://api.github.com/repos/mholt/caddy/statuses/71deb6bd4ac6434c0ab56deb70e91ca2141a4684"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":28,"deletions":0,"changed_files":1}}