search.html

This commit is contained in:
Karen 2012-06-02 00:37:36 +05:30
parent 623fb97cbb
commit ac37b0922d
2 changed files with 14 additions and 4 deletions

View File

@ -650,7 +650,7 @@ box-shadow:2px 3px 16px #252425;}
width:400px; /*SANJ, is it ok to give this width?*/
margin:0 auto;
font-family:Arial, Helvetica, 'DejaVu Sans', sans-serif;
font-size:14px;
font-size:12px;
color:#666;
padding:20px;
}
@ -665,6 +665,18 @@ margin-bottom:12px;
vertical-align:bottom;
text-align:left;}
#searchContent a {
color:#FF8400;
text-decoration:none;
display:block;
margin-top:12px;
}
#searchContent a:hover, #searchContent a:focus {
color:#FF8400;
text-decoration:underline;
}
#id_q {
width:150px;
height:16px;

View File

@ -33,11 +33,9 @@
<h2>YOUR RESULTS:</h2>
{% for result in page.object_list %}
<p>
<a href="{{ result.object.get_absolute_url }}&amp;search={{ query }}">{{ result.object.title }}</a> <br />
<a href="{{ result.object.get_absolute_url }}&amp;search={{ query }}">{{ result.object.title }}</a>
{{ result.text|truncatewords:60|markdown|safe }}
</p>
{% empty %}
<p class="noResults">No results found.</p>
{% endfor %}