aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorkumar <kumar.damani@mail.utoronto.ca>2016-07-24 00:57:36 +0000
committerkumar <kumar.damani@mail.utoronto.ca>2016-07-24 00:57:36 +0000
commit8f6bfa9244411274c4f6a489b2571a423f7d8548 (patch)
treee75f85ee2cfd65190acda7e8494ca6c736f5aa1b /views
parentfe51deb31bbcc90530617b2b8aa60caf17c76729 (diff)
parent39afbefe2ea5b7a105c352049a4a4a171502e880 (diff)
pull
Merge branch 'master' of https://github.com/HumairAK/solutions_repo
Diffstat (limited to 'views')
-rw-r--r--views/user_profile_alt.hbs39
1 files changed, 17 insertions, 22 deletions
diff --git a/views/user_profile_alt.hbs b/views/user_profile_alt.hbs
index 413fd0f..6455cc6 100644
--- a/views/user_profile_alt.hbs
+++ b/views/user_profile_alt.hbs
@@ -187,7 +187,9 @@
</div>
</div>
<div class="row" id="profile-comments">
- <h3>Comment History</h3>
+
+ {{# if comments }}
+ <h3>Comment History</h3>
<div class="col-sm-10 col-sm-offset-1 prf-tables">
<table class="table">
<thead>
@@ -198,30 +200,23 @@
</tr>
</thead>
<tbody>
- <tr>
- <td>2016-05-01</td>
- <td>Use BFS! Not DFS!</td>
- <td>CSC148 > Winter 2014</td>
- </tr>
- <tr>
- <td>2016-04-05</td>
- <td>Use a heap!</td>
- <td>CSC263 > Fall 2015</td>
- </tr>
- <tr>
- <td>2016-02-30</td>
- <td>I love python!</td>
- <td>CSC108 > Winter 2015</td>
- </tr>
- <tr>
- <td>2016-01-15</td>
- <td>I hate verilog!</td>
- <td>CSC258 > Fall 2015</td>
- </tr>
- </tbody>
+ {{# each comments }}
+ <tr>
+ <td>{{ this.date }}</td>
+ <td>{{ this.comment }}</td>
+ <td>{{ this.exam_info.course_code }} > {{ this.exam_info.term }}
+ {{ this.exam_info.year }}</td>
+ </tr>
+ {{/each}}
</table>
+
+
</div>
+ {{else}}
+ <h3>No Comments.</h3>
+ {{/if}}
+
</div>
<!-- Date, Edit, Logout (new row) -->