diff pylons_app/templates/search/search.html @ 478:7010af6efde5 celery

Reimplemented searching for speed on large files and added paging for search results Updated setup requirements
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 16 Sep 2010 02:59:47 +0200
parents b153a51b1d3b
children 87d80c84df09
line wrap: on
line diff
--- a/pylons_app/templates/search/search.html	Tue Sep 14 17:34:15 2010 +0200
+++ b/pylons_app/templates/search/search.html	Thu Sep 16 02:59:47 2010 +0200
@@ -46,7 +46,7 @@
 					h.url('files_home',repo_name=sr['repository'],revision='tip',f_path=sr['f_path']))}</div>
 				</div>
 				<div class="code-body">
-					<pre>${h.literal(sr['content_short'])}</pre>
+					<pre>${h.literal(sr['content_short_hl'])}</pre>
 				</div>
 			</div>
 		</div>
@@ -59,11 +59,13 @@
 			</div>		
 			%endif
 			
-		%endif
+		%endif		
 	%endfor
-
-	
-	
+	%if c.cur_query:
+	<div class="pagination-wh pagination-left">
+		${c.formated_results.pager('$link_previous ~2~ $link_next')}
+	</div>	
+	%endif
 </div>
 
 </%def>