Improves search.

This commit is contained in:
Dominik Picheta 2014-12-07 02:53:10 +00:00
commit 8af27ae64d
3 changed files with 18 additions and 18 deletions

View file

@ -329,26 +329,17 @@
</div>
<div class="topic">
<div>
#if %threadName != %postHeader and "Re: " & %threadName != %postHeader:
#headersDiffer = true
<h4>
<a href="${threadUrl}">
<span class="titleHeader">Thread:</span>
<span style="font-size: 1.2em">${%threadName}</span>
</a>
</h4>
#end if
#if not headersDiffer or %postHeader != "":
<h5>
#if %postHeader != "":
<div class="postTitle">
<span class="titleHeader">Post:</span>
<a href="${postUrl}">
<span class="titleHeader">Post:</span>
<span>${%postHeader}</span>
</a>
</h5>
</div>
#end if
#if not isThread:
#try:
${(%postContent)}
${(%postContent).rstToHtml}
#except EParseError:
# c.errorMsg = getCurrentExceptionMsg()
#end

View file

@ -43,7 +43,7 @@ SELECT
THEN snippet(post_fts, '<b>', '</b>', '...', what)
ELSE post_fts.header END AS header,
CASE what WHEN 2
THEN snippet(post_fts, '<b>', '</b>', '...', what, -45)
THEN snippet(post_fts, '**', '**', '...', what, -45)
ELSE SUBSTR(post_fts.content, 1, 200) END AS content,
person.name AS author,
cdate,

View file

@ -192,7 +192,6 @@ pre .end { background:url("/images/tabEnd.png") no-repeat left bottom; }
line-height: 150%;
background:rgba(0,0,0,0.1);
}
#talk-thread > div:nth-child(odd) { background:rgba(255,255,255,0.1); }
#talk-threads > div:nth-child(odd) { background:rgba(0,0,0,0.2); }
#talk-thread > div > div,
#talk-threads > div > div
@ -558,7 +557,7 @@ hr
/* highlighting current post */
div:target {
background: rgba(255, 255, 240, 0.25) !important;
background: rgba(139, 218, 255, 0.25) !important;
}
/* full-text search */
@ -569,7 +568,17 @@ div:target {
}
.titleHeader {
margin-right: 1em;
color: #ddd;
color: #121212;
font-weight: bold;
}
.postTitle b {
border-bottom: 1px solid #D7300C;
}
.postTitle a:hover {
text-decoration: none !important;
border-bottom: 1px solid #D7300C;
}
.searchForm {