]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/webapps/wiki/search.xml
webapps.wiki: adding search bar
[factor.git] / extra / webapps / wiki / search.xml
diff --git a/extra/webapps/wiki/search.xml b/extra/webapps/wiki/search.xml
new file mode 100644 (file)
index 0000000..ffb4310
--- /dev/null
@@ -0,0 +1,21 @@
+<?xml version='1.0' ?>
+
+<t:chloe xmlns:t="http://factorcode.org/chloe/1.0">
+
+    <t:title>Search results for '<t:label t:name="search"/>'</t:title>
+
+       <div class="description">
+       <ul>
+               <t:bind-each t:name="results">
+                       <li>
+                               <t:a t:href="$wiki/view" t:rest="title"><t:label t:name="title"/></t:a>
+                       </li>
+               </t:bind-each>
+    </ul>
+    </div>
+
+    <t:if t:value="empty">
+    <p>No results found!</p>
+    </t:if>
+
+</t:chloe>