Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
7200ca0d
Commit
7200ca0d
authored
Jan 23, 2012
by
Bridger Maxwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to simplewiki
parent
cf9364fe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
simplewiki_base.html
+5
-5
simplewiki_searchresults.html
+1
-5
No files found.
simplewiki_base.html
View file @
7200ca0d
...
...
@@ -84,7 +84,7 @@
if
(
wiki_article
is
not
UNDEFINED
)
:
baseURL =
reverse("wiki_view",
args=
[wiki_article.get_url()])
else:
baseURL =
reverse("wiki_view",
args=
[""])
baseURL =
reverse("wiki_view",
args=
["
/
"])
%
>
<ul
class=
"action"
>
...
...
@@ -113,14 +113,14 @@
<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
)
:
baseURL =
reverse("wiki_
view
",
args=
[wiki_article.get_url()])
baseURL =
reverse("wiki_
create
",
args=
[wiki_article.get_url()])
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>
<label
for=
"id_wiki_article_name"
>
Title of article
</label>
...
...
simplewiki_searchresults.html
View file @
7200ca0d
...
...
@@ -16,11 +16,7 @@
<
%
block
name=
"wiki_body"
>
%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/>
%else:
<a
href=
"${reverse("
wiki_view
",
args=
[''])}"
>
/
</a><br/>
%endif
<a
href=
"${reverse("
wiki_view
",
args=
[article.get_url()])}"
>
${article.get_url()}
</a><br/>
%endfor
%if not wiki_search_results:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment