simplewiki_searchresults.html 937 Bytes
Newer Older
1 2
##This file is based on the template from the SimpleWiki source which carries the GPL license

3 4
<%inherit file="simplewiki_base.html"/>

5
<%block name="title"><title>Wiki - Search Results - MITx 6.002x</title></%block>
6

7
<%!
8
    from simplewiki.views import wiki_reverse
9 10
%>

11
<%block name="wiki_page_title">
12
<h2 class="wiki-title">
13
%if wiki_search_query:
14
Search results for ${wiki_search_query | h}
15
%else:
16
Displaying all articles
17
%endif
18
</h2>
19 20 21
</%block>

<%block name="wiki_body">
22
<section class="results">
23 24 25
<ul class="article-list">
%for article in wiki_search_results:
<% article_deleted = not article.current_revision.deleted == 0 %>
26
<li><h3><a href="${wiki_reverse("wiki_view", article, course)}">${article.title} ${'(Deleted)' if article_deleted else ''}</a></h3></li>
27 28
%endfor

29
%if not wiki_search_results:
30 31 32
No articles matching <b>${wiki_search_query if wiki_search_query is not UNDEFINED else ""} </b>!
%endif
</ul>
33
</section>
34
</%block>