summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7395cbb)
{% endif %}
<dl class="list-item">
{% endif %}
<dl class="list-item">
- <dt>» <a href="{% url user_changepw %}">{% trans "Change password" %}</a></dt>
+ <dt>» <a href="{% url user_changepw %}">{% trans "Change password" %}</a></dt>
<dd>{% trans "Give your account a new password." %}</dd>
{% comment %}
<dd>{% trans "Give your account a new password." %}</dd>
{% comment %}
- <dt>» <a href="{% url user_changeemail %}">{% trans "Change email " %}</a></dt>
+ <dt>» <a href="{% url user_changeemail %}">{% trans "Change email " %}</a></dt>
<dd>{% trans "Add or update the email address associated with your account." %}</dd>
<dd>{% trans "Add or update the email address associated with your account." %}</dd>
- <dt>» <a href="{% url user_changeopenid %}">{% trans "Change OpenID" %}</a></dt>
+ <dt>» <a href="{% url user_changeopenid %}">{% trans "Change OpenID" %}</a></dt>
<dd>{% trans "Change openid associated to your account" %}</dd>
<dd>{% trans "Change openid associated to your account" %}</dd>
- <dt>» <a href="{% url user_delete %}">{% trans "Delete account" %}</a></dt>
+ <dt>» <a href="{% url user_delete %}">{% trans "Delete account" %}</a></dt>
<dd>{% trans "Erase your username and all your data from website" %}</dd>
{% endcomment %}
</dl>
<dd>{% trans "Erase your username and all your data from website" %}</dd>
{% endcomment %}
</dl>
</li>
</ul>
<p class='info-box-follow-up-links'>
</li>
</ul>
<p class='info-box-follow-up-links'>
- <a href="{% url faq %}" target="_blank" title="{% trans "see frequently asked questions" %}">faq »</a>
+ <a href="{% url faq %}" target="_blank" title="{% trans "see frequently asked questions" %}">faq »</a>
</li>
</ul>
<p class='info-box-follow-up-links'>
</li>
</ul>
<p class='info-box-follow-up-links'>
- <a href="{% url faq %}" target="_blank" title="{% trans "see frequently asked questions" %}">{% trans "faq" %} »</a>
+ <a href="{% url faq %}" target="_blank" title="{% trans "see frequently asked questions" %}">{% trans "faq" %} »</a>
<li>
{% trans "tags help us keep Questions organized" %}
</li>
<li>
{% trans "tags help us keep Questions organized" %}
</li>
- {% comment %}
- <li>
- 修改完整问题需要用户的积分达到一定条件(比如:积分 >= 3000分,自己发布的问题除外),而用户积分达到比较低的时候,就可以修改问题的标签(比如:积分 >= 500, 这里指所有问题的标签)。
- </li>
- {% endcomment %}
<li>
{% trans "tag editors receive special awards from the community" %}
</li>
</ul>
<p class='info-box-follow-up-links'>
<li>
{% trans "tag editors receive special awards from the community" %}
</li>
</ul>
<p class='info-box-follow-up-links'>
- <a href="{% url faq %}">faq »</a>
+ <a href="{% url faq %}">faq »</a>
context_instance=RequestContext(request))
def media(request, skin, path):
context_instance=RequestContext(request))
def media(request, skin, path):
- return serve(request, "%s/media/%s" % (skin, path),
+ response = serve(request, "%s/media/%s" % (skin, path),
document_root=os.path.join(os.path.dirname(os.path.dirname(__file__)), 'skins').replace('\\', '/'))
document_root=os.path.join(os.path.dirname(os.path.dirname(__file__)), 'skins').replace('\\', '/'))
+ content_type = response['Content-Type']
+ if ('charset=' not in content_type):
+ if (content_type.startswith('text') or content_type=='application/x-javascript'):
+ content_type += '; charset=utf-8'
+ response['Content-Type'] = content_type
+ return response
+
def markdown_help(request):
return render_to_response('markdown_help.html', context_instance=RequestContext(request))
def markdown_help(request):
return render_to_response('markdown_help.html', context_instance=RequestContext(request))