You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by an...@apache.org on 2013/02/11 11:42:29 UTC
svn commit: r1444731 - in /incubator/bloodhound/trunk:
bloodhound_search/bhsearch/templates/bhsearch.html
bloodhound_theme/bhtheme/htdocs/bloodhound.css
Author: andrej
Date: Mon Feb 11 10:42:28 2013
New Revision: 1444731
URL: http://svn.apache.org/r1444731
Log:
#260 improve search result rendering
Modified:
incubator/bloodhound/trunk/bloodhound_search/bhsearch/templates/bhsearch.html
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css
Modified: incubator/bloodhound/trunk/bloodhound_search/bhsearch/templates/bhsearch.html
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_search/bhsearch/templates/bhsearch.html?rev=1444731&r1=1444730&r2=1444731&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_search/bhsearch/templates/bhsearch.html (original)
+++ incubator/bloodhound/trunk/bloodhound_search/bhsearch/templates/bhsearch.html Mon Feb 11 10:42:28 2013
@@ -126,7 +126,7 @@
</py:if>
</div>
- <div class="${'span12' if not facet_counts else 'span9'}">
+ <div class="${'span12' if not facet_counts else 'span9 search_results'}">
<h2>
Results <small>(${results.displayed_items()})</small>
</h2>
@@ -177,8 +177,7 @@
<py:when test="name == 'cc'">${format_emails(ticket_context, value)}</py:when>
<py:when test="name == 'owner' and value">${authorinfo(value)}</py:when>
<py:when test="name == 'milestone'"><a py:if="value" title="View milestone" href="${href.milestone(value)}">${value}</a></py:when>
- <!--<py:when test="name == 'content'">${wiki_to_oneliner(ticket_context, value)}</py:when>-->
- <py:when test="header.wikify">${wiki_to_oneliner(ticket_context, value)}</py:when>
+ <!--<py:when test="header.wikify">${wiki_to_oneliner(ticket_context, value)}</py:when>-->
<py:otherwise>$value</py:otherwise>
</td>
</py:with>
@@ -195,7 +194,7 @@
<dl id="results">
<py:for each="result in results">
<dt><a href="${result.href}" class="searchable">${result.title}</a></dt>
- <dd class="searchable">${result.excerpt}</dd>
+ <dd class="searchable">${result.content}</dd>
<dd>
<py:if test="result.author"><span class="author" i18n:msg="author">By ${format_author(result.author)}</span> —</py:if>
<span class="date">${result.date}</span>
Modified: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css?rev=1444731&r1=1444730&r2=1444731&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css (original)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css Mon Feb 11 10:42:28 2013
@@ -548,6 +548,12 @@ input[type="submit"].btn.btn-micro {
}
}
+@media (min-width: 1200px) {
+ .search_results {
+ width: 920px;
+ }
+}
+
@media (min-width: 979px) and (max-width: 1199px) {
.main-nav ul {
background-color: red;