summaryrefslogtreecommitdiff
path: root/static/website/templates/ajax-similar-questions.html
blob: 64f194f444ad9750882d2e13eba0f93a2e0e9297 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<div>
<div id="similar-count">
    {% if questions.count > 0 %}
        {% if questions.count == 1 %}
            1 similar question
        {% else %}
            {{ questions.count }} similar questions
        {% endif %}
    {% endif %}
</div>
<br>
<table class="table table-bordered table-hover">
{% for question in questions %}
    <tr>
        <td>
            <a href="{% url 'website:get_question' question.id %}" target="_blank">
                {{ question.title }}
            </a>
        </td>
    </tr>
{% endfor %}
</table>
</div> <!-- /div for ajax -->