Skip to content
Myr

fixed flash example

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 1ac18f7 · Browse files · 4 files+54 added−54 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+54 added−54 removed

  • other:+54 added−54 removed

4 files+54 added−54 removed

deleted:examples/flash/views/partials/messages.ejs-12 removed
1<% if (hasMessages) { %>2 <div id="messages">3 <% for (var type in types) { %>4 <h2><%= type %> messages</h2>5 <ul id="<%= type %>">6 <% types[type].forEach(function(msg){ %>7 <li><%= msg %></li>8 <% }) %>9 </ul>10 <% } %>11 </div>12<% } %>
added:examples/flash/views/_messages.ejs+12 added
1<% if (hasMessages) { %>2 <div id="messages">3 <% for (var type in types) { %>4 <h2><%= type %> messages</h2>5 <ul id="<%= type %>">6 <% types[type].forEach(function(msg){ %>7 <li><%= msg %></li>8 <% }) %>9 </ul>10 <% } %>11 </div>12<% } %>
modified:examples/flash/views/layout.ejs+3 added-3 removed
1<html>2 <body>3 <%- body %>4 </body>2 <body>3 <%- body %>4 </body>5</html>
modified:examples/flash/app.js+39 added-39 removed