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
d94ef545
Commit
d94ef545
authored
Aug 23, 2012
by
Carlos Andrés Rocha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added cheatsheet popup to wiki editor.
parent
d05b3de0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
93 additions
and
10 deletions
+93
-10
lms/static/sass/course/wiki/_wiki.scss
+21
-2
lms/templates/wiki/base.html
+19
-8
lms/templates/wiki/includes/cheatsheet.html
+53
-0
No files found.
lms/static/sass/course/wiki/_wiki.scss
View file @
d94ef545
...
@@ -567,11 +567,30 @@ section.wiki {
...
@@ -567,11 +567,30 @@ section.wiki {
background
:
#f00
!
important
;
background
:
#f00
!
important
;
}
}
#cheatsheetLink
{
text-align
:right
;
display
:
float
;
}
#cheatsheetModal
{
width
:
350px
;
margin-left
:
100px
;
margin-top
:
-100px
;
}
#cheatsheet-body
{
background
:
#FFF
;
text-align
:
left
;
padding
:
10px
;
}
#cheatsheet-body
pre
{
color
:
#000
;
text-align
:
left
;
background
:
#EEE
;
margin
:
10px
;
padding
:
10px
;
}
/*-----------------
/*-----------------
...
...
lms/templates/wiki/base.html
View file @
d94ef545
...
@@ -27,21 +27,29 @@
...
@@ -27,21 +27,29 @@
});
});
}
}
</script>
</script>
{% addtoblock 'js' %}
{% addtoblock 'js' %}
{% comment %} These scripts load at the bottom of the body {% endcomment %}
{% comment %} These scripts load at the bottom of the body {% endcomment %}
<script
src=
"{% static 'js/bootstrap-alert.js' %}"
></script>
<script
src=
"{% static 'js/bootstrap-alert.js' %}"
></script>
<script
src=
"{% static 'js/bootstrap-collapse.js' %}"
></script>
<script
src=
"{% static 'js/bootstrap-collapse.js' %}"
></script>
<script
src=
"{% static 'js/bootstrap-modal.js' %}"
></script>
<script
src=
"{% static 'js/bootstrap-modal.js' %}"
></script>
{% with mathjax_mode='wiki' %}
{% with mathjax_mode='wiki' %}
{% include "mathjax_include.html" %}
{% include "mathjax_include.html" %}
{% endwith %}
{% endwith %}
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
editor
=
$
(
'#div_id_content div.controls'
);
cs
=
editor
.
prepend
(
'<a id="cheatsheetLink" href="#">cheatsheet</a>'
);
cs
.
click
(
function
()
{
$
(
'#cheatsheetModal'
).
modal
(
'show'
);
});
});
</script>
{% endaddtoblock %}
{% endaddtoblock %}
{% endblock %}
{% endblock %}
...
@@ -64,11 +72,14 @@
...
@@ -64,11 +72,14 @@
</div>
</div>
{% endfor %}
{% endfor %}
{% endif %}
{% endif %}
{% block wiki_contents %}{% endblock %}
{% block wiki_contents %}{% endblock %}
{% endblock %}
{% endblock %}
</div>
</div>
{% include "wiki/includes/cheatsheet.html" %}
</section>
</section>
{% endblock %}
{% endblock %}
lms/templates/wiki/includes/cheatsheet.html
0 → 100644
View file @
d94ef545
<section
id=
"cheatsheetModal"
class=
"modal hide fade"
>
<div
id=
"cheatsheet-body"
class=
"modal-body"
>
<h2>
Wiki Syntax Help
</h2>
<p>
This wiki uses
<strong>
Markdown
</strong>
for styling.
There are several
<a
href=
"http://daringfireball.net/projects/markdown/basics"
target=
"_blank"
>
useful
</a>
<a
href=
"http://greg.vario.us/doc/markdown.txt"
target=
"_blank"
>
guides
</a>
<a
href=
"http://www.lowendtalk.com/discussion/6/miniature-markdown-guide"
target=
"_blank"
>
online
</a>
.
<p>
To create a new wiki article, create a link to it. Clicking the link gives you the creation page.
<pre>
[Article Name](wiki:ArticleName)
</pre>
<h2>
Useful examples:
</h2>
<pre>
http://wikipedia.org
[Wikipedia](http://wikipedia.org)
[edX Wiki](wiki:/edx/)
</pre>
<pre>
Huge Header
===========
</pre>
<pre>
Smaller Header
--------------
</pre>
<pre>
*emphasis* or _emphasis_
</pre>
<pre>
**strong** or __strong__
</pre>
<pre>
- Unordered List
- Sub Item 1
- Sub Item 2
</pre>
<pre>
1. Ordered
2. List
</pre>
<pre>
> Quotes
</pre>
<h2>
edX Additions:
</h2>
<pre>
circuit-schematic:
</pre>
<pre>
$LaTeX Math Expression$
</pre>
</div>
</div>
</section>
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