Created
February 21, 2016 01:31
-
-
Save tratnayake/098c7e3333433c28c9bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Import the header (css,navbar and stuff) --> | |
<% include ./partials/header %> | |
<div class="container"> | |
<h1 class="text-center"> Check out our awesome users!</h1> | |
<table class="col-xs-offset-3 col-xs-6"> | |
<tr> | |
<th class="text-center">Username</th> | |
<th class="text-center">Email Address</th> | |
</tr> | |
<!-- For each user --> | |
<% for(var i=0; i<users.length; i++) {%> | |
<!-- Create a new row --> | |
<tr> | |
<td><%= users[i].name %></td> | |
<td><%= users[i].email %></td> | |
</tr> | |
<% } %> | |
</table> | |
</div> | |
<!-- Import the footer (js and stuff) --> | |
<% include ./partials/header %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment