]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/question_edit_tips.html
Add the page for more explanation of how to use markdown. If anyone has any ideas...
[osqa.git] / forum / skins / default / templates / question_edit_tips.html
1 <!-- question_edit_tips.html -->
2 {% load i18n %}
3 {% block forejs %}
4         <script type="text/javascript">
5             var currentSideBar = 'div#title_side_bar';
6             function changeSideBar(enabled_bar) {
7                 $(currentSideBar).hide();
8                 currentSideBar = enabled_bar;
9                 $(currentSideBar).fadeIn('slow');
10
11             }
12             $(function () {
13                 $('div#editor_side_bar').hide();
14                 $('div#tags_side_bar').hide();
15
16                 $('input#id_title').focus(function(){changeSideBar('div#title_side_bar')});
17                 $('textarea#editor').focus(function(){changeSideBar('div#editor_side_bar')});
18                 $('input#id_tags').focus(function(){changeSideBar('div#tags_side_bar')});
19             });
20         </script>
21 {% endblock %}
22 <div class="boxC" id="title_side_bar">
23     <p class="subtitle darkred">{% trans "Title Tips" %}</p>
24     <div>
25         <ul class="list-item">
26             <li>
27             <b>
28                 {% blocktrans with settings.APP_SHORT_NAME as app_title %}
29                 ask a question relevant to the {{ app_title }} community 
30                 {% endblocktrans %}
31             </b>
32             </li>
33             <li>
34                 {% trans "please try provide enough details" %}
35             </li>
36             <li>
37                                 {% trans "be clear and concise" %}
38             </li>
39         </ul>
40         <p class='info-box-follow-up-links'>
41             <a href="{% url faq %}" target="_blank" title="{% trans "see frequently asked questions" %}">{% trans "faq" %} »</a>
42         </p>
43     </div>
44 </div>
45
46 <div class="boxC" id="editor_side_bar">
47     <p class="subtitle darkred">{% trans "Markdown Basics" %}</p>
48     <ul class="list-item">
49         <li>
50             {% trans "*italic* or __italic__" %}
51         </li>
52         <li>
53                         {% trans "**bold** or __bold__" %}
54         </li>
55         <li>
56             <b>{% trans "link" %}</b>:[{% trans "text" %}](http://url.com/ "{% trans "title" %}")
57
58         </li>
59
60         <li>
61             <b>{% trans "image" %}</b>:![alt {% trans "text" %}](/path/img.jpg "{% trans "title" %}")
62
63         </li>
64         <li>
65                         {% trans "numbered list:" %}
66             1.  Foo
67             2.  Bar
68         </li>
69         <li>
70                         {% trans "basic HTML tags are also supported" %}
71         </li>
72     </ul>
73     <p class='info-box-follow-up-links'>
74         <a href="/markdown_help" target="_blank">{% trans "learn more about Markdown" %} </a>
75     </p>
76 </div>
77
78 <div class="boxC" id="tags_side_bar" align="left">
79     <p class="subtitle darkred">{% trans "What Are Tags" %}</p>
80     <ul class="list-item">
81         <li>
82             {% trans "Tags are words that will tell others what this question is about." %}
83         </li>
84         <li>
85             {% trans "They will help other find your question." %}
86         </li>
87         <li>
88             {% trans "A question can have up to five tags, but it must have at least one." %}
89         </li>
90     </ul>
91 </div>
92
93
94 <!-- end question_edit_tips.html -->