From dbdcb21969ffd5540bd310b14ee2348adac24b5c Mon Sep 17 00:00:00 2001 From: nanalelfe Date: Sat, 23 Jul 2016 20:54:48 -0400 Subject: Added comments for user, along with dummy data if the user doesn't have any comments --- views/user_profile_alt.hbs | 39 +++++++++++++++++---------------------- 1 file changed, 17 insertions(+), 22 deletions(-) (limited to 'views') 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 @@
-

Comment History

+ + {{# if comments }} +

Comment History

@@ -198,30 +200,23 @@ - - - - - - - - - - - - - - - - - - - - - + {{# each comments }} + + + + + + {{/each}}
2016-05-01Use BFS! Not DFS!CSC148 > Winter 2014
2016-04-05Use a heap!CSC263 > Fall 2015
2016-02-30I love python!CSC108 > Winter 2015
2016-01-15I hate verilog!CSC258 > Fall 2015
{{ this.date }}{{ this.comment }}{{ this.exam_info.course_code }} > {{ this.exam_info.term }} + {{ this.exam_info.year }}
+ +
+ {{else}} +

No Comments.

+ {{/if}} +
-- cgit v1.2.3