summaryrefslogtreecommitdiff
path: root/static/website/templates/ajax-time-search.html
diff options
context:
space:
mode:
authorJayaram Pai2013-12-17 12:02:11 +0530
committerJayaram Pai2013-12-17 12:02:11 +0530
commit2dbeb37d3b4ff113a2bfb881b5d1df6787bc8157 (patch)
treec3dc0f2b632f5be704a3ecf4d0d2bcc1cce6e849 /static/website/templates/ajax-time-search.html
parent3a680b5d2442268ab117c0f98f21a039d4544bd8 (diff)
downloadFOSSEE-Forum-2dbeb37d3b4ff113a2bfb881b5d1df6787bc8157.tar.gz
FOSSEE-Forum-2dbeb37d3b4ff113a2bfb881b5d1df6787bc8157.tar.bz2
FOSSEE-Forum-2dbeb37d3b4ff113a2bfb881b5d1df6787bc8157.zip
basic keyword/time search implemented
Diffstat (limited to 'static/website/templates/ajax-time-search.html')
-rw-r--r--static/website/templates/ajax-time-search.html55
1 files changed, 55 insertions, 0 deletions
diff --git a/static/website/templates/ajax-time-search.html b/static/website/templates/ajax-time-search.html
new file mode 100644
index 0000000..7d38a42
--- /dev/null
+++ b/static/website/templates/ajax-time-search.html
@@ -0,0 +1,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 %}