summaryrefslogtreecommitdiff
path: root/static/website/templates/latest_question.html
diff options
context:
space:
mode:
Diffstat (limited to 'static/website/templates/latest_question.html')
-rw-r--r--static/website/templates/latest_question.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/static/website/templates/latest_question.html b/static/website/templates/latest_question.html
new file mode 100644
index 0000000..5279f19
--- /dev/null
+++ b/static/website/templates/latest_question.html
@@ -0,0 +1,11 @@
+{% if question %}
+ <small class="latest">
+ <a href="{% url 'website:get_question' question.id %}">{{ question.title }}</a>
+ </small>
+ <a class="btn btn-xs btn-block btn-primary" href="{% url 'website:filter' question.category %}">View previous questions</a>
+{% else %}
+ <small class="latest">
+ Be the first to ask question.
+ </small>
+ <a class="btn btn-xs btn-block btn-primary" disabled="disabled" href="#">View previous questions</a>
+{% endif %}