Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-wiki
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
OpenEdx
django-wiki
Commits
9865b5c6
Commit
9865b5c6
authored
Aug 22, 2012
by
Bridger Maxwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed preview to show warning when previewing a deleted revision.
parent
d2f08a3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
wiki/templates/wiki/preview_inline.html
+8
-1
No files found.
wiki/templates/wiki/preview_inline.html
View file @
9865b5c6
...
...
@@ -21,6 +21,13 @@
<h1
class=
"page-header"
>
{{ title }}
</h1>
{% wiki_render article content %}
{% if revision and revision.deleted %}
<div
class=
"warning"
>
<strong>
This revision has been deleted.
</strong>
<p>
Restoring to this revision will mark the article as deleted.
</p>
</div>
{% else %}
{% wiki_render article content %}
{% endif %}
{% endblock %}
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