Skip to content

Commit

Permalink
Update Profile View with History
Browse files Browse the repository at this point in the history
  • Loading branch information
aabiskar committed Mar 16, 2017
1 parent 93d5e3f commit 55e62d9
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion views/accounts/profile.ejs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<% layout('layout') -%>

<div class="container">

<div class="row">
<div class="col-sm-6 col-md-4">
<img class="img-circle img-responsive img-center" src="<%= user.profile.picture %>" alt="">
Expand All @@ -21,5 +20,27 @@

<a href="/edit-profile" class="btn btn-primary btn-lg">Edit Profile</a>
</div>

<div class="col-md-6">
<h2 class="text-center">History</h2>

<table class="table table-striped sticky-header">
<thead>
<tr>
<th>Item's Name</th>
<th>Paid: </th>
</tr>
<tbody>
<% for(var i = 0; i < user.history.length; i++) {%>
<tr>
<td><%= user.history[i].item.name %></td>
<td><%= user.history[i].paid %></td>
</tr>
<% } %>
</tbody>
</thead>
</table>

</div>
</div>
</div>

0 comments on commit 55e62d9

Please sign in to comment.