diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2009-07-10 19:15:28 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2009-07-10 19:15:28 -0400 |
commit | 35b666224a05fbd249b1c51a0a48fb95b246fe9a (patch) | |
tree | bfce966ce040dd849e8cc35a012d18f7632ad6b1 /templates/tough | |
parent | 5b45e526c74faf55110ff0afdcba19797d7e0f4d (diff) | |
download | askbot-35b666224a05fbd249b1c51a0a48fb95b246fe9a.tar.gz askbot-35b666224a05fbd249b1c51a0a48fb95b246fe9a.tar.bz2 askbot-35b666224a05fbd249b1c51a0a48fb95b246fe9a.zip |
adding all files again
Diffstat (limited to 'templates/tough')
-rw-r--r-- | templates/tough/faq.html | 110 | ||||
-rw-r--r-- | templates/tough/question_retag.html | 107 | ||||
-rw-r--r-- | templates/tough/unanswered.html | 115 |
3 files changed, 332 insertions, 0 deletions
diff --git a/templates/tough/faq.html b/templates/tough/faq.html new file mode 100644 index 00000000..9b43a9ca --- /dev/null +++ b/templates/tough/faq.html @@ -0,0 +1,110 @@ +{% extends "base_content.html" %} +{% load extra_tags %} +{% load humanize %} +{% block title %}{% spaceless %}FAQ{% endspaceless %}{% endblock %} +{% block forejs %} +{% endblock %} +{% block content %} +<div class="headNormal"> + {% trans "Frequently Asked Questions " %}(FAQ) +</div> +<div id="main-body" style="width:100%"> + + <h3 class="subtitle">{% trans "What kinds of questions can I ask here?" %}</h3> + <p>{% trans "Most importanly - questions should be <strong>relevant</strong> to this community." %}<br> + {% trans "Before asking the question - please make sure to use search to see whether your question has alredy been answered."%}<br> + </p><br> + + <h3 class="subtitle">{% trans "What questions should I avoid asking?" %}</h3> + <p>{% trans "Please avoid asking questions that are not relevant to this community, too subjective and argumentative." %}</p> + </p><br> + + <h3 class="subtitle">{% trans "What should I avoid in my answers?" %}</h3> + <p>{% trans "site title" %} {% trans "is a Q&A site, not a discussion group. Therefore - please avoid having discussions in your answers, comment facility allows some space for brief discussions." %} + </p><br> + + <h3 class="subtitle">{% trans "Who moderates this community?" %}</h3> + <p>{% trans "The short answer is: <strong>you</strong>." %}<br> + {% trans "This website is moderated by the users." %} + {% trans "The reputation system allows users earn the authorization to perform a variety of moderation tasks." %} + </p><br> + + <h3 class="subtitle">{% trans "How does reputation system work?" %}</h3> + <p>{% trans "Anyone can ask questions and give answers, points are not necessary for that." %}<br> + {% trans "As we've said before, users help running this site. Point system helps select users who can administer this community."%} + {% trans "Reputation points roughly measure how community trusts you. These points are given to you directly by other members of the community." %} + </p> + <p> + {% trans "For example, if you ask an interesting question or give a helpful answer, your input will be upvoted and you will gain more trust in the community." %} + {% trans "If on the other hand someone gives a misleading answer, the answer will be voted down and he/she loses some points." %} + {% trans "Each vote in favor will generate <strong>10</strong> points, each vote against will subtract <strong>2</strong> points." trans %} + {% trans "Through the votes of other people you can accumulate a maximum of <strong>200</strong> points." %} + {% "After accumulating certain number of points, you can do more:" %} + <table style="font-family:arial;" cellspacing="3" cellpadding="3"> + <tr> + <th width="40px" style="text-align:right"></th> + <th width="300px"></th> + </tr> + <tr> + <td style="text-align:right;padding-right:5px"><strong>15</strong></td> + <td>{% trans "upvote" %}</td> + </tr> + <tr> + <td style="text-align:right;padding-right:5px"><strong>15</strong></td> + <td>{% trans "use tags" %}</td> + </tr> + <tr> + <td style="text-align:right;padding-right:5px"><strong>50</strong></td> + <td>{% trans "add comments" %}</td> + </tr> + <tr> + <td style="text-align:right;padding-right:5px"><strong>100</strong></td> + <td>{% trans "downvote" %}</td> + </tr><tr> + <td style="text-align:right;padding-right:5px"><strong>250</strong></td> + <td>打开关闭自己的问题</td> + </tr> + <tr> + <td style="text-align:right;padding-right:5px"><strong>500</strong></td> + <td>{% trans "retag questions" %}</td> + </tr> + <tr> + <td style="text-align:right;padding-right:5px"><strong>750</strong></td> + <td>{% trans "edit community wiki questions" %}</td> + </tr> + <tr> + <td style="text-align:right;padding-right:5px"><strong>2000</strong></td> + <td>{% trans "edit any answer" %}</td> + </tr> + <tr> + <td style="text-align:right;padding-right:5px"><strong>3000</strong></td> + <td>{% trans "open any closed question" %}</td> + </tr> + <tr> + <td style="text-align:right;padding-right:5px"><strong>5000</strong></td> + <td>{% trans "delete any comment" %}</td> + </tr> + <tr> + <td style="text-align:right;padding-right:5px"><strong>10000</strong></td> + <td>{% trans "delete any questions and answers and perform other moderation tasks" %}</td> + </tr> + + </table> + + </p><br> + + <h3 class="subtitle">{% trans "To register, do I need to create new password?"</h3> + <p>{% trans "No, you don't have to. You can login through any service that supports OpenID, e.g. Google, Yahoo, AOL, etc." %} + <strong><a href="/account/signin">{% trans "Login now!" %}</a> »</strong> + </p><br> + + <h3 class="subtitle">{% trans "Why other people can edit my questions/answers?" %}</h3> + <p> {% trans "Goal of this site is..." %} {% trans "So questions and answers can be edited like wiki pages by experienced users of this site and this improves the overall quality of the knowledge base content." %} + {% trans "If this approach is not for you, we respect your choice." %} + </p><br> + <h3 class="subtitle">{% trans "Still have questions?" %}</h3> + <p>{% "Please ask your question, help make our community better!" %} <a href="/tags/faq" class="big">{% trans "site title" %} {% trans "questions" %}</a>{% trans "." %} + </p> + <br><br> +</div> +{% endblock %} diff --git a/templates/tough/question_retag.html b/templates/tough/question_retag.html new file mode 100644 index 00000000..105428f4 --- /dev/null +++ b/templates/tough/question_retag.html @@ -0,0 +1,107 @@ +{% extends "base.html" %} +{% block title %}{% spaceless %}{% trans "Revise tags" %}{% endspaceless %}{% endblock %} +{% block forejs %} + <script type='text/javascript' src='/content/js/com.cnprog.editor.js'></script> + <script type='text/javascript' src='/content/js/com.cnprog.post.js'></script> + <script type='text/javascript' src='/content/js/jquery.validate.pack.js'></script> + <script type="text/javascript"> + + $().ready(function(){ + $("#nav_questions").attr('className',"on"); + //Tags autocomplete action + var tags = {{ tags|safe }}; + $("#id_tags").autocomplete(tags, { + minChars: 1, + matchContains: true, + max: 20, + multiple: true, + multipleSeparator: " ", + formatItem: function(row, i, max) { + return row.n + " ("+ row.c +")"; + }, + formatResult: function(row, i, max){ + return row.n; + } + + }); + + $("#fmretag").validate({ + rules: { + tags: { + required: true, + maxength: 105 + } + }, + messages: { + tags: { + required: ' ' + {% trans "tags are requried" %}, + maxlength: ' ' + {% trans "up to 5 tags, less than 20 characters each" %}, + } + } + + }); + lanai.highlightSyntax(); + + }); + </script> +{% endblock %} + +{% block content %} +<div id="main-bar" class="headNormal"> + {% trans "Change tags" %} [<a href="{{ question.get_absolute_url }}">{% trans "back" %}</a>] +</div> +<div id="main-body" class="ask-body"> + <div id="askform"> + <form id="fmretag" action="{% url edit_question question.id %}" method="post" > + <h3> + {{ question.get_question_title }} + </h3> + <div id="description" class="edit-content-html"> + {{ question.html|safe }} + </div> + + + <div class="form-item"> + <strong>{{ form.tags.label_tag }}:</strong> <span class="form-error"></span><br> + {{ form.tags }} {{ form.tags.errors }} + <div class="title-desc"> + {{ form.tags.help_text }} + </div> + </div> + <br> + + <div class="error" ></div> + <input type="submit" value="{% trans "Change now" %}" class="submit" /> + <input type="button" value="{% trans "Cancel" %}" class="submit" onclick="history.back(-1);" /> + <br> + <br> + </form> + </div> +</div> +{% endblock %} + +{% block sidebar %} +<div class="boxC"> + <p class="subtitle">{% trans "Why use and modify tags?" %}</p> + <ul class="list-item"> + + <li> + {% trans "site title" %} {% trans "uses tags for the classification of questions %} + </li> + <li> + 修改完整问题需要用户的积分达到一定条件(比如:积分 >= 3000分,自己发布的问题除外),而用户积分达到比较低的时候,就可以修改问题的标签(比如:积分 >= 500, 这里指所有问题的标签)。 + + </li> + <li> + {% trans "tag editors receive special awards from the community" %} + </li> + </ul> + <a href="{% url faq %}" style="float:right;position:relative">faq »</a> + <br> +</div> + +{% endblock %} + +{% block endjs %} +{% endblock %} + diff --git a/templates/tough/unanswered.html b/templates/tough/unanswered.html new file mode 100644 index 00000000..94e778db --- /dev/null +++ b/templates/tough/unanswered.html @@ -0,0 +1,115 @@ +{% extends "base.html" %} +{% load extra_tags %} +{% load humanize %} +{% load extra_filters %} +{% block title %}{% spaceless %}{% trans "Unanswered questions" %}{% endspaceless %}{% endblock %} +{% block forejs %} + <script type="text/javascript"> + $().ready(function(){ + $("#nav_unanswered").attr('className',"on"); + }); + + </script> +{% endblock %} +{% block content %} +<div class="tabBar"> + <span class="headQuestions">{% trans "Unanswered questions" %}</span> + <div class="tabsA"> + <a id="latest" href="?sort=latest" class="on" title="{% trans "most recently asked questions" %}>{% trans "newest" %}</a> + </div> +</div> + +<div id="listA"> + {% for question in questions.object_list %} + <div class="qstA"> + <h2><a href="{{ question.get_absolute_url }}">{{ question.get_question_title }}</a></h2> + <div class="stat"> + <table> + <tr> + <td><span class="num">{{ question.answer_count|intcomma }}</span> </td> + <td><span class="num">{{ question.score|intcomma }}</span> </td> + <td><span class="num">{{ question.view_count|cnprog_intword|safe }}</span> </td> + </tr> + <tr> + <td><span class="unit">{% trans "answers" %}</span></td> + <td><span class="unit">{% trans "votes" %}</span></td> + <td><span class="unit">{% trans "views" %}</span></td> + </tr> + </table> + </div> + <div class="summary"> + {{ question.summary }}... + </div> + + {% ifequal tab_id 'active'%} + {% if question.wiki %} + <span class="from wiki">{% trans "community wiki" %}</span> + <span class="date" title="{{ question.added_at }}">{% diff_date question.added_at %}</span> + {% else %} + <div class="from"> + {% comment %}{% gravatar question.last_activity_by 24 %}{% endcomment %} + <span class="author"><a href="{{ question.last_activity_by.get_profile_url }}">{{ question.last_activity_by }}</a></span> + <span class="score">{% get_score_badge question.last_activity_by %} </span> + <span class="date" title="{{ question.last_activity_at }}">{% diff_date question.last_activity_at %}</span> + </div> + {% endif %} + {% else %} + {% if question.wiki %} + <span class="from wiki">{% trans "community wiki" %}</span> + <span class="date" title="{{ question.added_at }}">{% diff_date question.added_at %}</span> + {% else %} + <div class="from"> + {% comment %}{% gravatar question.author 24 %}{% endcomment %} + <span class="author"><a href="{{ question.author.get_profile_url }}">{{ question.author }}</a></span> + <span class="score">{% get_score_badge question.author %} </span> + <span class="date" title="{{ question.added_at }}">{% diff_date question.added_at %}</span> + </div> + {% endif %} + {% endifequal %} + + <div class="tags"> + {% for tag in question.tagname_list %} + <a href="{% url forum.views.tag tag|urlencode %}" title="{% trans "see questions tagged" %}'{{ tag }}'{% trans "using tags" %}" rel="tag">{{ tag }}</a> + {% endfor %} + </div> + </div> + {% endfor %} +</div> +{% endblock %} + +{% block tail %} + <div class="pager"> + {% cnprog_paginator context %} + + </div> + <div class="pagesize"> + {% cnprog_pagesize context %} + </div> +{% endblock %} + +{% block sidebar %} +<div class="boxC"> + <p> + <!--todo: move this to blocktrans --> + {% tans "Have a total of" %}<br><div class="questions-count">{{ questions_count|intcomma }}</div> + <p>{% trans "number of <strong>unanswered</strong> questions" %}</p> + <p>问题按 <strong>问题创建时间</strong> 排序。最新加入的问题将显示在最前面。</p> + + </p> +</div> +<div class="boxC"> + <h3 class="subtitle">{% trans "Related tags" %}</h3> + <div class="body"> + <div class="tags"> + {% for tag in tags %} + <a rel="tag" title="{% trans "see questions tagged"%}'{{ tag.name }}'{% trans "using tags" %}" href="{% url forum.views.tag tag.name|urlencode %}">{{ tag.name }}</a> + <span class="tag-number">× {{ tag.used_count|intcomma }}</span> + <br> + {% endfor %} + <br> + </div> + </div> +</div> + +{% endblock %} + |