Commit 7200ca0d by Bridger Maxwell

Update to simplewiki

parent cf9364fe
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
if (wiki_article is not UNDEFINED): if (wiki_article is not UNDEFINED):
baseURL = reverse("wiki_view", args=[wiki_article.get_url()]) baseURL = reverse("wiki_view", args=[wiki_article.get_url()])
else: else:
baseURL = reverse("wiki_view", args=[""]) baseURL = reverse("wiki_view", args=["/"])
%> %>
<ul class="action"> <ul class="action">
...@@ -113,14 +113,14 @@ ...@@ -113,14 +113,14 @@
<div id="wiki_create_form"> <div id="wiki_create_form">
<% <%
theaction = "this.wiki_article_name.value.replace(/([^a-zA-Z0-9\-])/g, '')+'/_create/'" theaction = "this.wiki_article_name.value.replace(/([^a-zA-Z0-9\-])/g, '')"
if (wiki_article is not UNDEFINED): if (wiki_article is not UNDEFINED):
baseURL = reverse("wiki_view", args=[wiki_article.get_url()]) baseURL = reverse("wiki_create", args=[wiki_article.get_url()])
else: else:
baseURL = reverse("wiki_view", args=[""]) baseURL = reverse("wiki_create", args=["/"])
%> %>
<form method="GET" onsubmit="this.action='${baseURL + "/' + " + theaction};"> <form method="GET" onsubmit="this.action='${baseURL + "' + " + theaction};">
<div> <div>
<label for="id_wiki_article_name">Title of article</label> <label for="id_wiki_article_name">Title of article</label>
......
...@@ -16,11 +16,7 @@ ...@@ -16,11 +16,7 @@
<%block name="wiki_body"> <%block name="wiki_body">
%for article in wiki_search_results: %for article in wiki_search_results:
%if article is not UNDEFINED: <a href="${reverse("wiki_view", args=[article.get_url()])}">${article.get_url()}</a><br/>
<a href="${reverse("wiki_view", args=[article.get_url()])}">${article.get_url()}</a><br/>
%else:
<a href="${reverse("wiki_view", args=[''])}">/</a><br/>
%endif
%endfor %endfor
%if not wiki_search_results: %if not wiki_search_results:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment