aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/error.hbs9
-rw-r--r--views/questions.hbs2
2 files changed, 9 insertions, 2 deletions
diff --git a/views/error.hbs b/views/error.hbs
index 062b947..cb2db5d 100644
--- a/views/error.hbs
+++ b/views/error.hbs
@@ -1,5 +1,12 @@
<main id = 'solutions-main'>
<div class = 'search container' id = 'solutions-div'>
- <h4>Sorry, we could not find {{ url }}</h4>
+ {{# if url}}
+ <h4>Sorry, we could not find {{ url }}</h4>
+ {{/if}}
+ {{# if error }}
+ <section class="alert alert-danger custom-Alert">
+ <h4>{{ error }}</h4>
+ </section>
+ {{/if}}
</div>
</main>
diff --git a/views/questions.hbs b/views/questions.hbs
index 48248c2..4b40d33 100644
--- a/views/questions.hbs
+++ b/views/questions.hbs
@@ -3,7 +3,7 @@
<!-- EXAM DETAILS -->
- <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>