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
a285d1a6
Commit
a285d1a6
authored
Aug 22, 2012
by
Bridger Maxwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated wiki preview template and django-wiki version.
parent
eb62b80f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
lms/templates/wiki/preview_inline.html
+13
-4
repo-requirements.txt
+1
-1
No files found.
lms/templates/wiki/preview_inline.html
View file @
a285d1a6
...
...
@@ -10,22 +10,31 @@
<div
class=
"main-article"
>
{% if revision %}
<div
class=
"alert alert-info"
>
<strong>
{% trans "Previewing revision" %}:
</strong>
{{ revision.created }} (#{{ revision.revision_number }}) by {% if revision.user %}{{ revision.user }}{% else %}{% if user|is_moderator %}{{ revision.ip_address|default:"anonymous (IP not logged)" }}{% else %}{% trans "anonymous (IP logged)" %}{% endif %}{% endif %}
<strong>
{% trans "Previewing revision" %}:
</strong>
{% include "wiki/includes/revision_info.html" %}
</div>
{% endif %}
{% if merge %}
<div
class=
"alert alert-info"
>
<strong>
{% trans "Previewing merge between" %}:
</strong>
{
{ merge1.created }} (#{{ merge1.revision_number }}) by {% if merge1.user %}{{ merge1.user }}{% else %}{% if user|is_moderator %}{{ merge1.ip_address|default:"anonymous (IP not logged)" }}{% else %}{% trans "anonymous (IP logged)" %}{% endif %}{% endif
%}
{
% include "wiki/includes/revision_info.html" with revision=merge1
%}
<strong>
{% trans "and" %}
</strong>
{
{ merge1.created }} (#{{ merge1.revision_number }}) by {% if merge1.user %}{{ merge1.user }}{% else %}{% if user|is_moderator %}{{ merge1.ip_address|default:"anonymous (IP not logged)" }}{% else %}{% trans "anonymous (IP logged)" %}{% endif %}{% endif
%}
{
% include "wiki/includes/revision_info.html" with revision=merge2
%}
</div>
{% endif %}
<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 %}
</div>
</section>
...
...
repo-requirements.txt
View file @
a285d1a6
-e git://github.com/MITx/django-staticfiles.git@6d2504e5c8#egg=django-staticfiles
-e git://github.com/MITx/django-pipeline.git#egg=django-pipeline
-e git://github.com/benjaoming/django-wiki.git@
a8dbb5f
#egg=django-wiki
-e git://github.com/benjaoming/django-wiki.git@
9865b5c
#egg=django-wiki
-e git://github.com/dementrock/pystache_custom.git@776973740bdaad83a3b029f96e415a7d1e8bec2f#egg=pystache_custom-dev
-e common/lib/capa
-e common/lib/xmodule
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