{"action":"opened","issue":{"url":"https://api.github.com/repos/nswbmw/N-blog/issues/422","repository_url":"https://api.github.com/repos/nswbmw/N-blog","labels_url":"https://api.github.com/repos/nswbmw/N-blog/issues/422/labels{/name}","comments_url":"https://api.github.com/repos/nswbmw/N-blog/issues/422/comments","events_url":"https://api.github.com/repos/nswbmw/N-blog/issues/422/events","html_url":"https://github.com/nswbmw/N-blog/issues/422","id":280955429,"number":422,"title":"4.7注册页预览user is not defined，nav-setting.ejs 中的user没有定义，是怎么回事？","user":{"login":"Rudy24","id":12670705,"avatar_url":"https://avatars2.githubusercontent.com/u/12670705?v=4","gravatar_id":"","url":"https://api.github.com/users/Rudy24","html_url":"https://github.com/Rudy24","followers_url":"https://api.github.com/users/Rudy24/followers","following_url":"https://api.github.com/users/Rudy24/following{/other_user}","gists_url":"https://api.github.com/users/Rudy24/gists{/gist_id}","starred_url":"https://api.github.com/users/Rudy24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rudy24/subscriptions","organizations_url":"https://api.github.com/users/Rudy24/orgs","repos_url":"https://api.github.com/users/Rudy24/repos","events_url":"https://api.github.com/users/Rudy24/events{/privacy}","received_events_url":"https://api.github.com/users/Rudy24/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-11T09:56:29Z","updated_at":"2017-12-11T09:56:29Z","closed_at":null,"author_association":"NONE","body":"ReferenceError: E:\\study\\demo\\Node\\myblog\\views\\signup.ejs:1\r\n >> 1|  <%- include('header') %>\r\n\r\n    2| <div class=\"ui grid\">\r\n\r\n    3|   <div class=\"four wide column\"></div>\r\n\r\n    4|   <div class=\"eight wide column\">\r\n\r\n\r\nE:\\study\\demo\\Node\\myblog\\views\\header.ejs:13\r\n    11|   <body>\r\n\r\n    12|   <%- include('./components/nav') %>\r\n\r\n >> 13|   <%- include('./components/nav-setting') %>\r\n\r\n    14|   <%- include('./components/notification') %>\r\n\r\n    15| \r\n\r\nE:\\study\\demo\\Node\\myblog\\views\\components\\nav-setting.ejs:6\r\n    4|       <i class=\"icon bars\"></i>\r\n\r\n    5|       <div class=\"menu\">\r\n\r\n >> 6|         <% if (user) { %>\r\n\r\n    7|           <a class=\"item\" href=\"/posts?author=<%= user._id %>\">个人主页</a>\r\n\r\n    8|           <div class=\"divider\"></div>\r\n\r\n    9|           <a class=\"item\" href=\"/posts/create\">发表文章</a>\r\n\r\n\r\nuser is not defined\r\n    at eval (eval at compile (E:\\study\\demo\\Node\\myblog\\node_modules\\_ejs@2.5.7@ejs\\lib\\ejs.js:549:12), <anonymous>:11:8)\r\n    at returnedFn (E:\\study\\demo\\Node\\myblog\\node_modules\\_ejs@2.5.7@ejs\\lib\\ejs.js:580:17)\r\n    at include (E:\\study\\demo\\Node\\myblog\\node_modules\\_ejs@2.5.7@ejs\\lib\\ejs.js:578:39)\r\n    at eval (eval at compile (E:\\study\\demo\\Node\\myblog\\node_modules\\_ejs@2.5.7@ejs\\lib\\ejs.js:549:12), <anonymous>:17:17)\r\n    at returnedFn (E:\\study\\demo\\Node\\myblog\\node_modules\\_ejs@2.5.7@ejs\\lib\\ejs.js:580:17)\r\n    at include (E:\\study\\demo\\Node\\myblog\\node_modules\\_ejs@2.5.7@ejs\\lib\\ejs.js:578:39)\r\n    at eval (eval at compile (E:\\study\\demo\\Node\\myblog\\node_modules\\_ejs@2.5.7@ejs\\lib\\ejs.js:549:12), <anonymous>:10:17)\r\n    at returnedFn (E:\\study\\demo\\Node\\myblog\\node_modules\\_ejs@2.5.7@ejs\\lib\\ejs.js:580:17)\r\n    at tryHandleCache (E:\\study\\demo\\Node\\myblog\\node_modules\\_ejs@2.5.7@ejs\\lib\\ejs.js:223:34)\r\n    at View.exports.renderFile [as engine] (E:\\study\\demo\\Node\\myblog\\node_modules\\_ejs@2.5.7@ejs\\lib\\ejs.js:437:10)\r\n\r\n"}}
{"actor":{"display_login":"Rudy24"}}