summaryrefslogtreecommitdiff
path: root/static/website
diff options
context:
space:
mode:
authorashwinishinde2015-05-14 11:35:08 +0530
committerashwinishinde2015-05-14 11:35:08 +0530
commite68d57dba6f9193d75c48d218dd98c7592e776ee (patch)
tree570d2008ca4e31247f1eb04bc339508cd628a994 /static/website
parent0e3fdb61376f2037a7f0745bc363b946eafd5517 (diff)
downloadFOSSEE-Forum-e68d57dba6f9193d75c48d218dd98c7592e776ee.tar.gz
FOSSEE-Forum-e68d57dba6f9193d75c48d218dd98c7592e776ee.tar.bz2
FOSSEE-Forum-e68d57dba6f9193d75c48d218dd98c7592e776ee.zip
Subject: Search By Keyword
Description: 1)solved problem in filter.
Diffstat (limited to 'static/website')
-rw-r--r--static/website/templates/ajax-keyword-search.html49
-rw-r--r--static/website/templates/filter.html4
2 files changed, 13 insertions, 40 deletions
diff --git a/static/website/templates/ajax-keyword-search.html b/static/website/templates/ajax-keyword-search.html
index 6200d95..a8e98aa 100644
--- a/static/website/templates/ajax-keyword-search.html
+++ b/static/website/templates/ajax-keyword-search.html
@@ -8,7 +8,7 @@
<br>
<table class="table table-striped table-bordered table-hover">
<th> FOSS </th>
- <th> Question</th>
+ <th> Question<span class="glyphicon glyphicon-link"></span></th>
<th> Date</th>
<th> Views</th>
<th> Answers</th>
@@ -17,45 +17,18 @@
{% for question in questions %}
<tr>
<td>
- <span href="#" class="category" data-toggle="tooltip" data-placement="top" title="{{ question.category}}">
- {{ question.category|truncatechars:12 }}
- </span>
- <a class="pull-right" href="{% url 'website:filter' question.category %}?qid={{ question.id }}">
- <span class="glyphicon glyphicon-search"></span>
- </a>
- </td>
+ <span class="category" data-toggle="tooltip" data-placement="top" title="{{ question.category }}">
+ <a class="pull-left" href="{% url 'website:filter' question.category %}?qid={{ question.id }}">
+ {{ question.category|truncatechars:12 }} </a>
+ </span>
+ </td>
- <!--
- <td>
- <span class="tutorial" data-toggle="tooltip" data-placement="top" title="{{ question.tutorial}}">
- {{ question.tutorial|truncatechars:12 }}
- </span>
- <a class="pull-right" href="{% url 'website:filter' question.category question.tutorial %}?qid={{ question.id }}">
- <span class="glyphicon glyphicon-search"></span>
- </a>
- </td>
+ <td>
+ <span class="question" data-toggle="tooltip" data-placement="top" title="{{ question.title }}">
+ <a href="{% url 'website:get_question' question.id %}{% prettify question.title %}">{{ question.title|truncatechars:40 }}</a>
+ </span>
+ </td>
- <td>
- <span>
- <a href="{% url 'website:filter' question.category question.tutorial question.minute_range %}?qid={{ question.id }}">
- {{ question.minute_range }}
- </a>
- </span>
- </td>
-
- <td>
- <span>
- <a href="{% url 'website:filter' question.category question.tutorial question.minute_range question.second_range%}?qid={{ question.id }}">
- {{ question.second_range }}
- </a>
- </span>
- </td> -->
-
- <td>
- <span class="title" data-toggle="tooltip" data-placement="top" title="{{ question.title }}">
- <a href="{% url 'website:get_question' question.id %}{% prettify question.title %}">{{ question.title|truncatechars:40 }}</a>
- </span>
- </td>
<td>
<span>
diff --git a/static/website/templates/filter.html b/static/website/templates/filter.html
index d0c57f0..f04f226 100644
--- a/static/website/templates/filter.html
+++ b/static/website/templates/filter.html
@@ -27,7 +27,7 @@
<table class="table table-bordered">
<th> FOSS </th>
- <th> Question</th>
+ <th> Question <span class="glyphicon glyphicon-link"></span></th>
<th> Date</th>
<th> Views</th>
<th> Answers</th>
@@ -35,7 +35,7 @@
{% for question in questions %}
<tr {% if question.id == qid %}class="parent-filter"{% endif %}>
<td>
- <span class="category" data-toggle="tooltip" data-placement="top" title="{{ question.category}}">
+ <span class="category" data-toggle="tooltip" data-placement="top" title="{{ question.category }}">
<a class="pull-left" href="{% url 'website:filter' question.category %}?qid={{ question.id }}">
{{ question.category|truncatechars:12 }} </a>
</span>