Skip to content

Commit

Permalink
Update comment.ejs
Browse files Browse the repository at this point in the history
  • Loading branch information
nswbmw committed Aug 1, 2013
1 parent 1cdb8fa commit bf4e203
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions views/comment.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
<% }) %>

<form method="post">
<% if(locals.user){ %>
姓名:<input type="text" name="name" value="<%= locals.user.name %>" /><br />
邮箱:<input type="text" name="email" value="<%= locals.user.email %>" /><br />
网址:<input type="text" name="website" value="/u/<%= locals.user.name %>" /><br />
<% if(user){ %>
姓名:<input type="text" name="name" value="<%= user.name %>" /><br />
邮箱:<input type="text" name="email" value="<%= user.email %>" /><br />
网址:<input type="text" name="website" value="/u/<%= user.name %>" /><br />
<% } else { %>
姓名:<input type="text" name="name" /><br />
邮箱:<input type="text" name="email" /><br />
网址:<input type="text" name="website" value="http://" /><br />
<% } %>
<textarea name="content" rows="5" cols="80"></textarea><br />
<input type="submit" value="留言" />
</form>
</form>

0 comments on commit bf4e203

Please sign in to comment.