summaryrefslogtreecommitdiff
path: root/static/website/templates/ajax-keyword-search.html
blob: 7d38a4262715263a9bbae3b2e7525cb422e6eee1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{% if questions %}
    {% for question in questions %}
        <div class="question">
                    <div class="title">
                        <a href="{% url 'website:get_question' question.id %}">{{ question.title }}</a>
                    </div> 
                    <br>
                    <span class="category">
                        <small>
                            <a href="{% url 'website:filter' question.category %}?qid={{ question.id }}">
                                {{ question.category }}
                            </a>
                        </small>
                    </span>

                    <span class="tutorial">
                        <small>
                            <a href="{% url 'website:filter' question.category question.tutorial %}?qid={{ question.id }}">
                                {{ question.tutorial}}
                            </a>
                        </small>
                    </span>

                    <span class="minute_range">
                        <small>
                            <a href="{% url 'website:filter' question.category question.tutorial question.minute_range %}?qid={{ question.id }}">
                                {{ question.minute_range }} min
                            </a>
                        </small>
                    </span>

                    <span class="second_range">
                        <small>
                            <a href="{% url 'website:filter' question.category question.tutorial question.minute_range question.second_range%}?qid={{ question.id }}">
                                {{ question.second_range }} sec
                            </a>
                        </small>
                    </span>
                    
                    <span class="meta">
                        <small>
                                <i>
                                    {{ question.date_created }}
                                </i>
                        </small>

                        <span class="user">
                            {{ question.user }}
                        </span>
                    </span>
                </div> <!-- /.question -->
    {% endfor %}
{% else %}
<h4>No results found . . .</h4>
{% endif %}