diff options
| author | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-07-22 02:45:27 +0000 |
|---|---|---|
| committer | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-07-22 02:45:27 +0000 |
| commit | 12659ff5704a04d2447f5dbf036541676c59f139 (patch) | |
| tree | 68a36260059bb05bb9d589011bf9d8ca22f72b2f /views/questions.hbs | |
| parent | dc3888553bdda4ee30e6440992459916cec8d911 (diff) | |
| parent | 797b4fe83ed4ebbed47930c7d0d0a34cd37703c6 (diff) | |
Added passport for signup
Diffstat (limited to 'views/questions.hbs')
| -rw-r--r-- | views/questions.hbs | 68 |
1 files changed, 13 insertions, 55 deletions
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 LISTINGS --> - <a href="/user_solutions"> - <section class = 'solutions-card row'> - <div class='pull-left col-sm-8 col-md-8'> - <h3 class = 'questions-number'>Question 1</h3> - <p><span class='questions-sol-num'>2 solutions, </span> <span class = 'questions-comment'>6 comments</span></p> - </div> - <div class='pull-right right-arrow'> - <img class='rounded' src="assets/images/right-arrow.png"> - </div> - </section> - </a> + {{#each query}} - <a href="/user_solutions"> - <section class = 'solutions-card row'> - <div class='pull-left col-sm-8 col-md-8'> - <h3 class = 'questions-number'>Question 2</h3> - <p><span class='questions-sol-num'>1 solution, </span> <span class = 'questions-comment'>2 comments</span></p> - </div> - <div class='pull-right right-arrow'> - <img class='rounded' src="assets/images/right-arrow.png"> - </div> - </section> - </a> + <a href="/user_solutions"> + <section class = 'solutions-card row'> + <div class='pull-left col-sm-8 col-md-8'> + <h3 class = 'questions-number'>Question {{this.id}}</h3> + <p><span class='questions-sol-num'>{{this.count}} solutions, </span> <span class = 'questions-comment'>{{this.comments}} comments</span></p> + </div> + <div class='pull-right right-arrow'> + <img class='rounded' src="/assets/images/right-arrow.png"> + </div> + </section> + </a> - <a href="/user_solutions"> - <section class = 'solutions-card row'> - <div class='pull-left col-sm-8 col-md-8'> - <h3 class = 'questions-number'>Question 3</h3> - <p><span class='questions-sol-num'>1 solution, </span> <span class = 'questions-comment'>2 comments</span></p> - </div> - <div class='pull-right right-arrow'> - <img class='rounded' src="assets/images/right-arrow.png"> - </div> + {{/each}} - </section> - </a> - <a href="/user_solutions"> - <section class = 'solutions-card row'> - <div class='pull-left col-sm-8 col-md-8'> - <h3 class = 'questions-number'>Question 4</h3> - <p><span class='questions-sol-num'>3 solutions, </span> <span class = 'questions-comment'>2 comments</span></p> - </div> - <div class='pull-right right-arrow'> - <img class='rounded' src="assets/images/right-arrow.png"> - </div> - </section> - </a> - <a href="/user_solutions"> - <section class = 'solutions-card row'> - <div class='pull-left col-sm-8 col-md-8'> - <h3 class = 'questions-number'>Question 5</h3> - <p><span class='questions-sol-num'>0 solutions </span> <span class = 'questions-comment'></span></p> - </div> - <div class='pull-right right-arrow'> - <img class='rounded' src="assets/images/right-arrow.png"> - </div> - </section> - </a> </div> </main> |
