diff options
| author | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-07-25 05:40:57 +0000 |
|---|---|---|
| committer | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-07-25 05:40:57 +0000 |
| commit | 5ae1a4bc73f34d3a8f83607b79fe20d4594238e6 (patch) | |
| tree | 824776472687456292f71a98b96ff6fb2de85a5c /views/user_profile_alt.hbs | |
| parent | 3ca0e78b313a1bded021cbb8b2dad241d7cad049 (diff) | |
Populated profile page with comments
Diffstat (limited to 'views/user_profile_alt.hbs')
| -rw-r--r-- | views/user_profile_alt.hbs | 63 |
1 files changed, 32 insertions, 31 deletions
diff --git a/views/user_profile_alt.hbs b/views/user_profile_alt.hbs index 2f10e66..871f73e 100644 --- a/views/user_profile_alt.hbs +++ b/views/user_profile_alt.hbs @@ -151,20 +151,21 @@ col-sm-offset-0 col-md-offset-3 col-lg-offset-3 toppad prf-details"> </table> </div> </div> - {{# if messages.success }} - <section class="alert alert-success"> - <!-- Change those to banners later --> - <h3>{{ messages.success }}</h3> - </section> - {{ else }} - {{# if messages.error }} - <section class="alert alert-danger"> - <h3>{{ messages.error }}</h3> - </section> - {{/if}} - {{/if}} + <div class="row" id="profile-send-message"> <h3>Send Message</h3> + {{# if messages.success }} + <section class="alert alert-success"> + <!-- Change those to banners later --> + <h3>{{ messages.success }}</h3> + </section> + {{ else }} + {{# if messages.error }} + <section class="alert alert-danger"> + <h3>{{ messages.error }}</h3> + </section> + {{/if}} + {{/if}} <div class="col-xs-offset-1 col-sm-offset-3 col-xs-10 col-sm-6"> <form action="/user/user_profile/send_message" method="post"> <div class="form-group"> @@ -209,31 +210,31 @@ col-sm-offset-0 col-md-offset-3 col-lg-offset-3 toppad prf-details"> </div> <div class="row" id="profile-comments"> - {{# if comments }} + {{# if comments.length }} <h3>Comment History</h3> - <div class="col-sm-10 col-sm-offset-1 prf-tables"> - <table class="table"> - <thead> - <tr> - <th>Date</th> - <th>Comment</th> - <th>Exam</th> - </tr> - </thead> - <tbody> - {{# each comments }} + <div class="col-sm-10 col-sm-offset-1 prf-tables"> + <table class="table"> + <thead> <tr> - <td>{{ this.date }}</td> - <td>{{ this.comment }}</td> - <td>{{ this.exam_info.course_code }} > {{ this.exam_info.term }} - {{ this.exam_info.year }}</td> + <th>Date</th> + <th>Comment</th> + <th>Exam</th> </tr> - {{/each}} + </thead> + <tbody> + {{# each comments }} + <tr> + <td>{{ this.date }}</td> + <td>{{ this.comment }}</td> + <td>{{ this.course_code }} > {{ this.term }} + {{ this.year }}</td> + </tr> + {{/each}} - </table> + </table> - </div> + </div> {{else}} <h3>No Comments.</h3> {{/if}} |
