From 68be8844ddc1e30e34745a0589fa3395ae6ec198 Mon Sep 17 00:00:00 2001 From: HumairAK Date: Thu, 21 Jul 2016 04:58:24 -0400 Subject: Added templating for questions, made a minor adjustments to index.js --- views/questions.hbs | 68 ++++++++++------------------------------------------- 1 file changed, 13 insertions(+), 55 deletions(-) (limited to 'views/questions.hbs') diff --git a/views/questions.hbs b/views/questions.hbs index 8b69f8f..ff9b3b2 100644 --- a/views/questions.hbs +++ b/views/questions.hbs @@ -17,65 +17,23 @@ - -
-
-

Question 1

-

2 solutions, 6 comments

-
-
- -
-
-
+ {{#each query}} - -
-
-

Question 2

-

1 solution, 2 comments

-
-
- -
-
-
+ +
+
+

Question {{this.id}}

+

{{this.count}} solutions, {{this.comments}} comments

+
+
+ +
+
+
- -
-
-

Question 3

-

1 solution, 2 comments

-
-
- -
+ {{/each}} -
-
- -
-
-

Question 4

-

3 solutions, 2 comments

-
-
- -
-
-
- -
-
-

Question 5

-

0 solutions

-
-
- -
-
-
-- cgit v1.2.3