{"action":"created","issue":{"url":"https://api.github.com/repos/keystonejs/keystone/issues/1584","labels_url":"https://api.github.com/repos/keystonejs/keystone/issues/1584/labels{/name}","comments_url":"https://api.github.com/repos/keystonejs/keystone/issues/1584/comments","events_url":"https://api.github.com/repos/keystonejs/keystone/issues/1584/events","html_url":"https://github.com/keystonejs/keystone/issues/1584","id":101034728,"number":1584,"title":"How to get an admin \"edit\" link for a given document instance","user":{"login":"jacargentina","id":517228,"avatar_url":"https://avatars.githubusercontent.com/u/517228?v=3","gravatar_id":"","url":"https://api.github.com/users/jacargentina","html_url":"https://github.com/jacargentina","followers_url":"https://api.github.com/users/jacargentina/followers","following_url":"https://api.github.com/users/jacargentina/following{/other_user}","gists_url":"https://api.github.com/users/jacargentina/gists{/gist_id}","starred_url":"https://api.github.com/users/jacargentina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacargentina/subscriptions","organizations_url":"https://api.github.com/users/jacargentina/orgs","repos_url":"https://api.github.com/users/jacargentina/repos","events_url":"https://api.github.com/users/jacargentina/events{/privacy}","received_events_url":"https://api.github.com/users/jacargentina/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-14T15:25:17Z","updated_at":"2015-08-14T15:34:49Z","closed_at":"2015-08-14T15:33:23Z","body":"I've searched on keystone sources, for an utilitary function to get an \"edit\" link (or at least the valid href path) so i can generate on my own jade templates, an \"Edit this\" button, when users are keystone admins.\r\n\r\nSo far, i've found the paths are actually embeded, for example on the `templates/mixins/columns.jade` i see this around line 18:\r\n\r\n````jade\r\n    if col.refList && refData && refData.id\r\n        +column_link(value, '/keystone/' + col.refList.path + '/' + refData.id)\r\n    else\r\n        +column_basic(value)\r\n````\r\n\r\nWould be nice to add (if not existing yet of course) an utilitary mixin to generate that path based on a given document, for example:\r\n\r\n````jade\r\n    +get_edit_link(doc_instance)\r\n````\r\n\r\nI can try to help implementing this. \r\n\r\n@JedWatson, thoughts?"},"comment":{"url":"https://api.github.com/repos/keystonejs/keystone/issues/comments/131151954","html_url":"https://github.com/keystonejs/keystone/issues/1584#issuecomment-131151954","issue_url":"https://api.github.com/repos/keystonejs/keystone/issues/1584","id":131151954,"user":{"login":"JedWatson","id":872310,"avatar_url":"https://avatars.githubusercontent.com/u/872310?v=3","gravatar_id":"","url":"https://api.github.com/users/JedWatson","html_url":"https://github.com/JedWatson","followers_url":"https://api.github.com/users/JedWatson/followers","following_url":"https://api.github.com/users/JedWatson/following{/other_user}","gists_url":"https://api.github.com/users/JedWatson/gists{/gist_id}","starred_url":"https://api.github.com/users/JedWatson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JedWatson/subscriptions","organizations_url":"https://api.github.com/users/JedWatson/orgs","repos_url":"https://api.github.com/users/JedWatson/repos","events_url":"https://api.github.com/users/JedWatson/events{/privacy}","received_events_url":"https://api.github.com/users/JedWatson/received_events","type":"User","site_admin":false},"created_at":"2015-08-14T15:34:49Z","updated_at":"2015-08-14T15:34:49Z","body":"What do you mean by _API Accessible_?\r\n\r\nHeads up, I'm busily refactoring the entire Admin UI into a single page react app right now... see `elemental-integration`\r\n\r\nThat includes integration with the new API endpoints I've been adding."}}