<!-- template answer_edit_tips.html -->
-{% load i18n %}
+{% load i18n general_sidebar_tags %}
<div class="boxC">
<p class="subtitle darkred">{% trans "answer tips" %}</p>
<div>
</div>
</div>
-<div class="boxC">
- <p class="subtitle">{% trans "Markdown tips" %}</p>
- <ul class="list-item">
- <li>
- {% trans "*italic* or __italic__" %}
- </li>
- <li>
- {% trans "**bold** or __bold__" %}
- </li>
- <li>
- <b>{% trans "link" %}</b>:[{% trans "text" %}](http://url.com/ "{% trans "title" %}")
-
- </li>
- <li>
- <b>{% trans "image" %}</b>:![alt {% trans "text" %}](/path/img.jpg "{% trans "title" %}")
-
- </li>
- <li>
- {% trans "numbered list:" %}
- 1. Foo
- 2. Bar
- </li>
- <li>
- {% trans "basic HTML tags are also supported" %}
- </li>
- </ul>
- <p class='info-box-follow-up-links'>
- <a href="{% url markdown_help %}" target="_blank">{% trans "learn more about Markdown" %} </a>
- </p>
-</div>
+{% markdown_help %}
<!-- end template answer_edit_tips.html -->
{% extends "base.html" %}\r
\r
-{% load i18n %}\r
-{% load extra_tags %}\r
+{% load i18n extra_tags general_sidebar_tags %}\r
\r
{% block forejs %}\r
<link rel="stylesheet" type="text/css" media="screen" href="{% media "/media/style/admin.css" %}"/>\r
</ul>\r
</div>\r
{% if markdown %}\r
-\r
- <div class="boxC">\r
- <p class="subtitle">{% trans "Markdown tips" %}</p>\r
- <ul class="list-item">\r
- <li>\r
- {% trans "*italic* or __italic__" %}\r
- </li>\r
- <li>\r
- {% trans "**bold** or __bold__" %}\r
- </li>\r
- <li>\r
- <b>{% trans "link" %}</b>:[{% trans "text" %}](http://url.com/ "{% trans "title" %}")\r
-\r
- </li>\r
-\r
- <li>\r
- <b>{% trans "image" %}</b>?![alt {% trans "text" %}](/path/img.jpg "{% trans "title" %}")\r
-\r
- </li>\r
- <li>\r
- {% trans "numbered list:" %}\r
- 1. Foo\r
- 2. Bar\r
- </li>\r
- <li>\r
- {% trans "basic HTML tags are also supported" %}\r
- </li>\r
- </ul> <p class='info-box-follow-up-links'>\r
- <a href="http://en.wikipedia.org/wiki/Markdown" target="_blank">{% trans "learn more about Markdown" %} </a>\r
- </p>\r
- </div>\r
+ {% markdown_help %}\r
{% endif %}\r
{% endblock %}\r
\r
<!-- question_edit_tips.html -->
-{% load i18n %}
+{% load i18n general_sidebar_tags %}
<div class="boxC" id="title_side_bar">
<p class="subtitle darkred">{% trans "Title Tips" %}</p>
<div>
</div>
</div>
-<div class="boxC" id="editor_side_bar">
- <p class="subtitle darkred">{% trans "Markdown Basics" %}</p>
- <ul class="list-item">
- <li>
- {% trans "*italic* or __italic__" %}
- </li>
- <li>
- {% trans "**bold** or __bold__" %}
- </li>
- <li>
- <b>{% trans "link" %}</b>:[{% trans "text" %}](http://url.com/ "{% trans "title" %}")
-
- </li>
-
- <li>
- <b>{% trans "image" %}</b>:![alt {% trans "text" %}](/path/img.jpg "{% trans "title" %}")
-
- </li>
- <li>
- {% trans "numbered list:" %}
- 1. Foo
- 2. Bar
- </li>
- <li>
- {% trans "basic HTML tags are also supported" %}
- </li>
- </ul>
- <p class='info-box-follow-up-links'>
- <a href="{% url markdown_help %}" target="_blank">{% trans "learn more about Markdown" %} </a>
- </p>
-</div>
+{% markdown_help %}
<div class="boxC" id="tags_side_bar" align="left">
<p class="subtitle darkred">{% trans "What Are Tags" %}</p>
\r
register = template.Library()\r
\r
-@register.inclusion_tag('sidebar/recent_tags.html')\r
-def recent_tags():\r
- return {'tags': Tag.active.order_by('-id')[:settings.RECENT_TAGS_SIZE]}\r
+@register.inclusion_tag('sidebar/markdown_help.html')\r
+def markdown_help():\r
+ return {}\r
\r
@register.inclusion_tag('sidebar/recent_awards.html')\r
def recent_awards():\r
'wrap': not settings.SIDEBAR_LOWER_DONT_WRAP,\r
'blockid': 'sidebar-lower'\r
}\r
+\r
+@register.inclusion_tag('sidebar/recent_tags.html')\r
+def recent_tags():\r
+ return {'tags': Tag.active.order_by('-id')[:settings.RECENT_TAGS_SIZE]}\r
+\r
+
\ No newline at end of file