OSDN Git Service
(root)
/
webchat
/
WebChat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
バリテーション時のメッセージを配列で書き込むことにした
[webchat/WebChat.git]
/
public
/
profile
/
message.ejs
diff --git
a/public/profile/message.ejs
b/public/profile/message.ejs
index
e51838f
..
ebd779c
100644
(file)
--- a/
public/profile/message.ejs
+++ b/
public/profile/message.ejs
@@
-8,7
+8,9
@@
<body>
\r
<h1>メッセージ</h1>
\r
<div id="content">
\r
- <p><%- message %></p>
\r
+ <% for(var i = 0; i < message.length; i++){ %>
\r
+ <p><%- message[i] %></p>
\r
+ <% } %>
\r
<p>
\r
<% if(admin){ %>
\r
<a href="/profile/admin">TOP</a>
\r