aboutsummaryrefslogtreecommitdiff
path: root/views/questions.hbs
diff options
context:
space:
mode:
authorWaref Haque <warefhaque@inside-239-60.wireless.utoronto.ca>2016-07-27 02:39:53 +0000
committerWaref Haque <warefhaque@inside-239-60.wireless.utoronto.ca>2016-07-27 02:39:53 +0000
commita6f8527174c8677b29eb377e2a9f235b4989ab99 (patch)
tree436faa90e84bcfeaffb601dcf9286bdb2b94161a /views/questions.hbs
parentcf290e2308006e468121603f65cea2e08dedd3ff (diff)
follow exam
Diffstat (limited to 'views/questions.hbs')
-rw-r--r--views/questions.hbs46
1 files changed, 26 insertions, 20 deletions
diff --git a/views/questions.hbs b/views/questions.hbs
index 1d62a2b..36d2a25 100644
--- a/views/questions.hbs
+++ b/views/questions.hbs
@@ -2,31 +2,23 @@
<div class = 'search container' id = 'solutions-div'>
<!-- EXAM DETAILS -->
- {{# if messages.error }}
- <section class="alert alert-danger custom-Alert">
- <h4>{{ messages.error }}</h4>
+ {{# if messages.success }}
+ <section class="alert alert-success custom-Alert">
+ <!-- Change those to banners later -->
+ <h4>{{ messages.success }}</h4>
</section>
+ {{ else }}
+ {{# if messages.error }}
+ <section class="alert alert-danger custom-Alert">
+ <h4>{{ messages.error }}</h4>
+ </section>
+ {{/if}}
{{/if}}
- <form action="/user/follow_exam/{{examInfo.id}}" method = 'post'>
- <input type="hidden" name="_csrf" value="{{ csrfToken }}">
- <button class="col-xs-4 col-sm-2 col-md-2 col-lg-2
- col-xs-offset-4 col-sm-offset-5 col-md-offset-2
- col-lg-offset-2 rounded" id="add-solution" type="submit">
- <h3>Follow Exam</h3>
- </button>
- </form>
- <!--<a href="/user/follow_exam/{{../examInfo.id}}">-->
- <!--<button class="col-xs-4 col-sm-2 col-md-2 col-lg-2-->
- <!--col-xs-offset-4 col-sm-offset-5 col-md-offset-2-->
- <!--col-lg-offset-2 rounded" id="add-solution">-->
- <!--<h3>Follow Exam</h3>-->
- <!--</button>-->
- <!--</a>-->
- <a href="http://www.cs.toronto.edu/~fpitt/CSC148/20131/tests/test1-0101.pdf" target='_blank'><img src="/assets/images/exam.png" class='exam-img img-responsive exam-info'></a>
+ <a href="http://www.cs.toronto.edu/~fpitt/CSC148/20131/tests/test1-0101.pdf" target='_blank'><img src="/assets/images/exam.png" class='exam-img img-responsive exam-info'></a>
<section class='exam-info'>
<h3>{{examInfo.courseCode}}</h3>
@@ -40,7 +32,21 @@
<!-- QUESTION LISTINGS -->
- {{#each query}}
+
+
+ <form action="/user/follow_exam/{{examInfo.id}}" method = 'post'>
+ <input type="hidden" name="_csrf" value="{{ csrfToken }}">
+ <button class="col-xs-4 col-sm-2 col-md-2 col-lg-2
+ col-xs-offset-4 col-sm-offset-5 col-md-offset-2
+ col-lg-offset-2 rounded" id="add-solution" type="submit">
+ <h3>Follow Exam</h3>
+ </button>
+ </form>
+
+
+
+
+ {{#each query}}
<a href="/solutions/{{../examInfo.id}}/{{this.q_id}}">
<section class = 'solutions-card row'>
<div class='pull-left col-sm-8 col-md-8'>