Commit afaa4413 authored by Leo Iannacone's avatar Leo Iannacone

Let's keep only modified files. Use default theme for others

parent ad6ebff5
{% extends "base_content.html" %}
{% load i18n %}
{% block title %}{% trans "Not logged in" %}{% endblock %}
{% block meta %}
<!-- <meta http-equiv="refresh" content="5;url={% url auth_signin %}"> -->
{% endblock %}
{% block forestyle%}
<style type="text/css">
form input { margin-right: 5px; }
</style>
{% endblock %}
{% block forejs %}
<script type="text/javascript">
$().ready(function(){
window.setInterval(function() {
$('#redirect_loader').html($('#redirect_loader').html() + '.')
}, 800);
window.setTimeout(function() {
window.location = "{% url auth_signin %}";
}, 5000);
});
</script>
{% endblock %}
{% block content %}
<div id="error">
<h1>401</h1>
<h2>{% trans "Not logged in" %}</h2><br/>
<h3>{% trans "You are not logged in..." %} <br/> {% trans "...and the resource you're trying to access is protected." %} </h3> <br/>
<p>
{% trans "Redirecting to the login page." %}<span id="redirect_loader"></span>
</p>
<p>
{% trans "If you're not automatically redirected in 5 seconds, please click" %}
<a href="{% url auth_signin %}">{% trans "here" %}</a>.
</p>
</div>
{% endblock %}
{% extends "base_content.html" %}
{% load i18n %}
{% block title %}{% trans "Forbidden" %}{% endblock %}
{% block forestyle%}
<style type="text/css">
form input { margin-right: 5px; }
</style>
{% endblock %}
{% block content %}
<div id="error">
<h1>403</h1>
<h2>{% trans "Forbidden" %}</h2><br/>
<h3>{% trans "Sorry, you don't have permissions to access this page." %}</h3> <br/>
</div>
<div id="error-box1">
<a href="{% url questions %}">{% trans "see all questions" %} &raquo;</a>
</div>
<div id="error-box2">
<a href="{% url tags %}">{% trans "see all tags" %} &raquo;</a>
</div>
<div id="error-box3">
<a href="#" id="linkPrevious">{% trans "back to previous page" %} &raquo;</a>
</div>
<!--<div id="main-bar" class="headNormal">
{% trans "Forbidden" %}
</div>
<div id="main-body" class="">
<div style="padding:5px 0px 10px 0;line-height:25px;">
<h3>{% trans "Sorry, you don't have permissions to access this page." %}</h3>
<div style="margin-top:5px">
{% trans "This might have happened for the following reasons:" %}<br/>
<ul>
<li>{% trans "you followed a link on an email, but you're currently logged in as another user;" %}</li>
<li>{% trans "there are errors in the url, please confirm it;" %}</li>
<li>{% trans "if you believe you shouldn't bee seeing this error, please" %}
<a href="{% if settings.CONTACT_URL %}{{ settings.CONTACT_URL }}{% else %}{% url feedback %}{% endif %}" target="_blank">
{% trans "report this problem" %}
</a>
</li>
</ul>
</div>
<ul>
<li><a href="{% url index %}">{% trans "to home page" %} &raquo;</a></li>
<li><a href="{% url questions %}">{% trans "see all questions" %} &raquo;</a></li>
<li><a href="{% url tags %}">{% trans "see all tags" %} &raquo;</a></li>
</ul>
</div>
</div>-->
{% endblock %}
{% extends "base_content.html" %}
<!-- template 404.html -->
{% load i18n %}
{% block title %}{% trans "404 Error" %}{% endblock %}
{% block forejs %}
<script type="text/javascript">
$().ready(function(){
$("#linkPrevious").bind("click", back=function(){history.go(-1);})
});
</script>
{% endblock %}
{% block content %}
<div id="error">
<h1>404</h1>
<h2>Questa pagina non esiste</h2><br/>
<h3>Beh, ovviamente <em>questa pagina esiste</em>. Ma la pagina che hai richiesto non esiste. Infatti, questa pagina è qui solo per dirti che la pagina che stai cercando non esiste</h3> <br/>
</div>
<div id="error-box1">
<a href="{% url questions %}">{% trans "see all questions" %} &raquo;</a>
</div>
<div id="error-box2">
<a href="{% url tags %}">{% trans "see all tags" %} &raquo;</a>
</div>
<div id="error-box3">
<a href="#" id="linkPrevious">{% trans "back to previous page" %} &raquo;</a>
</div>
{% endblock %}
<!-- end template 404.html -->
{% extends "base_content.html" %}
<!-- template 500.html -->
{% load i18n %}
{% block title %}{% spaceless %}500 Error{% endspaceless %}{% endblock %}
{% block forejs %}
<script type="text/javascript">
$().ready(function(){
$("#linkPrevious").bind("click", back=function(){history.go(-1);})
});
</script>
{% endblock %}
{% block content %}
<div id="error">
<h1>500</h1>
<h2>Server Error</h2><br/>
<h3>{% trans "sorry, system error" %}<br/>
{% trans "system error log is recorded, error will be fixed as soon as possible" %}<br/>
{% trans "please report the error to the site administrators if you wish" %}</h3> <br/>
</div>
<div id="error-box1">
<a href="{% url questions %}">{% trans "see all questions" %} &raquo;</a>
</div>
<div id="error-box2">
<a href="{% url tags %}">{% trans "see all tags" %} &raquo;</a>
</div>
<div id="error-box3">
<a href="#" id="linkPrevious">{% trans "back to previous page" %} &raquo;</a>
</div>
<div id="main-bar" class="">
<h3>
500 Server Error
</h3>
</div>
{% endblock %}
<!-- end template 500.html -->
{% load i18n %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{% trans "System down for maintenance" %}</title>
<style>
#content {
margin: auto;
}
</style>
</head>
<body>
<div id="content">
<img src="{{ app_logo }}">
<p>{{ app_title }}</p>
<h3>{% trans "System down for maintenance" %}</h3>
<br/>
{{ message }}
</div>
</body>
</html>
{% extends "base_content.html" %}
<!-- settings.html -->
{% load i18n %}
{% block title %}{% spaceless %}{% trans "Account functions" %}{% endspaceless %}{% endblock %}
{% block head %}
<style type="text/css" media="screen">
h4 {font-size:12pt;}
dt, dd { padding:0 0 0.35em 0; }
dt { float: left; width: 21ex; }
dd { margin-left: 23ex; }
#settings-options, #settings-intro { padding: 4em 1.5em;}
#settings-options { min-height: 300px; border-left: 1px solid #333;}
#settings-options h5 { font-weight: bold;}
</style>
{% endblock %}
{% block content %}
<div id="main-bar">
<h3><strong>{{ request.user.username }} {% trans "Profile" %}</strong></h3>
</div>
<div id="settings-options">
{% if msg %}
<p class="error">{{ msg }}</p>
{% endif %}
<dl class="list-item">
<dt>&raquo; <a href="{% url user_changepw %}">{% trans "Change password" %}</a></dt>
<dd>{% trans "Give your account a new password." %}</dd>
{% comment %}
<dt>&raquo; <a href="{% url user_changeemail %}">{% trans "Change email " %}</a></dt>
<dd>{% trans "Add or update the email address associated with your account." %}</dd>
<dt>&raquo; <a href="{% url user_changeopenid %}">{% trans "Change OpenID" %}</a></dt>
<dd>{% trans "Change openid associated to your account" %}</dd>
<dt>&raquo; <a href="{% url user_delete %}">{% trans "Delete account" %}</a></dt>
<dd>{% trans "Erase your username and all your data from website" %}</dd>
{% endcomment %}
</dl>
</div>
{% endblock %}
<!-- end settings.html -->
{% extends "base.html" %}
<!-- template answer_edit.html -->
{% load i18n %}
{% load extra_tags %}
{% block title %}{% spaceless %}{% trans "Edit answer" %}{% endspaceless %}{% endblock %}
{% block forejs %}
<script type='text/javascript' src='{% media "/media/js/wmd/showdown.js" %}'></script>
<script type='text/javascript' src='{% media "/media/js/wmd/wmd.js" %}'></script>
<script type='text/javascript' src='{% media "/media/js/html_sanitizer.js" %}'></script>
<link rel="stylesheet" type="text/css" href="{% media "/media/js/wmd/wmd.css" %}" />
<script type="text/javascript">
$().ready(function(){
$("#nav_questions").attr('className',"on");
$('#editor').TextAreaResizer();
//toggle preview of editor
var display = true;
var txt = "{% trans "hide preview" %}";
$('#pre-collapse').text(txt);
$('#pre-collapse').bind('click', function(){
txt = display ? "{% trans "show preview" %}" : "{% trans "hide preview" %}";
display = !display;
$('#previewer').toggle();
$('#pre-collapse').text(txt);
});
$('#id_revision').unbind().change(function(){
$("#select_revision").click();
});
answer = $("textarea#editor")[0].value;
});
function submitClicked(e, f) {
if(!(browserTester('chrome') || browserTester('safari'))) {
$("input.submit")[0].disabled=true;
$("input.submit")[1].disabled=true;
}
window.removeEventListener('beforeunload', beforeUnload, true);
if (f) {
f.submit();
}
}
function beforeUnload(e) {
if($("textarea#editor")[0].value != answer) {
return yourWorkWillBeLost(e);
}
}
window.addEventListener('beforeunload', beforeUnload, true);
var answer = "";
</script>
{% endblock %}
{% block content %}
<div id="main-bar" class="headNormal">
{% trans "Edit answer" %} [<a href="{{ answer.question.get_absolute_url }}#{{ answer.id }}">{% trans "back" %}</a>]
</div>
<div id="main-body" class="ask-body">
<div id="askform">
<form id="fmedit" action="{% url edit_answer answer.id %}" method="post">
{% csrf_token %}
<label for="id_revision" ><strong>{% trans "revision" %}:</strong></label> <br/>
{% if revision_form.revision.errors %}{{ revision_form.revision.errors.as_ul }}{% endif %}
<div>
{{ revision_form.revision }} <input type="submit" style="display:none" id="select_revision" name="select_revision" value="{% trans "select revision" %}">
</div>
<div class="form-item">
<div id="wmd-button-bar" class="wmd-panel"></div>
{{ form.text }}
<span class="form-error"></span>
<div class="preview-toggle"><span id="pre-collapse"
title="{% trans "Toggle the real time Markdown editor preview" %}">{% trans "toggle preview" %}</span>
<span style="text-align: right; margin-left: 200px;" id="editor-metrics"></span>
{% if settings.WIKI_ON %}
<div style="float:right;">
{{ form.wiki }} <span style="color:#000;cursor:help" title="{{form.wiki.help_text}}">{{ form.wiki.label_tag }} </span>
</div>
{% endif %}
</div>
<div id="previewer" class="wmd-preview"></div>
</div>
<strong>{{ form.summary.label_tag }}</strong> <br/>
{{ form.summary }} {{ form.summary.errors }}
<div class="title-desc">
{{ form.summary.help_text }}
</div>
{% if form.recaptcha %}
<div class="question-captcha">
{{ form.recaptcha.errors }}
{{ form.recaptcha }}
</div>
{% endif %}
<input type="button" value="{% trans "Save edit" %}" class="submit" onclick="submitClicked(event, this.form)" />
<input type="button" value="{% trans "Cancel" %}" class="submit" onclick="submitClicked(event, this.form);history.back(-1);" />
</form>
</div>
</div>
{% endblock %}
{% block sidebar %}
{% include "answer_edit_tips.html" %}
{% endblock %}
{% block endjs %}
{% endblock %}
<!-- end template answer_edit.html -->
<!-- template answer_edit_tips.html -->
{% load i18n general_sidebar_tags %}
<div class="boxC">
<p class="subtitle darkred">{% trans "answer tips" %}</p>
<div>
<ul class="list-item">
<li> <b>{% trans "please make your answer relevant to this community" %}</b>
</li>
<li>
{% trans "try to give an answer, rather than engage into a discussion" %}
</li>
<li>
{% trans "please try to provide details" %}
</li>
<li>
{% trans "be clear and concise" %}
</li>
</ul>
<p class='info-box-follow-up-links'>
<a href="{% url faq %}" target="_blank" title="{% trans "see frequently asked questions" %}">faq &raquo;</a>
</p>
</div>
</div>
{% markdown_help %}
<!-- end template answer_edit_tips.html -->
{% extends "base.html" %}
<!-- template ask.html -->
{% load i18n extra_tags extra_filters %}
{% block title %}{% spaceless %}{% trans "Ask a question" %}{% endspaceless %}{% endblock %}
{% block forejs %}
<script type='text/javascript' src='{% media "/media/js/wmd/showdown.js" %}'></script>
<script type='text/javascript' src='{% media "/media/js/wmd/wmd.js" %}'></script>
<script type='text/javascript' src='{% media "/media/js/html_sanitizer.js" %}'></script>
<link rel="stylesheet" type="text/css" href="{% media "/media/js/wmd/wmd.css" %}" />
<script type="text/html" id="question-summary-template">
<div class="answer-summary">
<a href="%URL%"><div class="answer-votes">%SCORE%</div></a>
<div class="answer-link">
<a class="question-hyperlink" href="%URL%" title="%SUMMARY%">%TITLE%</a>
</div>
</div>
</script>
<script type="text/javascript">
$(function(){
//set current module button style
$("#nav_ask").attr('className',"on");
$('#editor').TextAreaResizer();
//toggle preview of editor
//todo remove copy-paste
var display = true;
var txt = "[{% trans "hide preview" %}]";
$('#pre-collapse').text(txt);
$('#pre-collapse').bind('click', function(){
txt = display ? "[{% trans "show preview" %}]" : "[{% trans "hide preview" %}]";
display = !display;
$('#previewer').toggle();
$('#pre-collapse').text(txt);
});
//Tags autocomplete action
$("#id_tags").autocomplete("{% url matching_tags %}", {
minChars: 1,
matchContains: true,
max: 10,
multiple: true,
multipleSeparator: " ",
highlightItem: true,
scroll: true,
scrollHeight: 300,
/*
formatItem: function(row, i, max) {
return row.n + " ("+ row.c +")";
},
formatResult: function(row, i, max){
return row.n;
}
*/
formatItem: function(row, i, max, value) {
return row[1] + " (" + row[2] + ")";
},
formatResult: function(row, i, max, value){
return row[1];
}
});
});
function submitClicked(e, f) {
if(!(browserTester('chrome') || browserTester('safari'))) {
$("input.submit")[0].disabled=true;
}
window.removeEventListener('beforeunload', beforeUnload, true);
if (f) {
f.submit();
}
}
function beforeUnload(e) {
if($("input#id_title")[0].value != "" || $("textarea#editor")[0].value != "" || $("input#id_tags")[0].value != "") {
return yourWorkWillBeLost(e);
}
}
window.addEventListener('beforeunload', beforeUnload, true);
var related_questions_url = "{% url related_questions %}";
</script>
<script src="{% media "/media/js/osqa.ask.js" %}" type="text/javascript"></script>
{% endblock %}
{% block content %}
<div id="main-bar" class="headUser" >
{% trans "Ask a question" %}
</div>
<div id="main-body" class="ask-body" style="clear:both;">
<div id="askform">
<form id="fmask" action="" method="post" accept-charset="utf-8">
{% csrf_token %}
{% if not request.user.is_authenticated %}
<div class="message">
<span class="strong big">{% trans "You are welcome to start submitting your question anonymously." %}</span>
<p>{% blocktrans %}
After submiting your question, you will be redirected to the login/signup page.
Your question will be saved in the current session and will be published after you login with your existing account,
or signup for a new account{% endblocktrans %}{% if "ask"|contained_in:settings.REQUIRE_EMAIL_VALIDATION_TO %}
{% trans "and validate your email." %}{% else %}.{% endif %}</p>
</div>
{% else %}
{% if not request.user.email_valid_and_can_ask %}
<div class="message">
{% blocktrans %}Remember, your question will not be published until you validate your email.{% endblocktrans %}
<a href="{% url send_validation_email %}">{% trans "Send me a validation link." %}</a>
</div>
{% endif %}
{% endif %}
<div class="form-item">
<label for="id_title" ><strong>{{ form.title.label_tag }}:</strong></label> <span class="form-error"></span><br/>
{{ form.title }} {{ form.title.errors }}
<div class="title-desc">
{{ form.title.help_text }}
</div>
</div>
<div id="ask-related-questions"></div>
<div class="form-item">
<div id="wmd-button-bar" class="wmd-panel"></div>
{{ form.text }} {{ form.text.errors }}
<div class="preview-toggle">
<table width="100%">
<tr>
<td>
<span id="pre-collapse" title="{% trans "Toggle the real time Markdown editor preview" %}">{% trans "toggle preview" %}</span>
</td>
<td style="text-align: right;" id="editor-metrics"></td>
{% if settings.WIKI_ON %}
<td class="tright">
{{ form.wiki }} <span class="help_text" title="{{form.wiki.help_text}}">{{ form.wiki.label_tag }} </span>
</td>
{% endif %}
</tr>
</table>
</div>
<div id="previewer" class="wmd-preview"></div>
<span class="form-error"></span>
</div>
<div class="form-item">
<strong>{{ form.tags.label_tag }}:</strong> {% trans "(required)" %} <span class="form-error"></span><br/>
{{ form.tags }} {{ form.tags.errors }}
</div>
<p class="title-desc">
{{ form.tags.help_text }}
</p>
{% if form.recaptcha %}
<div class="question-captcha" style="float: left">
{{ form.recaptcha.errors }}
{{ form.recaptcha }}
</div>
<div class="clear"></div>
{% endif %}
{% if not request.user.is_authenticated %}
<input name="ask" type="button" value="{% trans "Login/signup to post your question" %}" class="submit" onclick="submitClicked(event, this.form)"/>
{% else %}
<input name="ask" type="button" value="{% trans "Ask your question" %}" class="submit" onclick="submitClicked(event, this.form)"/>
{% endif %}
</form>
</div>
</div>
{% endblock %}
{% block sidebar %}
{% include "question_edit_tips.html" %}
{% endblock %}
{% block endjs %}
{% endblock %}
<!-- end template ask.html -->
{% extends "user.html" %}
<!-- changepw.html -->
{% load i18n %}
{% block head %}{% endblock %}
{% block title %}{% spaceless %}{% trans "Authentication settings" %}{% endspaceless %}{% endblock %}
{% block usercontent %}
<h2>{% trans "Authentication settings" %}</h2>
{% if auth_keys %}
<p class="message">{% blocktrans %}These are the external authentication providers currently associated with your account.{% endblocktrans %}</p>
<div>
{% for key in auth_keys %}
<p>{{ key.name }} (<a href="{% url user_remove_external_provider id=key.id %}">{% trans "remove" %}</a>)</p>
{% endfor %}
</div>
{% endif %}
{% if not auth_keys %}
<p class="message">{% blocktrans %}You currently have no external authentication provider associated with your account.{% endblocktrans %}</p>
{% endif %}
{% ifequal view_user request.user %}
<input type="button" class="submit" value="{% trans "Add new provider" %}" onclick="window.location='{% url user_add_external_provider %}'" />
{% endifequal %}
{% if allow_local_auth %}
{% if has_password %}
<p class="message">{% blocktrans %}This is where you can change your password. Make sure you remember it!{% endblocktrans %}</p>
{% else %}
<p class="message">{% blocktrans %}You can set up a password for your account, so you can login using standard username and password!{% endblocktrans %}</p>
{% endif %}
<div class="aligned">
<form action="" method="post" accept-charset="utf-8">
{% csrf_token %}
<ul id="changepw-form" class="form-horizontal-rows">
{{form.as_ul}}
</ul>
<div class="submit-row"><input type="submit" class="submit" value="{% if has_password %}{% trans "Change password" %}{% endif %}{% if not has_password %}{% trans "Create password" %}{% endif %}" /></div>
</form>
</div>
{% endif %}
{% endblock %}
<!-- end changepw.html -->
{% extends "base_content.html" %}
<!-- complete.html -->
{% load i18n %}
{% block head %}{% endblock %}
{% block title %}{% spaceless %}{% trans "Connect your OpenID with this site" %}{% endspaceless %}{% endblock %}
{% block content %}
<div id="main-bar" class="headNormal">
{% trans "Connect your OpenID with your account on this site" %}
</div>
<div id="completetxt" >
<div class="message">
{# Only display the OpenID greeting if a provider is detected. #}
{% if provider %}
<p>
<b>{% trans "You are here for the first time with " %}{{ provider }}</b>
</p>
{% endif %}
<p>
{% trans "Please choose your screen name and confirm your email address. A valid email address is necessary to receive notifications about activity in the areas of this community you're most interested in, and will help you become an involved participant in this community." %}
</p>
</div>
<p style="display:none">{% trans "This account already exists, please use another." %}</p>
</div>
{% if form1.errors %}
<ul class="errorlist">
{% if form1.non_field_errors %}
{% for error in form1.non_field_errors %}
<li>{{error}}</li>
{% endfor %}
{% endif %}
</ul>
{% endif %}
<div class="login">
<form name="fregister" action="" method="POST">
{% csrf_token %}
{{ form1.next }}
<div class="form-row-vertical margin-bottom">
<label for="id_username">{{ form1.username.label }}</label>
{% if form1.username.errors %}
<p class="error">{{ form1.username.errors|join:", " }}</p>
{% endif %}
{{ form1.username }}
</div>
<div class="form-row-vertical margin-bottom">
<label for="id_email">{{ form1.email.label }}</label>
{% if form1.email.errors %}
<p class="error">{{ form1.email.errors|join:", " }}</p>
{% endif %}
{{ form1.email }}
</div>
<div class="form-row-vertical margin-bottom">
<label for="id_real_name">{{ form1.real_name.label }}</label>
{% if form1.real_name.errors %}
<p class="error">{{ form1.real_name.errors|join:", " }}</p>
{% endif %}
{{ form1.real_name }}
</div>
{% if form1.password1 %}
<div class="form-row-vertical margin-bottom">
<label for="password1_id">{{ form1.password1.label }}</label>
{% if form1.password1.errors %}
<p class="error">{{ form1.password1.errors|join:", " }}</p>
{% endif %}
{{ form1.password1 }}
</div>
<div class="form-row-vertical margin-bottom">
<label for="password2_id">{{ form1.password2.label }}</label>
{% if form1.password2.errors %}
<p class="error">{{ form1.password2.errors|join:", " }}</p>
{% endif %}
{{ form1.password2 }}
</div>
{% endif %}
{% if form1.recaptcha %}
<div class="form-row-vertical margin-bottom">
<label for="recaptcha_id">{{ form1.recaptcha.label }}</label>
{% if form1.recaptcha.errors %}
<p class="error">{{ form1.recaptcha.errors|join:", " }}</p>
{% endif %}
{{ form1.recaptcha }}
</div>
{% endif %}
<div class="submit-row"><input type="submit" class="submit" name="bnewaccount" id="bnewaccount" value="{% trans "create account" %}"/></div>
</form>
</div>
{% comment %}<!-- this form associates openID with an existing password-protected account, not yet functional -->
{% if form2 %}
<div class="login" style="display:none">
<form name="fverify" action="{% url user_register %}" method="POST">
{% csrf_token %}
{{ form2.next }}
<fieldset style="padding:10px">
<legend class="big">{% trans "Existing account" %}</legend>
<div class="form-row"><label for="id_username">{% trans "user name" %}</label><br/>{{ form2.username }}</div>
<div class="form-row"><label for="id_passwordl">{% trans "password" %}</label><br/>{{ form2.password }}</div>
<p><span class='big strong'>(Optional) receive updates by email</span> - only sent when there are any.</p>
<!--todo double check translation from chinese 确认 = "Register" -->
<div class="submit-row">
<input type="submit" class="submit" name="bverify" value="{% trans "Register" %}"/>
<a href="{% url user_sendpw %}">{% trans "Forgot your password?" %}</a>
</div>
</fieldset>
</form>
</div>
{% endif %}
{% endcomment %}
{% endblock %}
<!-- end complete.html -->
{% extends "base_content.html" %}
<!-- complete.html -->
{% load i18n %}
{% block head %}{% endblock %}
{% block title %}{% spaceless %}{% trans "This e-mail has already been validated" %}{% endspaceless %}{% endblock %}
{% block content %}
<div class="error">
<h1>{% blocktrans %}Already validated{% endblocktrans %}</h1>
<p>{% blocktrans %}This e-mail has already been validated{% endblocktrans %}</p>
</div>
{% endblock %}
<!-- end complete.html -->
{% load i18n extra_tags email_tags %}
{% declare %}
prefix = settings.EMAIL_SUBJECT_PREFIX
app_name = settings.APP_SHORT_NAME
exclude_finetune = True
{% enddeclare %}
{% email %}
{% subject %}{% blocktrans %}{{ prefix }} Your email validation link {{ app_name }}{% endblocktrans %}{% endsubject %}
{% htmlcontent notifications/base.html %}
<p style="{{ p_style }}">{% trans "Please use the following link to help us verify your email address:" %}</p>
<p style="{{ p_style }}"><a style="{{ a_style }}" href="{% fullurl auth_validate_email user=recipient.id,code=validation_code %}">{% trans "Validate my email address" %}</a></p>
<p style="{{ p_style }}">{% trans "If the above link is not clickable, copy and paste this url into your web browser's address bar:" %}</p>
<p style="{{ p_style }}">{% fullurl auth_validate_email user=recipient.id,code=validation_code %}</p>
{% endhtmlcontent %}
{% textcontent notifications/base_text.html %}
{% trans "Copy and paste this url into your web browser's address bar to help us verify your email address:" %}
{% fullurl auth_validate_email user=recipient.id,code=validation_code %}
{% endtextcontent %}
{% endemail %}
{% extends "base.html" %}
{% load i18n %}
{% load extra_tags %}
{% block title %}{% spaceless %}{% trans "Login" %}{% endspaceless %}{% endblock %}
{% block forejs %}
<link rel="stylesheet" type="text/css" media="screen" href="{% media "/media/style/auth.css" %}"/>
{% for provider in all_providers %}
{% for location in provider.extra_css %}
<link rel="stylesheet" type="text/css" media="screen" href="{{ location }}"/>
{% endfor %}
{% endfor %}
{% endblock %}
{% block content %}
{% for provider in all_providers %}
{% if provider.pre_code %}
{{ provider.pre_code|safe }}
{% endif %}
{% endfor %}
<div class="headUser">
{% trans "User login" %}
</div>
{% if msg %}
<p class="error">{{ msg }}</p>
{% endif %}
{% for provider in top_stackitem_providers %}
<form class="signin_form" method="POST" action="{% url auth_provider_signin provider=provider.id %}" accept-charset="utf-8">
{% csrf_token %}
{% include provider.stack_item_template %}
<input type="hidden" class="validate_email" name="validate_email" value="yes" />
</form>
{% endfor %}
{% if top_stackitem_providers %}
<h3 class="or_label">{% trans 'Or...' %}</h3>
{% endif %}
<div style="width:600px;float:left;margin-bottom:5px;clear:both;">
{% blocktrans %}
External login services use <b><a href="http://openid.net/">OpenID</a></b> technology, where your password always stays confidential between
you and your login provider and you don't have to remember another one.
{% endblocktrans %}
</div>
{% if request.user.is_anonymous %}
<div style="width:600px;float:left;margin-bottom:5px;">
<input type="checkbox" checked="checked" id="validate_email" />
{% trans "Validate my email after I login." %}
</div>
{% endif %}
<div id="bigicon_providers">
{% for provider in bigicon_providers %}
<div class="provider_logo big" name="{{ provider.id }}">
<div class="inner">
{% ifequal provider.type "DIRECT" %}
<a class="provider_direct" href="{% url auth_provider_signin provider=provider.id %}">
<img src="{% media provider.icon %}" />
</a>
{% endifequal %}
{% ifequal provider.type "CUSTOM" %}
{% include provider.code_template %}
{% endifequal %}
{% ifequal provider.type "SIMPLE_FORM" %}
<img alt="{{ provider.simple_form_context.your_what }}" class="simple_form_provider" src="{% media provider.icon %}" />
{% endifequal %}
</div>
</div>
{% endfor %}
</div>
<div id="smallicon_providers">
{% for provider in smallicon_providers %}
<div class="provider_logo small" name="{{ provider.id }}">
<div class="inner">
{% ifequal provider.type "DIRECT" %}
<a class="provider_direct" href="{% url auth_provider_signin provider=provider.id %}">
<img src="{% media provider.icon %}" />
</a>
{% endifequal %}
{% ifequal provider.type "CUSTOM" %}
{% include provider.code_template %}
{% endifequal %}
{% ifequal provider.type "SIMPLE_FORM" %}
<img alt="{{ provider.simple_form_context.your_what }}" class="simple_form_provider" src="{% media provider.icon %}" />
{% endifequal %}
</div>
</div>
{% endfor %}
</div>
<form name="signin_form" id="signin_form" class="signin_form" method="POST" action="">
{% csrf_token %}
<div id="signin_form_slot"></div>
<input type="hidden" class="validate_email" name="validate_email" value="yes" />
</form>
{% for provider in stackitem_providers %}
<h3 class="or_label">{% trans 'Or...' %}</h3>
<form class="signin_form" method="POST" action="{% url auth_provider_signin provider=provider.id %}" accept-charset="utf-8">
{% csrf_token %}
{% include provider.stack_item_template %}
<input type="hidden" class="validate_email" name="validate_email" value="yes" />
</form>
{% endfor %}
<!-- <h3 class="or_label">{% trans 'Or...' %}</h3>
<form name="signin_form" id="dummy_form_unused" class="signin_form" method="POST" action="">
{% csrf_token %}
<fieldset>
{% trans 'Click' %} <a href="{% url auth_request_tempsignin %}">{% trans 'here' %}</a> {% trans "if you're having trouble signing in." %}
</fieldset>
</form> -->
<script type="text/html" id="simple_form_template">
<fieldset id="slot_form">
<p id="provider_name_slot">{% trans 'Enter your ' %}%%YOUR_WHAT%%</p>
<div><p><span></span>
<input id="input_field" type="text" name="input_field" /><span></span>
<input id="ssignin" name="ssignin" type="submit" value="Login" />
</p></div>
<input type="hidden" class="validate_email" name="validate_email" value="yes" />
</fieldset>
</script>
<script type="text/javascript">
$(function() {
var signin_url = "{% url auth_provider_signin provider='PROVIDER' %}";
function set_validate_email() {
var validate = $('#validate_email').attr('checked') ? 'yes' : 'no';
$('.validate_email').attr('value', validate);
$('.provider_direct').each(function() {
var current_url = $(this).attr('href');
if (!/\?validate_email\=(yes|no)$/.test(current_url)) {
current_url += ('?validate_email=' + validate);
} else {
current_url = current_url.replace(/(yes|no)$/, validate);
}
$(this).attr('href', current_url);
})
}
$('#validate_email').change(set_validate_email);
function set_form_action(el) {
var provider = el.parents('.provider_logo').attr('name');
$('#signin_form').attr('action', signin_url.replace('PROVIDER', provider));
}
$('.provider_logo').click(function() {
$('.provider_logo').removeClass('selected');
$(this).addClass('selected');
});
$('.simple_form_provider').click(function() {
$('#signin_form_slot').html('');
var new_html = $('#simple_form_template').html()
.replace('%%YOUR_WHAT%%', $(this).attr('alt'));
$('#signin_form_slot').html(new_html);
set_form_action($(this));
set_validate_email();
})
set_validate_email();
});
</script>
{% endblock %}
{% block sidebar %}
<div class="boxC">
<h3 class="subtitle">{% trans "Why use OpenID?" %}</h3>
<ul class="list-item">
<li>
{% trans "with openid it is easier" %}
</li>
<li>
{% trans "reuse openid" %}
</li>
<li>
{% trans "openid is widely adopted" %}
</li>
<li>
{% trans "openid is supported open standard" %}
</li>
</ul>
<p class="info-box-follow-up-links">
<a href="http://openid.net/what/" target="_blank">{% trans "Find out more" %} </a><br/>
<a href="http://openid.net/get/" target="_blank">{% trans "Get OpenID" %} </a>
</p>
</div>
{% endblock%}
{% load i18n extra_tags email_tags %}
{% declare %}
prefix = settings.EMAIL_SUBJECT_PREFIX
app_name = settings.APP_SHORT_NAME
exclude_finetune = True
{% enddeclare %}
{% email %}
{% subject %}{% blocktrans %}{{ prefix }} Temporary login link{% endblocktrans %}{% endsubject %}
{% htmlcontent notifications/base.html %}
<p style="{{ p_style }}">
{% blocktrans %}The following link grants you a one time access to your account at {{ app_name }}.{% endblocktrans %}
</p>
<p style="{{ p_style }}"><a style="{{ a_style }}" href="{% fullurl auth_tempsignin user=recipient.id,code=temp_login_code %}">{% trans "Go to your account" %}</a></p>
<p style="{{ p_style }}">{% trans "If the above link is not clickable, copy and paste this url into your web browser's address bar:" %}</p>
<p style="{{ p_style }}">{% fullurl auth_tempsignin user=recipient.id,code=temp_login_code %}</p>
{% endhtmlcontent %}
{% textcontent notifications/base_text.html %}
{% blocktrans %}The following url grants you a one time access to your account at {{ app_name }}.{% endblocktrans %}
{% fullurl auth_tempsignin user=recipient.id,code=temp_login_code %}
{% endtextcontent %}
{% endemail %}
{% extends "base.html" %}
{% load i18n %}
{% block head %}{% endblock %}
{% block title %}{% spaceless %}{% trans "Request temporary login key" %}{% endspaceless %}{% endblock %}
{% block content %}
<div class="headNormal">{% trans "Account: request temporary login key" %}</div>
<p class="message">{% blocktrans %}
If you're experiencing problems accessing your account, or if you forgot your password,
here you can request a temporary login key. Fill out your account email and we'll send you a temporary access link that
will enable you to access your account. This token is valid only once and for a limited period of time.
{% endblocktrans %}</p>
<div class="aligned">
{% if form.errors %}
<ul class="errorlist">
{% for error in form.errors %}
<li>{{ error }}</li>
{% endfor %}
</ul>
{% endif %}
<form action="" method="post" accept-charset="utf-8">
{% csrf_token %}
<ul id="changepw-form" class="form-horizontal-rows">
{{form.as_ul}}
</ul>
<div class="submit-row"><input type="submit" class="submit" value="{% trans "Send link" %}" /></div>
</form>
</div>
{% endblock %}
\ No newline at end of file
{% load i18n extra_tags email_tags %}
{% declare %}
prefix = settings.EMAIL_SUBJECT_PREFIX
app_name = settings.APP_SHORT_NAME
exclude_greeting = True
exclude_finetune = True
{% enddeclare %}
{% email %}
{% subject %}{% blocktrans %}{{ prefix }} Welcome to {{ app_name }}{% endblocktrans %}{% endsubject %}
{% htmlcontent notifications/base.html %}
<p style="{{ p_style }}">
{% blocktrans %}Howdy and welcome to {{ app_name }}. We know you're busy, so we'll keep this real simple.{% endblocktrans %},
</p>
<p style="{{ p_style }}">{% trans "Here's your login info (store it in a cool dry place):" %}</p>
<p style="{{ p_style }}">{% trans "Username: " %} {{ recipient.username }}<br />
<b>{% trans "Password: As IF we would send your password in cleartext!" %}</b></p>
<p style="{{ p_style }}">{% trans "The following link will help us verify your email address:" %}</p>
<p style="{{ p_style }}"><a style="{{ a_style }}" href="{% fullurl auth_validate_email user=recipient.id,code=validation_code %}">{% trans "Validate my email address" %}</a></p>
<p style="{{ p_style }}">{% trans "If the above link is not clickable, copy and paste this url into your web browser's address bar:" %}</p>
<p style="{{ p_style }}">{% fullurl auth_validate_email user=recipient.id,code=validation_code %}</p>
{% endhtmlcontent %}
{% textcontent notifications/base_text.html %}
{% blocktrans %}Howdy and welcome to {{ app_name }}. We know you're busy, so we'll keep this real simple.{% endblocktrans %},
{% trans "Here's your login info (store it in a cool dry place):" %}
{% trans "Username: " %} {{ recipient.username }}
{% trans "Password: As IF we would send your password in cleartext!" %}
{% trans "Copy and paste this url into your web browser's address bar to help us verify your email address:" %}
{% fullurl auth_validate_email user=recipient.id,code=validation_code %}
{% endtextcontent %}
{% endemail %}
{% extends "base_content.html" %}
<!-- template badge.html -->
{% load i18n %}
{% load extra_tags %}
{% load user_tags %}
{% load humanize %}
{% block title %}{% spaceless %}{{ badge.name }} - {% trans "Badge" %}{% endspaceless %}{% endblock %}
{% block forejs %}
<script type="text/javascript">
$().ready(function(){
$("#nav_badges").attr('className',"on");
});
</script>
{% endblock %}
{% block content %}
<div id="mainbar-full">
<div class="headUser">
{% trans "Badge" %}
</div>
<div id="main-body" style="width:100%;margin-bottom:20px">
<p>
<a href="{{badge.get_absolute_url}}" title="{{ badge.get_type_display }} {{ badge.description }}" class="medal"><span class="badge{{ badge.type }}">&#9679;</span>&nbsp;{{ badge.name }}</a> {{ badge.description }}
</p>
<div>
{% if badge.awarded_count %}
<p style="float:left"><span class="count">{{ award_count|intcomma }}</span>
<strong>{% trans "The users have been awarded with badges:" %}</strong></p>
{% endif %}
</div>
<div id="award-list" style="clear:both;margin-left:20px;line-height:25px;">
{% for award in awards %}
<p style="width:250px;float:left;margin-bottom:5px;">{% user_signature award.user "badges" %}<span class="tag-number"> &#215; {{ award.count|intcomma }}</span></p><br/>
{% endfor %}
</div>
</div>
</div>
{% endblock %}
<!-- end template badge.html -->
{% extends "base.html" %}
<!-- template badges.html -->
{% load extra_tags %}
{% load humanize %}
{% load i18n %}
{% block title %}{% spaceless %}{% trans "Badges summary" %}{% endspaceless %}{% endblock %}
{% block content %}
<div class="headUser">
{% trans "Badges" %}
</div>
<div class="badges" id="main-body" style="width:100%; clear: both;">
<p>
{% trans "Community gives you awards for your questions, answers and votes." %}
{% blocktrans %}Below is the list of available badges and number of times each type of badge has been awarded.
{% endblocktrans %}
</p>
<div id="medalList">
{% for badge in badges %}
<div style="clear:both;line-height:30px">
<div class="intoMyBadges">
{% if badge.id in mybadges %}
<span>&#10004;</span>
{% endif %}
</div>
<div class="badgeListItem">
<a href="{{badge.get_absolute_url}}" title="{{ badge.get_type_display }} {{ badge.description }}" class="medal"><span class="badge{{ badge.type }}">&#9679;</span>&nbsp;{{ badge.name }}</a><strong> &#215; {{ badge.awarded_count|intcomma }}</strong>
</div>
<p class="badgeListDescription">
{{ badge.description }}
</p>
</div>
{% endfor %}
</div>
</div>
{% endblock %}
{% block sidebar %}
<div class="boxC">
<h3>{% trans "Community badges" %}</h3>
<div class="body">
<p>
<span title="{% trans "gold badge: the highest honor and is very rare" %}" class="medal"><span class="badge1">&#9679;</span>&nbsp;{% trans "gold" %}</span>
</p>
<p>
{% trans "gold badge description" %}
</p>
<p>
<span
title="{% trans "silver badge: occasionally awarded for the very high quality contributions" %}"
class="medal"><span class="badge2">&#9679;</span>&nbsp;{% trans "silver" %}</span>
</p>
<p>
{% trans "silver badge description" %}
</p>
<p>
<span title="{% trans "bronze badge: often given as a special honor" %}" class="medal">
<span class="badge3">&#9679;</span>&nbsp;{% trans "bronze" %}</span>
</p>
<p>
{% trans "bronze badge description" %}
</p>
</div>
</div>
{% endblock %}
<!-- end template badges.html -->
{% extends "base_content.html" %}
{% block page_center %}
{% block full_width_banner %}{% endblock %}
<div id="wrapper">
{% block site_width_banner %}{% endblock %}
<div id="room">
<div id="CALeft">
{% block content%}
{% endblock%}
</div>
<div id="CARight">
{% block sidebar%}
{% endblock%}
</div>
<div id="tail" style="clear:both;">
{% block tail %}
{% endblock %}
</div>
</div>
<div class="spacer3"></div>
</div>
{% endblock %}
{% extends "base_content.html" %}
<!-- template close.html -->
{% load i18n %}
{% load extra_tags %}
{% load humanize %}
{% block title %}{% spaceless %}{% trans "Close question" %}{% endspaceless %}{% endblock %}
{% block forejs %}
<script type="text/javascript">
$().ready(function(){
$('#btBack').bind('click', function(){ history.back(); });
});
</script>
{% endblock %}
{% block content %}
<div id="main-bar" class="headNormal">
{% trans "Close question" %}
</div>
<div id="main-body" style="width:100%;margin-bottom:10px">
<p>{% trans "Close the question" %}: <a href="{{ question.get_absolute_url }}">
<strong>{{ question.get_question_title }}</strong></a>
</p>
<form id="fmclose" action="{% url close question.id %}" method="post" >
{% csrf_token %}
<p>
<strong>{% trans "Reasons" %}:</strong> {{ form.reason }}
</p>
<div id="" style="padding-top:20px">
<input type="submit" value="{% trans "OK to close" %}" class="submit" />
<input id="btBack" type="button" class="submit" value="{% trans "Cancel" %}" />
</div>
</form>
</div>
{% endblock %}
<!-- end template close.html -->
{% load extra_filters %}
{% load extra_tags %}
{% load email_tags %}
{% load i18n %}
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
body {
background: #FFF;
font-size: 12px;
line-height: 150%;
margin: 0;
padding: 0;
color: #000;
font-family: sans-serif;
}
#wrapper {
width: 600px;
margin: auto;
padding: 0;
}
a img {
border: none;
}
</style>
</head>
<body>
<a href="{% fullurl index %}">
<img src="cid:logo" title="{% trans "home" %}" alt="{{settings.APP_TITLE}} logo"/>
</a>
<br />
<p>{{ settings.APP_TITLE }}</p>
<br /><br />
<div id="wrapper">
<div id="room">
<div id="CALeft">
{% block content%}
{% endblock%}
</div>
</div>
<div class="spacer3"></div>
</div>
</body>
</html>
\ No newline at end of file
{% extends "base_content.html" %}
<!-- template about.html -->
{% load i18n %}
{% load extra_tags %}
{% load humanize %}
{% block title %}{% spaceless %}{% trans "Feedback" %}{% endspaceless %}{% endblock %}
{% block forejs %}
{% endblock %}
{% block content %}
<div class="headNormal">
{% trans "Give us your feedback!" %}
</div>
<div class="content">
<form method="post" action="{% url feedback %}" accept-charset="utf-8">
{% csrf_token %}
{% if user.is_authenticated %}
<p class="message">
{% blocktrans with user.username as user_name %}
<span class='big strong'>Dear {{user_name}}</span>, we look forward to hearing your feedback.
Please type and send us your message below.
{% endblocktrans %}
<p>
{% else %}
<p class="message">
{% blocktrans %}
<span class='big strong'>Dear visitor</span>, we look forward to hearing your feedback.
Please type and send us your message below.
{% endblocktrans %}
</p>
<div class="form-row"><label for="id_name">{{form.name.label}}</label><br/>{{form.name}}</div>
<div class="form-row">
<label for="id_email">{{form.email.label}}
{% if form.errors.email %}
<strong>(please enter a valid email)</strong>
{% endif %}
</label><br/>{{form.email}}
</div>
{% endif %}
<div class="form-row">
<label for="id_message">{{form.message.label}}
{% if form.errors.message %}
<strong>{% trans "(this field is required)" %}</strong>
{% endif %}
</label>
<br/>
{{form.message}}
</div>
{% if form.recaptcha %}
<div class="form-row">
<label for="recaptcha_response_field">Are you a human?
{% if form.errors.recaptcha %}
<strong>{% trans "(wrong captcha)" %}</strong>
{% endif %}
</label>
<br/>
<div style="float: left;">
{{ form.recaptcha }}
</div>
<div class="clear"></div>
</div>
{% endif %}
{{form.next}}
<div class="submit-row">
<input type="submit" class="submit" value="{% trans "Send Feedback" %}"/>
<input type="submit" class="submit" name="cancel" value="{% trans "Cancel" %}"/>
</div>
</form>
</div>
{% endblock %}
<!-- end template about.html -->
{% load i18n %}
{% blocktrans with obj.author.username as author %}Answer by {{ author }}{% endblocktrans %}
\ No newline at end of file
{{ obj.html|safe }}
\ No newline at end of file
{{ obj.title|safe }}
\ No newline at end of file
{% extends "questions.html" %}
<!-- index.html -->
{% load general_sidebar_tags %}
{% load question_list_tags %}
{% load i18n %}
{% block fulltitle %}{{ settings.APP_TITLE }}{% endblock %}
{% block forejs %}
<style>
#header li #nav_questions {
background: url("m/light/media/images/light/header_b.png") repeat-x scroll left top #DD4814 !important;
}
#header li a#nav_questions:hover {
background: url("m/light/media/images/light/header_b_active.png") repeat-x scroll left top #B83A10 !important;
}
#header li #nav_index {
background: url("m/light/media/images/light/header_b_active.png") repeat-x scroll left top #B83A10;
}
</style>
{% endblock %}
{% block sidebar %}
{% sidebar_upper %}
{% include "question_list/count.html" %}
{% if request.user.is_authenticated %}
{% tag_selector %}
{% endif %}
{% sidebar_lower %}
{% recent_tags %}
{% recent_awards %}
{% endblock %}
<!-- index.html -->
{% extends "base_content.html" %}
<!-- template logout.html -->
{% load extra_tags %}
{% load humanize %}
{% load i18n %}
{% block title %}{% spaceless %}{% trans "Logout" %}{% endspaceless %}{% endblock %}
{% block forejs %}
<script type="text/javascript">
$().ready(function(){
$('#btLogout').bind('click', function(){ window.location.href='{% url user_signout %}?next={{ next }}'; });
});
</script>
{% endblock %}
{% block content %}
<div id="mainbar-full">
<div id="subheader" class="headUser">
{% trans "Logout" %}
</div>
<div id="main-body" style="width:100%">
<p>{% trans "As a registered user you can login with your OpenID, log out of the site or permanently remove your account." %}</p>
<input id="btLogout" type="button" class="submit" value="{% trans "Logout now" %}"><!-- style="width:150px">-->
</div>
</div>
{% endblock %}
<!-- end logout.html -->
This diff is collapsed.
{% load i18n %}
{% if can_accept %}
<a id="accept-answer-{{ answer.id }}" class="ajax-command accept-answer{% if answer.nis.accepted %} on{% endif %}"
title=" {% if answer.nis.accepted %}
{% blocktrans with answer.nstate.accepted.by.username as who %}{{ who }} has selected this answer as the correct answer{% endblocktrans %}
{% else %}
{% trans "mark this answer as the accepted answer" %}
{% endif %}"
bn:on="{% blocktrans with answer.nstate.accepted.by.username as who %}{{ who }} has selected this answer as the correct answer{% endblocktrans %}"
bn:off="{% trans "mark this answer as the accepted answer" %}"
href="{% url accept_answer id=answer.id %}" rel="nofollow">
</a>
{% else %}
{% if answer.nis.accepted %}
<a class="accept-answer on"
title="{% blocktrans with answer.nstate.accepted.by.username as who %}{{ who }} has selected this answer as the correct answer{% endblocktrans %}"
href="{% url accept_answer id=answer.id %}" rel="nofollow">
</a>
{% endif %}
{% endif %}
{% load i18n %}
<p>
{% blocktrans %}
If you like this answer you can award {{ awarded_user }} with reputation points.
{% endblocktrans %}
</p>
<p>
{% blocktrans %}
Use the slider below or the input field to choose the amount of points you would like to give.
{% endblocktrans %}
</p>
<table>
<tr>
<td width="50%">{% trans "Points:" %}</td>
<td width="50%"><input type="text" name="points" id="points_input" value="1" style="border: 1px solid #ccc; padding: 1px 2px;" /></td>
</tr>
</table>
<div class="award_points_slider"></div>
<script>
var awardPointsNotified = false;
var reputation_to_comment = {{ reputation_to_comment }};
var user_reputation = {{ user.reputation }};
function points_award_confirm(reputation, event) {
var message = '<div style="max-width: 300px !important; text-align: left;">';
message += "{% blocktrans %}Your karma points will be below the minimum reputation to comment. Are you sure you want to award points?{% endblocktrans %}";
message += "</div>";
if ((user_reputation - reputation) < reputation_to_comment && !awardPointsNotified) {
awardPointsNotified = true;
var doptions = {
html: message,
extra_class: 'confirm',
yes_text: messages.yes,
show_no: true,
no_callback: function() {
$(".dialog").fadeOut("fast", function() {
$('.dialog').remove();
})
},
no_text: messages.no
}
doptions.event = event;
show_dialog(doptions);
}
}
$('.award_points_slider').slider({
min: 1, max: user_reputation,
slide: function(evt, ui) {
$('#points_input').val(ui.value);
points_award_confirm(Number(ui.value), evt)
}
});
$('#points_input').live('change keyup', function(evt) {
if ($(this).val() > user_reputation) {
$(this).attr('value', user_reputation);
}
points_award_confirm(Number($(this).val()), evt);
$('.award_points_slider').slider('option', 'value', $(this).val());
});
</script>
\ No newline at end of file
{% load extra_tags %}
{% load i18n %}
<div class="clear"></div>
<div id="comment-{{ post.id }}-form-container" class="comment-form-container">
{% if can_comment %}
<form id="comment-{{ post.id }}-form" method="post" action="{% url comment id=post.id %}" accept-charset="utf-8">
{% csrf_token %}
<div class="comment-form-widgets-container">
<textarea name="comment" class="commentBox" id="comment"></textarea>
<div class="comment-form-buttons">
<span id="comment-{{ post.id }}-chars-left" class="comment-chars-left">
<span class="comments-char-left-count">{{ min_length }}|{{ max_length }}</span>
<span class="comments-chars-togo-msg">{% trans "characters needed" %}</span>
<span class="comments-chars-left-msg">{% trans "characters left" %}</span>
</span>
<input type="submit" class="comment-submit" value="{% trans " comment" %}" />
<input type="submit" class="comment-cancel" value="{% trans " cancel" %}" />
</div>
<div class="clear"></div>
{% if user.can_use_canned_comments %}
<div class="canned_comment">
<span id="post-{{ post.id }}-menu" class="context-menu">
<span id="post-{{ post.id }}-menu-trigger" class="action-link context-menu-trigger">{% trans "Use canned comment" %}</span>
<ul id="post-{{ post.id }}-menu-dropdown" class="context-menu-dropdown" style="width: 275px;">
{% for canned_comment in canned_comments %}
<li class="item">
<a style="white-space: pre-wrap;" href="javascript:void(0);" onclick="canned_comment({{ post.id }}, jQuery(this).text())">{{ canned_comment }}</a>
</li>
{% endfor %}
</ul>
</span>
</div>
{% endif %}
</div>
<script type="text/html" class="new-comment-skeleton" id="new-comment-skeleton-{{ post.id }}">
<div class="comment{% if not comment.top_scorer %} not_top_scorer{% endif %}" id="comment-%ID%">
<div id="post-%ID%-score" class="comment-score"></div>
<div class="comment-text">%COMMENT%</div>
<div class="comment-info" id="comment-%ID%-info">
<a id="comment-%ID%-edit" href="%EDIT_URL%" title="{% trans "Edit comment" %}"
class="comment-edit" rel="nofollow"> </a>
<a id="comment-%ID%-delete" href="%DELETE_URL%" title="{% trans "Delete comment" %}"
class="ajax-command comment-delete confirm" rel="nofollow"> </a>
<a rel="nofollow" id="comment-%ID%-convert" style="display:none;" href="%CONVERT_URL%" title="{% trans "Convert comment to answer" %}"
class="ajax-command comment-convert confirm" rel="nofollow"> </a>
<span class="comment-age">({% trans "just now" %})</span>
<a class="comment-user" href="%PROFILE_URL%">%USERNAME%</a>
{% if user.is_authenticated %}
{% if show_gravatar %}{% gravatar user 18 %}{% endif %}
{% endif %}
</div>
</div>
</script>
</form>
{% endif %}
</div>
<div class="clear"></div>
{% load extra_tags %}
{% load i18n %}
{% if show_latest_comments_first %}{% include "node/comment_skeleton.html" %}{% endif %}
<div class="comments-container" id="comments-container-{{ post.id }}">
{% for comment in comments %}
<a name="{{ comment.id }}"></a>
<div class="comment{% if not comment.top_scorer %} not_top_scorer{% endif %}" id="comment-{{comment.id}}">
<div id="post-{{ comment.id }}-score" class="comment-score">{% if comment.score %}{{ comment.score }}{% endif %}</div>
<div class="comment-text">{{ comment.comment }}</div>
<div class="comment-info" id="comment-{{comment.id}}-info">
{% if comment.can_like %}
<a id="post-{{ comment.id }}-upvote" href="{% url like_comment id=comment.id %}"
title="{% trans "I like this comment (click again to cancel)" %}" class="ajax-command comment-like{% if comment.likes %} on{% endif %}"
rel="nofollow"> </a>
{% endif %}
{% if comment.can_edit %}
<a id="comment-{{ comment.id }}-edit" href="{% url node_markdown id=comment.id %}" title="{% trans "Edit comment" %}"
class="comment-edit" rel="nofollow"> </a>
{% endif %}
{% if comment.can_delete %}
<a id="comment-{{ comment.id }}-delete" href="{% url delete_comment id=comment.id %}" title="{% trans "Delete comment" %}"
class="ajax-command comment-delete confirm" rel="nofollow"> </a>
{% endif %}
{% if comment.can_convert %}
<a rel="nofollow" id="comment-{{ comment.id }}-convert" href="{% url convert_comment id=comment.id %}" title="{% trans "Convert comment to answer" %}"
class="ajax-command comment-convert confirm" rel="nofollow"> </a>
<a rel="nofollow" id="comment-{{ comment.id }}-convert-to-question" href="{% url convert_to_question id=comment.id %}?node_type=comment" title="{% trans "Convert comment to question" %}"
class="comment-convert-to-question" rel="nofollow"> </a>
{% endif %}
{% if comment.additional_controls %}
{{ comment.additional_controls }}
{% endif %}
<span class="comment-age">({% diff_date comment.added_at %})</span>
<a class="comment-user userinfo" href="{{comment.user.get_profile_url}}">{{comment.user.decorated_name}}</a>
{% if show_gravatar %}{% gravatar comment.user 18 %}{% endif %}
</div>
</div>
{% endfor %}
</div>
<div id="comment-tools-{{ post.id }}" class="comment-tools">
{% ifnotequal showing total %}
<span class="comments-showing">
{% blocktrans %}showing {{ showing }} of {{ total }}{% endblocktrans %}
</span>
<a href="#" class="show-all-comments-link">{% blocktrans %}show {{ more_comments_count }} more comments{% endblocktrans %}</a>
{% endifnotequal %}
{% if can_comment %}
<a href="#" class="add-comment-link">{% trans "add new comment" %}</a>
{% endif %}
</div>
{% if not show_latest_comments_first %}{% include "node/comment_skeleton.html" %}{% endif %}
{% load extra_tags i18n %}
<div class='post-update-info post-update-info-user'>
<p style="line-height:12px;">
{{ node_verb }}
<strong>{% diff_date node.added_at %}</strong>
</p>
{% gravatar node.author 32 %}
<p><a {% if node.author.is_suspended %}class="suspended-user" {% endif %}href="{{ node.author.get_profile_url }}">{{ node.author.decorated_name }}</a><br/>
{% get_score_badge node.author %}<br />
{% get_accept_rate node.author %}</p>
</div>
{% if node.last_edited %}
<div class='post-update-info post-update-info-edited'>
<p style="line-height:12px;">
<a href="{{ node.get_revisions_url }}">
{{ node.last_edited.verb }}
<strong>{% diff_date node.last_edited.at %}</strong>
</a>
</p>
{% ifnotequal node.author node.last_edited.by %}
{% gravatar node.last_edited.by 32 %}
<p><a {% if node.last_edited.by.is_suspended %}class="suspended-user" {% endif %}href="{{ node.last_edited.by.get_profile_url }}">{{ node.last_edited.by.decorated_name }}</a><br/>
{% get_score_badge node.last_edited.by %}</p>
{% endifnotequal %}
</div>
{% endif %}
{% load i18n %}
<div>
<p>{% trans "Place the comment under:" %}</p>
<select name="under">
{% for id, descr in nodes %}
<option value="{{ id }}">{{ descr }}</option>
{% endfor %}
</select>
</div>
\ No newline at end of file
{% extends "question_edit.html" %}
{% load i18n %}
{% block title %}{% trans "Convert to question" %}{% endblock %}
{% block edittype %}{% trans "Convert to question" %}{% endblock %}
{% load i18n %}
<a id="favorite-mark" title="{% trans "mark/unmark this question as favorite (click again to cancel)" %}"
class="ajax-command favorite-mark {% if favorited %} on{% endif %}"
href="{% url mark_favorite id=question.id %}" rel="nofollow"> </a>
<div id="favorite-count" class="favorite-count">
{% if favorite_count %}{{ favorite_count }}{% endif %}
</div>
{% load extra_tags %}
<div class='post-update-info'>
{{ action.describe|safe }}
at
{{ action.action_date }}
</div>
\ No newline at end of file
{% load i18n extra_tags %}
<p>
{% blocktrans %}
Would you like to copy the permanent link to your clipboard?
{% endblocktrans %}
</p>
{% spaceless %}
<p><label for="permanent_link_url" style="font-size: 13px;">{% trans "Permanent link" %}:</label></p>
<p><textarea id="permanent_link_url" name="permanent_link_url" style="font-size: 12px;" readonly="readonly">{{ url }}</textarea></p>
{% endspaceless %}
<script type="text/javascript" src="{% media "/media/js/ZeroClipboard.js" %}"></script>
<script type="text/javascript">
$(document).ready(function() {
// We highlight the content of the text field on click event
$('#permanent_link_url').click(function() {
$(this).select();
});
// We use ZeroClipboard to copy the URL
ZeroClipboard.setMoviePath('{% media '/media/js/ZeroClipboard.swf' %}');
// Create the Client Clip
var clip = new ZeroClipboard.Client();
// Create the glue when on mouse-over event
$('#copy_clip_button').live('mouseover', function() {
// Take the URL from the input
clip.setText($('#permanent_link_url').val());
// Create the glue
clip.glue('copy_clip_button');
// Simulate click on the OK button when we hear a moseDown event on the glue
clip.addEventListener('mouseDown', function() {
$('#copy_clip_button').click();
});
// Reposition the clip
clip.addEventListener('complete', function() {
clip.reposition();
});
});
// Hide the clip if someone clicks on the cancel button
$('.dialog-no').live('click', function() {
clip.hide();
});
});
</script>
{% load i18n %}
{% spaceless %}
{% for control in controls %}
<span class="action-link">
<a rel="nofollow" title="{{ control.title }}" class="{{ control.classes }}" href="{{ control.url }}">{{ control.text }}</a>
</span>
{% ifnotequal controls|last control %}
<span class="action-link-separator">|</span>
{% endifnotequal %}
{% endfor %}
{% if menu|length %}
<span class="action-link-separator">|</span>
<span id="node-{{ post.id }}-menu" class="context-menu">
<span id="node-{{ post.id }}-menu-trigger" class="action-link context-menu-trigger">{% trans "more" %} &#9660;</span>
<ul id="node-{{ post.id }}-menu-dropdown" class="context-menu-dropdown">
{% for item in menu %}
<li class="item"><a rel="nofollow" class="{{ item.classes }}" href="{{ item.url }}" title="{{ item.title }}" >{{ item.text }}</a></li>
{% endfor %}
</ul>
</span>
{% endif %}
{% endspaceless %}
\ No newline at end of file
{% load i18n %}
{% trans "Please select a reason bellow or use the text box to input your own reason." %}
<select class="prompt-examples">
{% for type in types %}
<option value="{{ type }}">{{ type }}</option>
{% endfor %}
</select>
<textarea name="prompt">{{ types|first }}</textarea>
<script>
$('.prompt-examples').change(function() {
$('textarea[name=prompt]').val($(this).val())
})
</script>
\ No newline at end of file
{% load extra_tags %}
<div class='post-update-info'>
<p style="line-height:12px;">
<strong>{% diff_date revision.revised_at %}</strong>
</p>
<a href="{{ revision.author.get_profile_url }}">{% gravatar revision.author 32 %}</a>
<p><a href="{{ revision.author.get_profile_url }}">{{ revision.author.username }}</a><br/>
{% get_score_badge revision.author %}</p>
</div>
\ No newline at end of file
{% spaceless %}
{% if title %}<h1>{{ title }}</h1>{% endif %}
<div class="text">{{ html }}</div>
{% if tags %}
<div class="tags">
{% for tag in tags %}
<a class="post-tag tag-link-{{ tag }}">{{ tag }}</a>
{% endfor %}
</div>
{% endif %}
{% endspaceless %}
\ No newline at end of file
{% load i18n %}
<a id="post-{{ post.id }}-upvote" title="{% trans "I like this post (click again to cancel)" %}"
class="ajax-command post-vote up {% ifequal user_vote "up" %} on{% endifequal %}"
href="{% url vote_post id=post.id,vote_type='up' %}" rel="nofollow"> </a>
<div id="post-{{ post.id }}-score" class="post-score"
title="{% trans "current number of votes" %}">
{{ post.score }}
</div>
<a id="post-{{ post.id }}-downvote" title="{% trans "I dont like this post (click again to cancel)" %}"
class="ajax-command post-vote down{% ifequal user_vote "down" %} on{% endifequal %}"
href="{% url vote_post id=post.id,vote_type='down' %}" rel="nofollow"> </a>
\ No newline at end of file
{% load i18n extra_tags %}
{% spaceless %}
{% if is_wiki %}
<div class="community-wiki">
{% blocktrans %}This {{ post_type }} is marked "community wiki".{% endblocktrans %}
{% if can_edit %}
<br />{% blocktrans %}Feel free to <a href="{{ edit_url }}">edit it</a>.{% endblocktrans %}
{% endif %}
</div>
{% endif %}
{% endspaceless %}
\ No newline at end of file
{% extends "base_content.html" %}
{% load i18n %}
{% block title %}{% spaceless %}{% trans "Please prove that you are a Human Being" %}{% endspaceless %}{% endblock %}
{% block content %}
{% comment %} this form is set up to be used in wizards {% endcomment %}
<form name="notarobot" action="." method="POST">
{% csrf_token %}
<div>
{{form}}
</div>
<input type="submit" value="{% trans "I am a Human Being" %}" class="submit" style="float:left"/>
<input type="hidden" name="{{ step_field }}" value="{{ step0 }}" />
{{ previous_fields|safe }}
</form>
</form>
{% endblock %}
{% load i18n extra_tags email_tags %}
{% declare %}
prefix = html.mark_safe(smart_str(settings.EMAIL_SUBJECT_PREFIX))
answer_author = html.mark_safe(smart_str(answer.author.username))
question = answer.question
question_title = html.mark_safe(smart_str(question.title))
accepted_by = html.mark_safe(smart_str(answer.nstate.accepted.by.username))
accepted_by_link = html.objlink(answer.nstate.accepted.by, style=settings.EMAIL_ANCHOR_STYLE)
answer_author_link = html.objlink(answer.author, style=settings.EMAIL_ANCHOR_STYLE)
question_link = html.objlink(question, style=settings.EMAIL_ANCHOR_STYLE)
{% enddeclare %}
{% email %}
{% subject %}{% blocktrans %}{{ prefix }} An answer to: {{ question_title }} has been accepted{% endblocktrans %}{% endsubject %}
{% htmlcontent notifications/base.html %}
<p style="{{ p_style }}">
{% blocktrans %}
{{ accepted_by_link }} has just accepted {{ answer_author_link }}'s answer on his question
{{ question_link }}.
{% endblocktrans %}
</p>
{% endhtmlcontent %}
{% textcontent notifications/base_text.html %}
{% blocktrans %}
{{ accepted_by }} has just accepted {{ answer_author }}'s answer on his question
"{{ question_title }}".
{% endblocktrans %}
{% endtextcontent %}
{% endemail %}
{% load extra_filters extra_tags i18n email_tags %}
{% declare %}
p_style = smart_str(settings.EMAIL_PARAGRAPH_STYLE)
a_style = smart_str(settings.EMAIL_ANCHOR_STYLE)
hr_style = "color:#ccc;border:0;height:1px;background-color:#ccc;margin-bottom:20px;"
small_style = "color:#333333;font-family:'Lucida Grande', Trebuchet, Helvetica, sans-serif;font-size:12px;"
table_style = "border:20px %s solid;margin:10px auto 10px auto;width:750px;text-align:left;" % settings.EMAIL_BORDER_COLOR
{% enddeclare %}
<html>
<head>
<base href="{{ settings.APP_URL }}">
</head>
<body style="margin:0;">
<center>
<table style="{{ table_style }}">
<tbody><tr><td style="padding:20px;">
<a href="{{ settings.APP_URL }}" style="border: 0;"><img src="{{ settings.APP_URL }}{{ settings.APP_LOGO }}" alt="{{settings.APP_TITLE}}" border="0"/></a>
<hr style="{{ hr_style }}" />
{% if not exclude_greeting %}
<p style="{{ p_style }}">{% trans "Hello" %} {{ recipient.username }},</p>
{% endif %}
{% block content %}{% endblock%}
<p style="{{ p_style }}">{% trans "Thanks" %},<br />{{settings.APP_SHORT_NAME}}</p>
{% if not exclude_finetune %}
<p style="{{ p_style }}">{% trans "P.S. You can always fine-tune which notifications you receive" %}
<a href="{{ settings.APP_URL }}{{ recipient.get_user_subscriptions_url }}" style="{{ a_style }}">{% trans "here" %}</a>.
{% endif %}
</p>
<hr style="{{ hr_style }}" />
<p style="{{ p_style }}"><small style="{{ small_style }}">{{ settings.EMAIL_FOOTER_TEXT }}</small></p>
</td></tr></tbody></table>
</center>
</body>
</html>
{% load extra_filters extra_tags i18n email_tags %}
{% if not exclude_greeting %}
{% trans "Hello" %} {{ recipient.username }},
{% endif %}
{% block content %}{% endblock%}
{% trans "Thanks" %},
{{settings.APP_SHORT_NAME}}
{% if not exclude_finetune %}
{% trans "P.S. You can always fine-tune which notifications you receive here:" %}
{{ settings.APP_URL }}{{ recipient.get_user_subscriptions_url }}
{% endif %}
{{ settings.EMAIL_FOOTER_TEXT }}
\ No newline at end of file
{% load i18n extra_tags email_tags %}
{% declare %}
prefix = html.mark_safe(smart_str(settings.EMAIL_SUBJECT_PREFIX))
app_name = smart_unicode(settings.APP_SHORT_NAME)
app_url = settings.APP_URL
new_member_links = html.mark_safe(smart_unicode(", ".join([html.objlink(u, style=settings.EMAIL_ANCHOR_STYLE) for u in new_members])))
new_question_count = digest.count
{% enddeclare %}
{% email %}
{% subject %}{% blocktrans %}{{ prefix }} Daily digest{% endblocktrans %}{% endsubject %}
{% htmlcontent notifications/base.html %}
{% declare %}
new_questions_link = html.hyperlink(smart_unicode(app_url) + reverse('questions') + '?sort=' + _('latest'), smart_unicode(_('nuove domande')), style=a_style)
user_questions = digest.get_for_user(recipient)
subscribed_url = '%s%s' % (app_url, recipient.get_subscribed_url())
subscriptions_link = html.hyperlink(subscribed_url, _('subscriptions'), style=a_style)
{% enddeclare %}
<p style="{{ p_style }}">
{% blocktrans %}
This is a brief of what's going on the {{ app_name }} community since our last update.
{% endblocktrans %}
</p>
{% if new_member_count %}
<p style="{{ p_style }}">
{% if show_all_users %}
{% blocktrans %}
There are {{ new_member_count }} new members in the community. {{ new_member_links }} were the most active so far.
{% endblocktrans %}
{% else %}
{% blocktrans %}
{{ new_member_links }} have joined the {{ app_name }} community.
{% endblocktrans %}
{% endif %}
{% endif %}
</p>
{% if new_question_count %}
<p style="{{ p_style }}">
{% blocktrans %}
{{ new_question_count }} {{ new_questions_link }} were posted since our last update.
{% endblocktrans %}
</p>
{% if user_questions.interesting %}
<p style="{{ p_style }}">
{% trans "We think you might like the following questions:" %}
</p>
<ul>
{% for q in user_questions.interesting %}
<li>
<a style="{{ a_style }}" href="{{ app_url }}{{ q.get_absolute_url }}">{{ q.title }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
{% if user_questions.may_help %}
<p style="{{ p_style }}">
{% trans "These new questions didn't get many attention from the community, but we think you may be able to help:" %}
</p>
<ul>
{% for q in user_questions.may_help %}
<li>
<a style="{{ a_style }}" href="{{ app_url }}{{ q.get_absolute_url }}">{{ q.title }}</a>
</li>
{% endfor %}
</ul>
{% if user_questions.subscriptions %}
<p style="{{ p_style }}">
{% blocktrans %}Meanwhile, some of your {{ subscriptions_link }} have new updates since you last visited them:{% endblocktrans %}
</p>
<ul>
{% for q in user_questions.subscriptions %}
<li>
<a style="{{ a_style }}" href="{{ app_url }}{{ q.get_absolute_url }}">{{ q.title }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
{% endif %}
{% endif %}
{% if recipient.is_superuser %}
{% declare %}
flagged_url = html.hyperlink(smart_unicode(app_url + reverse('admin_flagged_posts')), smart_unicode(str(flagged_count) + ' ' + _('elementi')), style=a_style)
{% enddeclare %}
<p style="{{ p_style }}">
{% blocktrans %}
{{ flagged_url }} have been marked as flagged.
{% endblocktrans %}
</p>
{% endif %}
{% endhtmlcontent %}
{% textcontent notifications/base_text.html %}
{% blocktrans %}This is a brief of what's going on the {{ app_name }} community since our last update.{% endblocktrans %}
{% if new_member_count %}
{% if show_all_users %}
{% blocktrans %}There are {{ new_member_count }} new members in the community. {{ new_member_links }} were the most active so far.{% endblocktrans %}
{% else %}
{% blocktrans %}{{ new_member_links }} have joined the {{ app_name }} community.{% endblocktrans %}
{% endif %}
{% endif %}
{% if new_question_count %}
{% blocktrans %}{{ new_question_count }} new questions were posted since our last update.{% endblocktrans %}
{% if user_questions.interesting %}{% trans "We think you might like the following questions:" %}
{% for q in user_questions.interesting %}
* {{ q.title }}
{% endfor %}
{% endif %}
{% if user_questions.may_help %}
{% trans "These new questions didn't get many attention from the community, but we think you may be able to help:" %}
{% for q in user_questions.may_help %}
* {{ q.title }}
{% endfor %}
{% if user_questions.subscriptions %}
{% blocktrans %}Meanwhile, some of your subscriptions have new updates since you last visited them:{% endblocktrans %}
{% for q in user_questions.subscriptions %}
* {{ q.title }}
{% endfor %}
{% endif %}
{% endif %}
{% endif %}
{% if recipient.is_superuser %}
{% blocktrans %}{{ flagged_count }} posts have been marked as flagged.{% endblocktrans %}
{% endif %}
{% endtextcontent %}
{% endemail %}
{% load i18n extra_tags email_tags %}
{% declare %}
prefix = smart_str(settings.EMAIL_SUBJECT_PREFIX)
app_name = smart_str(settings.APP_SHORT_NAME)
exclude_greeting = True
exclude_finetune = True
{% enddeclare %}
{% email %}
{% subject %}{% blocktrans %}{{ prefix }} Feedback message from {{ app_name }}{% endblocktrans %}{% endsubject %}
{% htmlcontent notifications/base.html %}
<p style="{{ p_style }}">
{% trans "Sender" %}:{% if name %}{{ name }}{% else %}{% trans "anonymous" %}{% endif %}<br />
{% trans "email" %}: {{ email }}
<br/>
ip: {{ ip }}
</p>
<blockquote>
{% trans "Message body:" %} {{ message }}
</blockquote>
{% endhtmlcontent %}
{% textcontent notifications/base_text.html %}
{% trans "Sender" %}: {% if name %}{{ name|safe }}{% else %}{% trans "anonymous" %}{% endif %}
{% trans "email" %}: {{ email|safe }}
ip: {{ ip }}
{% trans "Message body:" %} {{ message|safe }}
{% endtextcontent %}
{% endemail %}
{% load i18n extra_tags email_tags %}
{% declare %}
prefix = html.mark_safe(smart_str(settings.EMAIL_SUBJECT_PREFIX))
app_name = smart_str(settings.APP_SHORT_NAME)
safe_app_name = html.mark_safe(smart_str(settings.APP_SHORT_NAME))
answer_author = html.mark_safe(smart_str(answer.author.username))
question = answer.question
question_title = html.mark_safe(smart_str(question.title))
safe_body = html.html2text(smart_str(answer.html))
author_link = html.objlink(answer.author, style=settings.EMAIL_ANCHOR_STYLE)
question_link = html.objlink(question, style=settings.EMAIL_ANCHOR_STYLE)
{% enddeclare %}
{% email %}
{% subject %}{% blocktrans %}{{ prefix }} New answer to: {{ question_title }}{% endblocktrans %}{% endsubject %}
{% htmlcontent notifications/base.html %}
<p style="{{ p_style }}">
{% blocktrans %}
{{ author_link }} has just posted a new answer on {{ app_name }} to the question
{{ question_link }}:
{% endblocktrans %}
</p>
<blockquote>
{{ answer.html|safe }}
</blockquote>
<p style="{{ p_style }}">{% trans "Don't forget to come over and cast your vote." %}</p>
{% endhtmlcontent %}
{% textcontent notifications/base_text.html %}
{% blocktrans %}
{{ answer_author }} has just posted a new answer on {{ safe_app_name }} to the question
"{{ question_title }}":
{% endblocktrans %}
{{ safe_body }}
{% trans "Don't forget to come over and cast your vote." %}
{% endtextcontent %}
{% endemail %}
{% load i18n extra_tags email_tags %}
{% declare %}
prefix = html.mark_safe(smart_str(settings.EMAIL_SUBJECT_PREFIX))
post = comment.parent
question = post.question and post.question or post
post_author = smart_str(post.author.username)
safe_post_author = html.mark_safe(smart_str(post.author.username))
comment_author = html.mark_safe(smart_str(comment.author))
question_title = html.mark_safe(smart_str(question.title))
safe_body = html.html2text(smart_str(comment.comment))
author_link = html.objlink(comment.author, style=settings.EMAIL_ANCHOR_STYLE)
question_link = html.objlink(question, style=settings.EMAIL_ANCHOR_STYLE)
{% enddeclare %}
{% email %}
{% subject %}{% blocktrans %}{{ prefix }} New comment on: {{ question_title }}{% endblocktrans %}{% endsubject %}
{% htmlcontent notifications/base.html %}
<p style="{{ p_style }}">
{% blocktrans %}{{ author_link }} has just posted a comment on {% endblocktrans %}
{% ifnotequal post question %}
{% blocktrans %}the answer posted by {{ post_author }} to {% endblocktrans %}
{% endifnotequal %}
{% blocktrans %}the question {{ question_link }}{% endblocktrans %}
</p>
<blockquote>
{{ comment.comment }}
</blockquote>
<p style="{{ p_style }}">{% trans "Don't forget to come over and cast your vote." %}</p>
{% endhtmlcontent %}
{% textcontent notifications/base_text.html %}
{% blocktrans %}{{ comment_author }} has just posted a comment on {% endblocktrans %}
{% ifnotequal post question %}
{% blocktrans %}the answer posted by {{ safe_post_author }} to {% endblocktrans %}
{% endifnotequal %}
{% blocktrans %}the question "{{ question_title }}"{% endblocktrans %}
{{ safe_body }}
{% trans "Don't forget to come over and cast your vote." %}
{% endtextcontent %}
{% endemail %}
{% load i18n extra_tags email_tags %}
{% declare %}
prefix = html.mark_safe(smart_str(settings.EMAIL_SUBJECT_PREFIX))
app_name = smart_str(settings.APP_SHORT_NAME)
safe_app_name = html.mark_safe(smart_str(settings.APP_SHORT_NAME))
app_url = smart_str(settings.APP_URL)
newmember_name = smart_str(newmember.username)
safe_newmember_name = html.mark_safe(smart_str(newmember.username))
newmember_url = smart_str(newmember.get_profile_url())
newmember_link = html.objlink(newmember, style=settings.EMAIL_ANCHOR_STYLE)
{% enddeclare %}
{% email %}
{% subject %}{% blocktrans %}{{ prefix }} {{ safe_newmember_name }} is a new member on {{ safe_app_name }}{% endblocktrans %}{% endsubject %}
{% htmlcontent notifications/base.html %}
<p style="{{ p_style }}">
{% blocktrans %}
{{ newmember_link }} has just joined {{ app_name }}.
View <a style="{{ a_style }}" href="{{ app_url }}{{ newmember_url }}">{{ newmember_name }}'s profile</a>.
{% endblocktrans %}
</p>
{% endhtmlcontent %}
{% textcontent notifications/base_text.html %}
{% blocktrans %}
{{ safe_newmember_name }} has just joined {{ safe_app_name }}. You can visit {{ safe_newmember_name }}'s profile using the following url:
{{ app_url }}{{ newmember_url }}
{% endblocktrans %}
{% endtextcontent %}
{% endemail %}
{% load i18n extra_tags email_tags %}
{% declare %}
prefix = html.mark_safe(smart_str(settings.EMAIL_SUBJECT_PREFIX))
app_name = smart_str(settings.APP_SHORT_NAME)
safe_app_name = html.mark_safe(smart_str(settings.APP_SHORT_NAME))
question_author = html.mark_safe(smart_str(question.author.username))
question_url = smart_str(settings.APP_URL + question.get_absolute_url())
question_title = html.mark_safe(smart_str(question.title))
question_tags = html.mark_safe(smart_str(question.tagnames))
safe_body = html.html2text(smart_str(question.html))
author_link = html.objlink(question.author, style=settings.EMAIL_ANCHOR_STYLE)
question_link = html.objlink(question, style=settings.EMAIL_ANCHOR_STYLE)
tag_links = html.mark_safe(smart_str(" ".join([html.objlink(t, style=settings.EMAIL_ANCHOR_STYLE) for t in question.tags.all()])))
{% enddeclare %}
{% email %}
{% subject %}{% blocktrans %}{{ prefix }} New question: {{ question_title }} on {{ safe_app_name }}{% endblocktrans %}{% endsubject %}
{% htmlcontent notifications/base.html %}
<p style="{{ p_style }}">
{% blocktrans %}
{{ author_link }} has just posted a new question on {{ app_name }}, entitled
{{ question_link }}
and tagged "<em>{{ tag_links }}</em>". Here's what it says:
{% endblocktrans %}
</p>
<blockquote>
{{ question.html|safe }}
</blockquote>
<p style="{{ p_style }}">{% trans "Don't forget to come over and cast your vote." %}</p>
{% endhtmlcontent %}
{% textcontent notifications/base_text.html %}
{% blocktrans %}
{{ question_author }} has just posted a new question on {{ safe_app_name }}, entitled
"{{ question_title }}" and tagged {{ question_tags }}:
{% endblocktrans %}
{{ safe_body }}
{% trans "Don't forget to come over and cast your vote." %}
{% endtextcontent %}
{% endemail %}
{% load i18n %}
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>{{ settings.APP_SHORT_NAME }} {% trans "Search" %}</ShortName>
<Description>{% trans "Search" %} {{ settings.APP_SHORT_NAME }} {% trans "using your browser." %}</Description>
<Tags>{{ settings.APP_KEYWORDS }}</Tags>
<Url type="text/html" template="{{ settings.APP_URL }}/{% trans "search" %}/?q={searchTerms}&amp;t=question"/>
</OpenSearchDescription>
\ No newline at end of file
{% extends "base.html" %}
{% load i18n extra_tags general_sidebar_tags %}
{% block title %}{% trans "Site Administration" %}{% endblock %}
{% block forejs %}
<link rel="stylesheet" type="text/css" media="screen" href="{% media "/media/style/admin.css" %}"/>
<script type="text/javascript" src="{% media "/media/js/osqa.admin.js" %}"></script>
{% block adminjs %}{% endblock %}
{% endblock %}
{% block content %}
<div class="headNormal">
{% trans "OSQA administration area" %} - {% block subtitle %}{% endblock %}
</div>
<div id="admin_page_description">
{% block description %}{% endblock %}
</div>
<div>
{% block admincontent %}
{% endblock %}
</div>
{% endblock %}
{% block sidebar %}
{% if hide_navigation %}
{% else %}
<div class="boxC">
<a href="{% url admin_switch_interface %}?to=djstyle">{% trans "Switch to django style interface" %}</a>
<h3 class="subtitle">{% trans "Administration menu" %}</h3>
<ul>
{% for set in allsets.values %}
<li><a href="{% url admin_set set.name %}">{{ set.title }}</a></li>
{% endfor %}
{% for set in othersets %}
<li>
<a href="{% url admin_set set.name %}">{{ set.title }}</a>
</li>
{% endfor %}
<li><a href="{% url admin_maintenance %}">{% trans "Maintenance mode" %}</a></li>
<li><a href="{% url admin_flagged_posts %}">{% trans "Flagged Posts" %}</a></li>
{% for name,tool in tools %}
<li><a href="{% url admin_tools name %}">{{ tool }}</a></li>
{% endfor %}
</ul>
</div>
{% if markdown %}
{% markdown_help %}
{% endif %}
{% endif %}
{% endblock %}
{% extends basetemplate %}
{% load i18n %}
{% load user_tags %}
{% block subtitle %}
{% trans "Create User" %}
{% endblock %}
{% block description %}
{% trans "Quick creation of a new user" %}
{% endblock %}
{% block admincontent %}
<form action="" method="POST">
{% csrf_token %}
<table>
{{ form.as_table }}
<tr><th></th><td><input type="submit" value="{% trans "Save" %}"></td></tr>
</table>
</form>
{% endblock %}
\ No newline at end of file
{% extends basetemplate %}
{% load i18n %}
{% load user_tags %}
{% block subtitle %}
{% trans "Dashboard" %}
{% endblock %}
{% block description %}
{% trans "Welcome to the OSQA administration area." %}
{% endblock %}
{% block admincontent %}
<div class="module" style="width:49%; display: inline-block; vertical-align: top;">
<table style="width: 100%; height: 100%;">
<caption>{% trans "Quick statistics" %}</caption>
<tr>
<td>
{{ statistics.total_questions }} {% trans "question" %}{{ statistics.total_questions|pluralize }} ({{ statistics.questions_last_24 }} {% trans "in the last 24 hours" %})
</td>
</tr>
<tr>
<td>
{{ statistics.total_answers }} {% trans "answer" %}{{ statistics.total_answers|pluralize }} ({{ statistics.answers_last_24 }} {% trans "in the last 24 hours" %})
</td>
</tr>
<tr>
<td>
{{ statistics.total_users }} {% trans "user" %}{{ statistics.total_users|pluralize }} ({{ statistics.users_last_24 }} {% trans "joined in the last 24 hours" %})
</td>
</tr>
</table>
</div>
<div class="module" style="width:49%; display: inline-block;">
<table>
<caption>{%trans "Site status" %}</caption>
<tr>
<td>
{% ifequal settings_pack "bootstrap" %}
{% trans "Your site is running in bootstrap mode, click the button below to revert to defaults." %}<br />
{% else %}
{% ifequal settings_pack "default" %}
{% trans "Your site is running in standard mode, click the button below to run in bootstrap mode." %}<br />
{% else %}
{% trans "Your site is running with some customized settings, click the buttons below to run with defaults or in bootstrap mode" %}
{% endifequal %}
{% endifequal %}
{% ifnotequal settings_pack "default" %}
<button onclick="if (window.confirm('{% trans "Are you sure you want to revert to the defaults?" %}')) window.location='{% url admin_go_defaults %}';">{% trans "revert to defaults" %}</button>
{% endifnotequal %}
{% ifnotequal settings_pack "bootstrap" %}
<button onclick="if (window.confirm('{% trans "Are you sure you want to run bootstrap mode?" %}')) window.location='{% url admin_go_bootstrap %}';">{% trans "go bootstrap" %}</button>
{% endifnotequal %}
</td>
</tr>
<tr>
<td>
<em>"Bootstrap mode" relaxes the minimum required reputation to perform actions like voting and commenting.
This is useful to help new communities get started.</em>
</td>
</tr>
</table>
</div>
<div class="module" style="width:98%; display: inline-block;">
<table width="100%">
<caption>{% trans "Recent activity" %}</caption>
<tr>
<td colspan="2">
<table id="result_list" width="100%">
{% for activity in recent_activity.paginator.page %}
<tr class="{% cycle 'row1' 'row2' %}"><td>{% activity_item activity request.user %}</td></tr>
{% endfor %}
</table>
</td>
</tr>
</table>
<p class="paginator">
{{ recent_activity.paginator.page_numbers }}
</p>
</div>
{% endblock %}
\ No newline at end of file
{% load extra_tags extra_filters i18n %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" href="{{ settings.ADMIN_MEDIA_PREFIX }}css/base.css" type="text/css"/>
<link rel="stylesheet" href="{{ settings.ADMIN_MEDIA_PREFIX }}css/forms.css" type="text/css"/>
<link rel="stylesheet" href="{{ settings.ADMIN_MEDIA_PREFIX }}css/changelists.css" type="text/css"/>
<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="{{ settings.ADMIN_MEDIA_PREFIX }}css/ie.css" /><![endif]-->
<link rel="stylesheet" type="text/css" media="screen" href="{% media "/media/style/djstyle_admin.css" %}"/>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
//<!--
google.load("jquery", "1.3");
//-->
</script>
<script type="text/javascript" src="{% media "/media/js/osqa.admin.js" %}"></script>
{% block adminjs %}{% endblock %}
<title>{% trans "OSQA administration area" %} - {% block subtitle %}{% endblock %}</title>
</head>
<body>
<div id="container" class="change-list">
<div id="header">
{% block header %}
<div id="branding">
<h1 id="site-name">{{ settings.APP_SHORT_NAME }} - {% trans "Administration Area" %} </h1>
</div>
{% endblock %}
<div id="user-tools">
{% trans "Welcome," %}
<strong>{{ request.user.username }}</strong>.
<a href="{% url admin_switch_interface %}?to=default">{% trans "To standard interface" %}</a>
/ <a href="{% url index %}">{% trans "Back to home page" %}</a>
/ <a href="{% url logout %}">{% trans "Log out" %}</a>
</div>
</div>
<div class="breadcrumbs">
<a href="{% url index %}">{% trans "Home" %}</a> &gt;
<a href="{% url admin_index %}">{% trans "Dashboard" %}</a> &gt;
{% block pagename %}{% endblock %} -
{% block description %}{% endblock %}
</div>
<div id="content" class="{% if hide_navigation %}flex{% else %}colMS{% endif %}">
<div id="content-main">
{% autoescape off %}
{% for message in user_messages %}
<p class="admin_message">{{ message }}</p>
{% endfor %}
{% endautoescape %}
{% block admincontent %}{% endblock %}
</div>
{% if hide_navigation %}
{% else %}
<div id="content-related">
{% if unsaved %}
<div id="changes-box" class="module">
<h2>{% trans "Unpublished changes" %}</h2>
<p>
<img src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon_alert.gif" />
{% trans "Items marked with this icon have unpublished changes." %}
</p>
</div>
{% endif %}
<div id="basic-sets-menu" class="module">
<h2>{% trans "Basic settings" %}</h2>
<ul>
<li><a href="{% url admin_set allsets.basic.name %}">{{ allsets.basic.title }}</a></li>
<li><a href="{% url admin_set allsets.users.name %}">{{ allsets.users.title }}</a></li>
<li><a href="{% url admin_set allsets.email.name %}">{{ allsets.email.title }}</a></li>
<li><a href="{% url admin_set allsets.paths.name %}">{{ allsets.paths.title }}</a></li>
<li><a href="{% url admin_set allsets.urls.name %}">{{ allsets.urls.title }}</a></li>
<li><a href="{% url admin_set allsets.extkeys.name %}">{{ allsets.extkeys.title }}</a></li>
</ul>
</div>
<div id="workflow-sets-menu" class="module">
<h2>{% trans "Workflow settings" %}</h2>
<ul>
<li><a href="{% url admin_set allsets.repgain.name %}">{{ allsets.repgain.title }}</a></li>
<li><a href="{% url admin_set allsets.minrep.name %}">{{ allsets.minrep.title }}</a></li>
<li><a href="{% url admin_set allsets.voting.name %}">{{ allsets.voting.title }}</a></li>
<li><a href="{% url admin_set allsets.accept.name %}">{{ allsets.accept.title }}</a></li>
<li><a href="{% url admin_set allsets.badges.name %}">{{ allsets.badges.title }}</a></li>
</ul>
</div>
<div id="forum-sets-menu" class="module">
<h2>{% trans "Forum settings" %}</h2>
<ul>
<li><a href="{% url admin_set allsets.form.name %}">{{ allsets.form.title }}</a></li>
<li><a href="{% url admin_set allsets.view.name %}">{{ allsets.view.title }}</a></li>
<li><a href="{% url admin_set allsets.moderation.name %}">{{ allsets.moderation.title }}</a></li>
</ul>
</div>
<div id="pages-sets-menu" class="module">
<h2>{% trans "Static content" %}</h2>
<ul>
<li><a href="{% url admin_static_pages %}">{% trans "Custom Pages" %}</a></li>
<li><a href="{% url admin_set allsets.about.name %}">{{ allsets.about.title }}</a></li>
<li><a href="{% url admin_set allsets.faq.name %}">{{ allsets.faq.title }}</a></li>
<li><a href="{% url admin_set allsets.sidebar.name %}">{{ allsets.sidebar.title }}</a></li>
<li>
<a href="{% url admin_set allsets.css.name %}">{{ allsets.css.title }}</a>
{% if "css"|contained_in:unsaved %}<img width="12" height="12" src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon_alert.gif" alt="{% trans "Unsaved changes" %}" />{% endif %}
</li>
<li>
<a href="{% url admin_set allsets.headandfoot.name %}">{{ allsets.headandfoot.title }}</a>
{% if "headandfoot"|contained_in:unsaved %}<img width="12" height="12" src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon_alert.gif" alt="{% trans "Unsaved changes" %}" />{% endif %}
</li>
<li>
<a href="{% url admin_set allsets.head.name %}">{{ allsets.head.title }}</a>
{% if "head"|contained_in:unsaved %}<img width="12" height="12" src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon_alert.gif" alt="{% trans "Unsaved changes" %}" />{% endif %}
</li>
</ul>
</div>
<div id="other-sets-menu" class="module">
<h2>{% trans "Other settings" %}</h2>
<ul>
{% for set in othersets %}
<li>
<a href="{% url admin_set set.name %}">{{ set.title }}</a>
{% if set.name|contained_in:unsaved %}<img width="12" height="12" src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon_alert.gif" alt="{% trans "Unsaved changes" %}" />{% endif %}
</li>
{% endfor %}
</ul>
</div>
<div id="tools-menu" class="module">
<h2>{% trans "Tools" %}</h2>
<ul>
<li><a href="{% url admin_maintenance %}">{% trans "Maintenance mode" %}</a></li>
<li><a href="{% url admin_flagged_posts %}">{% trans "Flagged Posts" %}</a></li>
{% for name,tool in tools %}
<li><a href="{% url admin_tools name %}">{{ tool }}</a></li>
{% endfor %}
</ul>
</div>
</div>
{% endif %}
</div>
<div id="footer" class="breadcumbs">
<a href="http://www.osqa.net">OSQA</a> <span class="version">{{ settings.OSQA_VERSION }} ({{ settings.SVN_REVISION }})</span>
</div>
</div>
</body>
\ No newline at end of file
{% extends basetemplate %}
{% load i18n extra_filters %}
{% block subtitle %}{% trans "Editing page" %}{% endblock %}
{% block pagename %}
<a href="{% url admin_static_pages %}">{% trans "Static Pages" %}</a> &gt;
{% if page %}{% trans "Editing page" %}{% else %}{% trans "Creating page" %}{% endif %}
{% endblock %}
{% block description %}
{% if page %}{{ page.title }}{% else %}{% trans "New page" %}{% endif %}
({% if published %}{% trans "Published" %}{% else %}{% trans "Unpublished" %}{% endif %})
{% endblock %}
{% block admincontent %}
<form action="" method="post" accept-charset="utf-8">
{% csrf_token %}
<table style="width: 100%">
{{ form.as_table }}
<tr>
<th></th>
<td>
{% if page %}
<input id="submit" name="submit" type="submit" value="{% trans "Edit" %}" />
{% else %}
<input id="submit" name="submit" type="submit" value="{% trans "Save" %}" />
{% endif %}
{% if published %}
<input id="unpublish" name="unpublish" type="submit" value="{% trans "Unpublish" %}" />
{% else %}
<input id="publish" name="publish" type="submit" value="{% trans "Publish" %}" />
{% endif %}
</td>
</tr>
</table>
</form>
{% endblock %}
\ No newline at end of file
{% extends basetemplate %}
{% load i18n %}
{% load user_tags %}
{% block subtitle %}{% trans "Flagged Posts" %}{% endblock %}
{% block pagename %}{% trans "Flagged Posts" %}{% endblock %}
{% block description %}{% trans "This are the posts that have been flagged by users." %}{% endblock %}
{% block admincontent %}
<div class="module" style="width:98%; display: inline-block;">
<table width="100%">
<caption>{% trans "Flagged Posts" %}</caption>
<tr>
<td colspan="2">
<table width="100%">
{% for post in flagged_posts %}
<tr><td>{% flagged_item post request.user %}</td></tr>
{% endfor %}
</table>
</td>
</tr>
</table>
</div>
{% endblock %}
\ No newline at end of file
<div class="module" style="width:385px; height:300px; display: inline-block;">
<table style="width: 100%; height: 100%">
<caption>{{ graph.caption }}</caption>
<tr>
<td>
<div style="width: 100%; height: 100%" id="{{ graph.id }}"></div>
</td>
</tr>
</table>
</div>
\ No newline at end of file
{% extends "osqaadmin/base.html" %}
{% load i18n %}
{% load user_tags %}
{% block subtitle %}
{% trans "Dashboard" %}
{% endblock %}
{% block description %}
{% trans "Welcome to the OSQA administration area." %}
{% endblock %}
{% block admincontent %}
<table width="100%">
<tr>
<td width="50%" valign="top">
<h3>{%trans "Site statistics" %}</h3>
<table>
<tr>
<td>
{{ statistics.total_questions }} {% trans "question" %}{{ statistics.total_questions|pluralize }} ({{ statistics.questions_last_24 }} {% trans "in the last 24 hours" %})
</td>
</tr>
<tr>
<td>
{{ statistics.total_answers }} {% trans "answer" %}{{ statistics.total_answers|pluralize }} ({{ statistics.answers_last_24 }} {% trans "in the last 24 hours" %})
</td>
</tr>
<tr>
<td>
{{ statistics.total_users }} {% trans "user" %}{{ statistics.total_users|pluralize }} ({{ statistics.users_last_24 }} {% trans "joined in the last 24 hours" %})
</td>
</tr>
</table>
</td>
<td valign="top">
<h3>{%trans "Site status" %}</h3>
<table>
<tr>
<td>
{% ifequal settings_pack "bootstrap" %}
{% trans "Your site is running in bootstrap mode, click the button below to revert to defaults." %}<br />
{% else %}
{% ifequal settings_pack "default" %}
{% trans "Your site is running in standard mode, click the button below to run in bootstrap mode." %}<br />
{% else %}
{% trans "Your site is running with some customized settings, click the buttons below to run with defaults or in bootstrap mode" %}
{% endifequal %}
{% endifequal %}
{% ifnotequal settings_pack "default" %}
<button onclick="if (window.confirm('{% trans "Are you sure you want to revert to the defaults?" %}')) window.location='{% url admin_go_defaults %}';">{% trans "revert to defaults" %}</button>
{% endifnotequal %}
{% ifnotequal settings_pack "bootstrap" %}
<button onclick="if (window.confirm('{% trans "Are you sure you want to run bootstrap mode?" %}')) window.location='{% url admin_go_bootstrap %}';">{% trans "go bootstrap" %}</button>
{% endifnotequal %}
</td>
</tr>
<tr>
<td>
<em>"Bootstrap mode" relaxes the minimum required reputation to perform actions like voting and commenting.
This is useful to help new communities get started.</em>
</td>
</tr>
</table>
<h3>{%trans "Recalculate scores and reputation" %}</h3>
<button onclick="if (window.confirm('{% trans "This is a heavy operation, are you sure?" %}')) window.location='{% url admin_denormalize %}';">{% trans "Recalculate" %}</button>
</td>
</tr>
<tr>
<td colspan="2">
<h3>{% trans "Recent activity" %}</h3>
<table width="100%">
{% for activity in recent_activity %}
{% activity_item activity request.user %}
{% endfor %}
</table>
</td>
</tr>
</table>
{% endblock %}
\ No newline at end of file
{% load i18n extra_tags email_tags %}
{% declare %}
prefix = settings.EMAIL_SUBJECT_PREFIX
app_name = settings.APP_SHORT_NAME
exclude_finetune = True
{% enddeclare %}
{% email %}
{% subject %}{% blocktrans %}{{ prefix }} Your email settings are correct: {{ app_name }}{% endblocktrans %}{% endsubject %}
{% htmlcontent notifications/base.html %}
{% trans "If you see this content your E-Mail settings are correct." %}
{% endhtmlcontent %}
{% textcontent notifications/base_text.html %}
{% trans "If you see this content your E-Mail settings are correct." %}
{% endtextcontent %}
{% endemail %}
{% extends basetemplate %}
{% load i18n %}
{% block subtitle %}{% trans "Maintenance mode" %}{% endblock %}
{% block pagename %}{% trans "Maintenance mode" %}{% endblock %}
{% block description %}{% trans "Maintainance mode allows you to close your site for maintainance, allowing only a predetermined set of ip addresses to access it normally." %}{% endblock %}
{% block admincontent %}
<form method="POST" action="">
{% csrf_token %}
{% if in_maintenance %}
<h1>{% trans "Your site is currently running on maintenance mode." %}</h1>
<p>{% trans "You can adjust the settings bellow" %}</p>
{% endif %}
<table>
{{ form.as_table }}
</table>
{% if in_maintenance %}
<input type="submit" name="adjust" value="{% trans "Adjust settings" %}" />
<input type="submit" name="open" value="{% trans "Open site" %}" />
{% else %}
<input type="submit" name="close" value="{% trans "Close for maintenance" %}" />
{% endif %}
</form>
{% endblock %}
\ No newline at end of file
{% extends basetemplate %}
{% load i18n humanize %}
{% block subtitle %}{% trans "Moderation" %}{% endblock %}
{% block pagename %}{% trans "Moderation" %}{% endblock %}
{% block description %}{% trans "These tools allow you to search for undesired behaviours and cheating patterns." %}{% endblock %}
{% block admincontent %}
<div class="module">
<form action="" id="changelist" method="POST">
{% csrf_token %}
<div class="actions">
{% trans "Verify:" %}
<input type="text" size="3" name="limit" id="filter-limit" value="5" />
<select name="sort" id="filter-sort">
<option value="high-rep">{% trans "highest ranking users" %}</option>
<option value="newer">{% trans "newer users" %}</option>
<option value="older">{% trans "older users" %}</option>
<option value="ids">{% trans "users with these ids" %}</option>
</select>
<span id="filter-ids" style="display: none">
<input type="text" name="ids" size="15" />
<small>{% trans "(Comma separated list of user ids)" %}</small>
</span>
<input type="submit" value="{% trans "Go" %}" />
</div>
</form>
<script type="text/javascript">
$(function() {
$limit = $('#filter-limit');
$sort = $('#filter-sort');
$ids = $('#filter-ids');
function verify_sort() {
if ($sort.val() == "ids") {
$ids.show();
$limit.hide();
} else {
$ids.hide();
$limit.show();
}
}
verify_sort();
$sort.change(verify_sort);
})
</script>
{% if cheaters %}
<table cellspacing="0" width="100%">
<caption>{% trans "Possible cheaters" %}</caption>
{% for cheater, fakes in cheaters %}
<tr>
<td>
<div class="cheater-info">
<p><a href="{{ cheater.get_profile_url }}">{{ cheater.username }}</a></p>
<p><b>{% trans "Email" %}</b>
{% if cheater.email_isvalid %}
<img src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon-yes.gif" alt="{% trans "Validated" %}" />
{% else %}
<img src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon-no.gif" alt="{% trans "Not validated" %}" />
{% endif %}
<a href="mailto: {{ cheater.email }}">{{ cheater.email }}</a></p>
<p><b>{% trans "Reputation:" %}</b> {{ cheater.reputation|intcomma }}</p>
</div>
<table cellspacing="0" width="100%">
<thead>
<tr>
<th>{% trans "Profile" %}</th>
<th>{% trans "Email" %}</th>
<th>{% trans "Reputation" %}</th>
<th>{% trans "Affecting actions" %}</th>
<th>{% trans "Cross ips" %}</th>
<th>{% trans "Cheating score" %}</th>
</tr>
</thead>
<caption>{% trans "Possible fake accounts" %}</caption>
{% for fake in fakes %}
<tr>
<td><a href="{{ fake.get_profile_url }}">{{ fake.username }}</a></td>
<td>
{% if fake.email_isvalid %}
<img src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon-yes.gif" alt="{% trans "Validated" %}" />
{% else %}
<img src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon-no.gif" alt="{% trans "Not validated" %}" />
{% endif %}
<a href="mailto: {{ fake.email }}">{{ fake.email }}</a>
</td>
<td>{{ fake.reputation|intcomma }}</td>
<td>{{ fake.fdata.affect_count }} {% trans "out of" %} {{ fake.fdata.total_actions }} ({{ fake.fdata.action_ratio|stringformat:".2f" }}%)</td>
<td>{{ fake.fdata.cross_ip_count }} {% trans "out of" %} {{ fake.fdata.total_ip_count }} ({{ fake.fdata.cross_ip_ratio|stringformat:".2f" }}%)</td>
<td>{{ fake.fdata.fake_score|stringformat:".2f" }}</td>
</tr>
{% endfor %}
</table>
</td>
</tr>
{% endfor %}
</table>
{% endif %}
</div>
{% endblock %}
\ No newline at end of file
This diff is collapsed.
{% extends basetemplate %}
{% load i18n extra_tags extra_filters %}
{% block subtitle %}{{ form.set.title }}{% endblock %}
{% block pagename %}{{ form.set.title }}{% endblock %}
{% block description %}{{ form.set.description }}{% endblock %}
{% block admincontent %}
<form action="" method="POST" enctype="multipart/form-data" accept-charset="utf-8">
{% csrf_token %}
<table id="admin_form" style="width: 100%">
{{ form.as_table }}
<tr>
<th></th>
<td>
<input id="submit" name="submit" type="submit" value="{% trans "Save" %}" onclick="this.form.target=''; return true;" />
{% if form.set.can_preview %}
<input id="preview" name="preview" type="submit" value="{% trans "Preview" %}" onclick="this.form.target='_blank'; return true;" />
{% if form.set.name|contained_in:unsaved %}
<input id="reset" name="reset" type="submit" value="{% trans "Reset Changes" %}" onclick="this.form.target=''; return true;" />
{% endif %}
{% endif %}
</td>
</tr>
</table>
</form>
{% endblock %}
\ No newline at end of file
{% extends basetemplate %}
{% load i18n %}
{% block subtitle %}{% trans "Static pages" %}{% endblock %}
{% block pagename %}{% trans "Static pages" %}{% endblock %}
{% block description %}{% trans "Allows you to create a set of static pages" %}{% endblock %}
{% block admincontent %}
<h1>{% trans "Select page to edit" %}</h1>
<ul class="object-tools">
<li><a class="addlink" href="{% url admin_new_page %}">{% trans "New page" %}</a></li>
</ul>
<div class="module">
<table style="width: 100%">
<caption>{% trans "Pages" %}</caption>
<tbody>
{% for page in pages %}
<tr>
<th scope="row"><a href="{% url admin_edit_page id=page.id %}">{{ page.headline }}</a></th>
<td style="width: 125px;"><a class="changelink" href="{% url admin_edit_page id=page.id %}">{% trans "Edit" %}</a></td>
<td style="width: 125px;">
<a onclick="return confirm('{% trans "Are you sure you want to delete this page?" %}');" class="deletelink" href="{% url admin_delete_page id=page.id %}">
{% trans "Delete" %}
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}
\ No newline at end of file
{% extends basetemplate %}
{% load i18n %}
{% load extra_tags %}
{% block adminjs %}
<script type='text/javascript' src='{% media "/media/js/excanvas.min.js" %}'></script>
<script type='text/javascript' src='{% media "/media/js/jquery.flot.min.js" %}'></script>
<script type="text/javascript">
$().ready(function(){
{% for graph in graphs %}
var {{ graph.id }} = {{ graph.data }};
var {{ graph.id }}_placeholder = $('#{{ graph.id }}');
$.plot({{ graph.id }}_placeholder, [{{ graph.id }}], {
xaxis: { mode: "time" },
points: { show: false },
lines: { show: true }
});
{% endfor %}
});
</script>
{% endblock %}
{% block subtitle %}{% trans "Dashboard" %}{% endblock %}
{% block pagename %}{% trans "Dashboard" %}{% endblock %}
{% block description %}{% trans "Some simple graphics to help you get a notion of whats going on in your site." %}{% endblock %}
{% block admincontent %}
{% for graph in graphs %}
{% include "osqaadmin/graph.html" %}
{% endfor %}
{% endblock %}
\ No newline at end of file
{% load i18n %}
<p>
{% blocktrans %}
An attempt has been made to send email to
{% endblocktrans %} {{ user.email }}.
</p>
<p>
{% blocktrans %}
Please, check your inbox and if you see the new test message your email STMP settings are correct.
{% endblocktrans %}
</p>
<p>
{% blocktrans %}
If you do not see the new test message check your spam folder, and if you don't find it check your SMTP settings
again. It might be useful to take a look at the log file.
{% endblocktrans %}
</p>
\ No newline at end of file
{% extends base %}
{% load i18n markup node_tags general_sidebar_tags %}
{% block title %}{% spaceless %}{{ page.title }}{% endspaceless %}{% endblock %}
{% block content %}
<div class="headNormal">{{ page.title }}</div>
<div class="content">
{{ body }}
</div>
{% if page.extra.comments %}
{% comments page request.user %}
{% endif %}
{% endblock %}
{% ifequal page.extra.template "sidebar" %}
{% block sidebar %}
{% sidebar_upper %}
{% if page.extra.sidebar %}
{% if page.extra.sidebar_wrap %}<div class="boxC"><div class="body">{% endif %}
{{ sidebar }}
{% if page.extra.sidebar_wrap %}</div></div>{% endif %}
{% endif %}
{% sidebar_lower %}
{% endblock %}
{% endifequal %}
<!-- template pagesize.html -->
{% spaceless %}
{% load i18n %}
{% if is_paginated %}
<div class="paginator">
<span class="text">{% trans "posts per page" %}</span>
{% ifequal pagesize 10 %}
<span class="curr">10</span>
{% else %}
<span class="page"><a href="{{base_url}}pagesize=10">10</a></span>
{% endifequal %}
{% ifequal pagesize 30 %}
<span class="curr">30</span>
{% else %}
<span class="page"><a href="{{base_url}}pagesize=30">30</a></span>
{% endifequal %}
{% ifequal pagesize 50 %}
<span class="curr">50</span>
{% else %}
<span class="page"><a href="{{base_url}}pagesize=50">50</a></span>
{% endifequal %}
</div>
{% endif %}
{% endspaceless %}
<!-- end template pagesize.html -->
<!-- paginator.html -->
{% spaceless %}
{% load i18n %}
{% if is_paginated %}
<div class="paginator">
{% if has_previous %}<span class="prev"><a href="{{base_url}}page={{ previous }}{{ extend_url }}" title="{% trans "previous" %}">
&laquo; {% trans "previous" %}</a></span>{% endif %}
{% if not in_leading_range %}
{% for num in pages_outside_trailing_range %}
<span class="page"><a href="{{base_url}}page={{ num }}{{ extend_url }}" >{{ num }}</a></span>
{% endfor %}
...
{% endif %}
{% for num in page_numbers %}
{% ifequal num page %}
{% ifequal pages 1 %}
{% else %}
<span class="curr" title="{% trans "current page" %}">{{ num }}</span>
{% endifequal %}
{% else %}
<span class="page"><a href="{{base_url}}page={{ num }}{{ extend_url }}" title="{% trans "page number " %}{{ num }}{% trans "number - make blank in english" %}">{{ num }}</a></span>
{% endifequal %}
{% endfor %}
{% if not in_trailing_range %}
...
{% for num in pages_outside_leading_range reversed %}
<span class="page"><a href="{{base_url}}page={{ num }}{{ extend_url }}" title="{% trans "page number " %}{{ num }}{% trans "number - make blank in english" %}">{{ num }}</a></span>
{% endfor %}
{% endif %}
{% if has_next %}<span class="next"><a href="{{base_url}}page={{ next }}{{ extend_url }}" title="{% trans "next page" %}">{% trans "next page" %} &raquo;</a></span>{% endif %}
</div>
{% endif %}
{% endspaceless %}
<!-- end paginator.html -->
{% spaceless %}
{% load i18n %}
<p class="paginator">
{% if has_previous %}
<span class="prev"><a href="{{ previous_url }}" title="{% trans "previous" %}">&laquo; {% trans "previous" %}</a></span>
{% endif %}
{% for range in page_numbers %}
{% if range %}
{% for num, url in range %}
{% ifequal num current %}
<span class="curr this_page">{{ num }}</span>
{% else %}
<a class="page" href="{{ url }}" >{{ num }}</a>
{% endifequal %}
{% endfor %}
{% else %}
...
{% endif %}
{% endfor %}
{% if has_next %}
<span class="next"><a href="{{ next_url }}" title="{% trans "next page" %}">{% trans "next" %} &raquo;</a></span>
{% endif %}
</p>
{% endspaceless %}
\ No newline at end of file
{% spaceless %}
{% load i18n %}
<div class="paginator">
<span class="text">{% trans "posts per page" %}</span>
{% for size, url in sizes %}
{% ifequal size current %}
<span class="curr">{{ size }}</span>
{% else %}
<span class="page"><a href="{{ url }}">{{ size }}</a></span>
{% endifequal %}
{% endfor %}
</div>
{% endspaceless %}
\ No newline at end of file
{% load i18n %}
{% spaceless %}
<div class="tabsA">
{% for name, label, url, descr in sorts %}
<a href="{{ url }}"{% ifequal current name %} class="on"{% endifequal %} title="{{ descr }}">{{ label }}</a>
{% endfor %}
{% comment %}
<span class="sticky-sort-tabs">
<input title="{% trans "Check to make the sort order sticky" %}" type="checkbox" checked="{% if sticky %}checked{% endif %}" />
</span>
{% endcomment %}
</div>
{% endspaceless %}
{% extends "base_content.html" %}
<!-- privacy.html -->
{% load extra_tags %}
{% load i18n %}
{% load humanize %}
{% block title %}{% spaceless %}{% trans "Privacy policy" %}{% endspaceless %}{% endblock %}
{% block forejs %}
{% endblock %}
{% block content %}
<div class="headNormal">
{% trans "Privacy policy" %}
</div>
<div id="main-body" style="width:100%">
<p>
{% trans "general message about privacy" %}
</p>
<h3 class="subtitle">{% trans "Site Visitors" %}</h3>
<p>
{% trans "what technical information is collected about visitors" %}
</p>
<h3 class="subtitle">{% trans "Personal Information" %}</h3>
<p>
{% trans "details on personal information policies" %}
</p>
<h3 class="subtitle">{% trans "Other Services" %}</h3>
<p>
{% trans "details on sharing data with third parties" %}
</p>
<h3 class="subtitle">Cookies</h3>
<p>
{% trans "cookie policy details" %}
</p>
<h3 class="subtitle">{% trans "Policy Changes" %}</h3>
<p>{% trans "how privacy policies can be changed" %}
</p>
</div>
{% endblock %}
<!-- end privacy.html -->
This diff is collapsed.
{% extends "base.html" %}
<!-- question_edit.html -->
{% load i18n %}
{% load extra_tags %}
{% block title %}{% spaceless %}{% trans "Edit question" %}{% endspaceless %}{% endblock %}
{% block forejs %}
<script type='text/javascript' src='{% media "/media/js/wmd/showdown.js" %}'></script>
<script type='text/javascript' src='{% media "/media/js/wmd/wmd.js" %}'></script>
<script type='text/javascript' src='{% media "/media/js/html_sanitizer.js" %}'></script>
<link rel="stylesheet" type="text/css" href="{% media "/media/js/wmd/wmd.css" %}" />
<script type="text/javascript">
//todo move javascript out
$().ready(function(){
$("#nav_questions").attr('className',"on");
$('#editor').TextAreaResizer();
//toggle preview of editor
var display = true;
var txt = "[{% trans "hide preview" %}]";
$('#pre-collapse').text(txt);
$('#pre-collapse').bind('click', function(){
txt = display ? "[{% trans "show preview" %}]" : "[{% trans "hide preview" %}]";
display = !display;
$('#previewer').toggle();
$('#pre-collapse').text(txt);
});
//Tags autocomplete action
$("#id_tags").autocomplete("{% url matching_tags %}", {
matchContains: true,
max: 20,
multiple: true,
multipleSeparator: " ",
highlightItem: true,
scroll: true,
scrollHeight: 300,
/*formatItem: function(row, i, max) {
return row.n + " ("+ row.c +")";
},
formatResult: function(row, i, max){
return row.n;
}*/
formatItem: function(row, i, max, value) {
return row[1] + " (" + row[2] + ")";
},
formatResult: function(row, i, max, value){
return row[1];
}
});
$('#id_revision').unbind().change(function(){
$("#select_revision").click();
});
init = $("textarea#editor")[0].value;
title = $("input#id_title")[0].value;
body = $("textarea#editor")[0].value;
tag = $("input#id_tags")[0].value;
});
function submitClicked(e, f) {
if(!(browserTester('chrome') || browserTester('safari'))) {
$("input.submit")[0].disabled=true;
$("input.submit")[1].disabled=true;
}
window.removeEventListener('beforeunload', beforeUnload, true);
if (f) {
f.submit();
}
}
function beforeUnload(e) {
if($("input#id_title")[0].value != title || $("textarea#editor")[0].value != body || $("input#id_tags")[0].value != tag) {
return yourWorkWillBeLost(e);
}
}
window.addEventListener('beforeunload', beforeUnload, true);
var init = "";
var title = "";
var body = "";
var tag = "";
</script>
{% endblock %}
{% block content %}
<div id="main-bar" class="headNormal">
{% block edittype %}{% trans "Edit question" %}{% endblock %} [<a href="{{ question.get_absolute_url }}">{% trans "back" %}</a>]
</div>
<div id="main-body" class="ask-body">
<div id="askform">
<form id="fmedit" action="" method="post">
{% csrf_token %}
<label for="id_revision" ><strong>{% trans "revision" %}:</strong></label> <br/>
{% if revision_form.revision.errors %}{{ revision_form.revision.errors.as_ul }}{% endif %}
<div style="vertical-align:middle">
{{ revision_form.revision }} <input type="submit" style="display:none" id="select_revision" name="select_revision"
value="{% trans "select revision"%}">
</div>
<div class="form-item">
<label for="id_title" ><strong>{{ form.title.label_tag }}:</strong></label> <span class="form-error"></span><br/>
{{ form.title }} {{ form.title.errors }}
<div class="title-desc">
{{ form.title.help_text }}
</div>
</div>
<div class="form-item">
<div id="wmd-button-bar" class="wmd-panel"></div>
{{ form.text }}
<span class="form-error"></span>
<div class="preview-toggle">
<table width="100%">
<tr>
<td>
<span id="pre-collapse" title="{% trans "Toggle the real time Markdown editor preview" %}">{% trans "toggle preview" %}</span>
</td>
<td style="text-align: right;" id="editor-metrics"></td>
{% if settings.WIKI_ON %}
<td style="text-align:right;">
{{ form.wiki }} <span style="color:#000;cursor:help" title="{{form.wiki.help_text}}">{{ form.wiki.label_tag }} </span>
</td>
{% endif %}
</tr>
</table>
</div>
<div id="previewer" class="wmd-preview"></div>
</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>
<strong>{{ form.summary.label_tag }}</strong> <br/>
{{ form.summary }} {{ form.summary.errors }}
<div class="title-desc">
{{ form.summary.help_text }}
</div>
{% if form.recaptcha %}
<div class="question-captcha" style="float: left">
{{ form.recaptcha.errors }}
{{ form.recaptcha }}
</div>
<div class="clear"></div>
{% endif %}
<div class="error" ></div>
<input type="button" value="{% trans "Save edit" %}" class="submit" onclick="submitClicked(event, this.form)" />
<input type="button" value="{% trans "Cancel" %}" class="submit" onclick="submitClicked(event, null); history.back(-1);" />
</form>
</div>
</div>
{% endblock %}
{% block sidebar %}
{% include "question_edit_tips.html" %}
{% endblock %}
{% block endjs %}
{% endblock %}
<!-- end question_edit.html -->
<!-- question_edit_tips.html -->
{% load markup %}
{% load i18n general_sidebar_tags %}
<div class="boxC" id="title_side_bar">
<p class="subtitle darkred">{% trans "Title Tips" %}</p>
<div class="list-item">
{{ settings.QUESTION_TITLE_TIPS|markdown:"settingsparser" }}
<p class='info-box-follow-up-links'>
<a href="{% url faq %}" target="_blank" title="{% trans "see frequently asked questions" %}">{% trans "faq" %} &raquo;</a>
</p>
</div>
</div>
{% markdown_help %}
<div class="boxC" id="tags_side_bar" align="left">
<p class="subtitle darkred">{% trans "What Are Tags" %}</p>
<div class="list-item">
{{ settings.QUESTION_TAG_TIPS|markdown:"settingsparser" }}
</div>
</div>
<!-- end question_edit_tips.html -->
\ No newline at end of file
{% spaceless %}
{% load i18n humanize extra_tags %}
{% declare %}
answer_count = questions.children_count('answer')
{% enddeclare %}
<div class="boxC">
<h3>{{ questions.paginator.sort_description }}</h3>
<div class="questions-count">
{{ questions.paginator.count }}<span style="font-size:14px;margin-left:5px;">{{ list_description }}</span>
</div>
{% if answer_count %}
<div class="questions-count">
{{ answer_count }}<span style="font-size:14px;margin-left:5px;">{% trans "answers" %}</span>
</div>
{% endif %}
</div>
{% endspaceless %}
{% load i18n humanize extra_filters extra_tags user_tags %}
<div class="short-summary">
<div class="counts">{% if favorite_count %}
<div class="favorites">
<span class="favorite-mark{% if question.favourite_count %} on{% endif %}"></span>
<div class="item-count">{{question.favourite_count|intcomma}}</div>
</div>
{% endif %}
<div class="votes">
<div class="item-count">{{question.score|intcomma}}</div>
<div>{% ifequal question.score 1 %}{% trans "vote" %}{% else %}{% trans "votes" %}{% endifequal %}</div>
</div >
<div {% if question.accepted_count %}title="{% trans "this question has an accepted answer" %}"{% endif %} class="status {% if question.accepted_count %}answered-accepted{% endif %} {% ifequal question.answer_count 0 %}unanswered{% endifequal %}{% ifnotequal question.answer_count 0 %}answered{% endifnotequal %}">
<div class="item-count">{{question.answer_count|intcomma}}</div>
<div>{% ifequal question.answer_count 1 %}{% trans "answer" %}{% else %}{% trans "answers" %}{% endifequal %}</div>
</div>
<div class="views">
<div class="item-count">{{question.view_count|decorated_int|safe}}</div>
<div>{% ifequal question.view_count 1 %}{% trans "view" %}{% else %}{% trans "views" %}{% endifequal %}</div>
</div>
</div>
<div class="userinfo">
{% if question.last_activity_by %}{% user_signature question.last_activity_by signature_type %}{% endif %} <br/>
<span class="relativetime" title="{{question.last_activity_at}}">{% diff_date question.last_activity_at %}</span>
</div>
<div class="short-summary-title">
<h2><a {% if not question_summary %}title="{{ question.summary }}"{% endif %} href="{{ question.get_absolute_url }}">{% if question.headline|wordcount >= 10 %} {{ question.headline|truncatewords:10 }} {% else %} {{ question.headline }} {% endif %} </a></h2>
{% if question_summary %}
<div class="summary">
{{ question.summary }}
</div>
{% endif %}
</div>
<br/><br/>
<div class="tags-summary">{% for tag in question.tagname_list %}
<a class="tag-link-{{ tag }}" href="{% url tag_questions tag|urlencode %}" title="{% trans "see questions tagged" %} '{{ tag }}'" rel="tag">{{ tag }}</a>{% endfor %}
</div>
</div>
{% load i18n %}
{% load humanize %}
{% if tags %}
<div class="boxC">
<h3 class="subtitle">{% trans "Related tags" %}</h3>
<div class="tags" id="recent-tags">
{% for tag in tags %}
<a rel="tag" class="tag-link-{{ tag.name }}" title="{% blocktrans with tag.name as tag_name %}see questions tagged '{{ tag_name }}'{% endblocktrans %}" href="{% url tag_questions tag.name|urlencode %}">{{ tag.name }}</a>
<span class="tag-number">&#215; {{ tag.used_count|intcomma }}</span>
<br />
{% endfor %}
</div>
</div>
{% endif %}
\ No newline at end of file
{% load i18n %}
<div class="tabsA">
<a id="active" href="{{ base_url }}active"{% ifequal current "active" %} class="on"{% endifequal %} title="{% trans "most recently updated questions" %}">{% trans "active" %}</a>
<a id="latest" href="{{ base_url }}latest"{% ifequal current "latest" %} class="on"{% endifequal %} title="{% trans "most recently asked questions" %}">{% trans "newest" %}</a>
<a id="hottest" href="{{ base_url }}hottest"{% ifequal current "hottest" %} class="on"{% endifequal %} title="{% trans "hottest questions" %}">{% trans "hottest" %}</a>
<a id="mostvoted" href="{{ base_url }}mostvoted"{% ifequal current "mostvoted" %} class="on"{% endifequal %} title="{% trans "most voted questions" %}">{% trans "most voted" %}</a>
</div>
{% load i18n humanize extra_filters extra_tags user_tags %}
<div class="subscription_summary">
<div style="height:100%"><a class="sidebar_button subscription_unsubscribe_button" href="{% url subscribe id=subscription.question.id user=subscription.user.id %}">
{% trans "Unsubscribe" %}
</a></div>
<div class="subscription_title"><a title="{{ question.summary }}" href="{{ question.get_absolute_url }}">{{question.headline}}</a></div>
<div class="subscription_details"><span class="relativetime" title="{{subscription.last_view}}">{% trans "Last checked" %} {% diff_date subscription.last_view %}</span></div>
</div>
{% load i18n %}
{% load extra_tags %}
{% if show_interesting_tags %}
{% if user_authenticated %}
<div id="tagSelector" class="boxC">
<h3 class="subtitle">{% trans "Interesting tags" %}</h3>
<div class="tags interesting marked-tags">
{% for tag_name in interesting_tag_names %}
{% spaceless %}
<span class="deletable-tag" id="interesting-tag-{{tag_name}}">
<a rel="tag"
class="tag-link-{{ tag_name }}"
title="{% blocktrans with tag as tagname %}see questions tagged '{{ tag_name }}'{% endblocktrans %}"
href="{% url tag_questions tag_name|urlencode %}">{{tag_name}}</a>
<img class="delete-icon"
src="{% media "/media/images/close-small-dark.png" %}"
title="{% blocktrans %}remove '{{tag_name}}' from the list of interesting tags{% endblocktrans %}"/>
</span>
{% endspaceless %}
{% endfor %}
</div>
<input id="interestingTagInput" autocomplete="off" type="text"/>
<input id="interestingTagAdd" type="submit" value="{% trans "Add" %}"/>
<h3 class="subtitle">{% trans "Ignored tags" %}</h3>
<div class="tags ignored marked-tags">
{% for tag_name in ignored_tag_names %}
{% spaceless %}
<span class="deletable-tag" id="ignored-tag-{{tag_name}}">
<a rel="tag"
class="tag-link-{{ tag_name }}"
title="{% blocktrans with tag as tagname %}see questions tagged '{{ tag_name }}'{% endblocktrans %}"
href="{% url tag_questions tag_name|urlencode %}">{{tag_name}}</a>
<img class="delete-icon"
src="{% media "/media/images/close-small-dark.png" %}"
title="{% blocktrans %}remove '{{tag_name}}' from the list of ignored tags{% endblocktrans %}"/>
</span>
{% endspaceless %}
{% endfor %}
</div>
<input id="ignoredTagInput" autocomplete="off" type="text"/>
<input id="ignoredTagAdd" type="submit" value="{% trans "Add" %}"/>
{% comment %}
<p id="hideIgnoredTagsControl">
<input id="hideIgnoredTagsCb" type="checkbox" {% if request.user.hide_ignored_questions %}checked="checked"{% endif %} />
<label id="hideIgnoredTagsLabel" for="hideIgnoredTagsCb">{% trans "keep ignored questions hidden" %}</label>
<p>
{% endcomment %}
</div>
{% endif %}
{% endif %}
{% load i18n %}
<div class="headUser">
{% if searchtag %}
{% trans "Found by tags" %}
{% else %}
{% if searchtitle %}
{% if settings.USE_SPHINX_SEARCH %}
{% trans "Search results" %}
{% else %}
{% trans "Found by title" %}
{% endif %}
{% else %}
{% if is_unanswered %}
{% trans "Unanswered questions" %}
{% else %}
{% if page_title %}
{% trans page_title %}
{% else %}
{% trans "All Questions" %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
</div>
{% extends "base.html" %}
<!-- question_retag.html -->
{% load extra_tags %}
{% load i18n %}
{% block title %}{% spaceless %}{% trans "Change tags" %}{% endspaceless %}{% endblock %}
{% block forejs %}
<script type="text/javascript">
$().ready(function(){
$("#id_tags").autocomplete("{% url matching_tags %}", {
matchContains: true,
max: 20,
multiple: true,
multipleSeparator: " ",
highlightItem: true,
scroll: true,
scrollHeight: 300,
/*formatItem: function(row, i, max) {
return row.n + " ("+ row.c +")";
},
formatResult: function(row, i, max){
return row.n;
}*/
formatItem: function(row, i, max, value) {
return row[1] + " (" + row[2] + ")";
},
formatResult: function(row, i, max, value){
return row[1];
}
});
});
</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">
{% csrf_token %}
<h3>
{{ question.headline }}
</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>
<div class="error" ></div>
<input type="submit" value="{% trans "Save edit" %}" class="submit" />
<input type="button" value="{% trans "Cancel" %}" class="submit" onclick="history.back(-1);" />
</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 "tags help us keep Questions organized" %}
</li>
<li>
{% trans "tag editors receive special awards from the community" %}
</li>
</ul>
<p class='info-box-follow-up-links'>
<a href="{% url faq %}">faq &raquo;</a>
</p>
</div>
{% endblock %}
{% block endjs %}
{% endblock %}
<!-- end question_retag.html -->
<div class="qstA">
<h2>
<a href="{{ question.get_absolute_url }}">{{ question.headline }}</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|decorated_int|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 and settings.WIKI_ON %}
<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 and settings.WIKI_ON %}
<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 class="tag-link-{{ tag }}" href="{% url tag_questions tag|urlencode %}" title="{% trans "see questions tagged" %}'{{ tag }}'{% trans "using tags" %}" rel="tag">{{ tag }}</a>
{% endfor %}
</div>
</div>
{% extends "base.html" %}
<!-- questions.html -->
{% load question_list_tags %}
{% load i18n %}
{% load extra_tags %}
{% load general_sidebar_tags %}
{% block title %}{% spaceless %}{{ page_title }}{% endspaceless %}{% endblock %}
{% block metadescription %}{% spaceless %}
{% if tag %}
{% blocktrans with settings.APP_TITLE as app_title %}Questions and answers about {{ tag }} on {{ app_title }}{% endblocktrans %}
{% endif %}
{% endspaceless %}{% endblock %}
{% block meta %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ feed_url }}" />
{% endblock %}
{% block content %}
<div class="tabBar">
{% include "question_list/title.html" %}
<a class="feed-icon-big" style="background-image:url('{% media "media/images/feed-icon.png" %}');" href="{{ feed_url }}" title="{% trans "subscribe to question RSS feed" %}"></a>
{{ questions.paginator.sort_tabs }}
</div>
<div id="listA">{% for question in questions.paginator.page %}
{% if show_summary %}
{% question_list_item question question_summary=yes %}
{% else %}
{% question_list_item question %}
{% endif %}
{% endfor %}</div>
{% endblock %}
{% block tail %}
<div class="pager">{{ questions.paginator.page_numbers }}</div>
<div class="pagesize">{{ questions.paginator.page_sizes }}</div>
{% endblock %}
{% block sidebar %}
{% include "question_list/count.html" %}
{% tag_selector %}
{% question_list_related_tags questions.paginator.page %}
{% endblock %}
<!-- end questions.html -->
{% extends "base_content.html" %}
<!-- reopen.html -->
{% load extra_tags %}
{% load i18n %}
{% load humanize %}
{% block title %}{% spaceless %}{% trans "Reopen question" %}{% endspaceless %}{% endblock %}
{% block forejs %}
<script type="text/javascript">
$().ready(function(){
$('#btBack').bind('click', function(){ history.back(); });
});
</script>
{% endblock %}
{% block content %}
<div id="main-bar" class="headNormal">
{% trans "Reopen question" %}
</div>
<div id="main-body" style="width:100%">
<p>{% trans "Open the previously closed question" %}: <a href="{{ question.get_absolute_url }}"><span class="big">{{ question.headline }}</span></a>
</p>
<p><strong>{% trans "The question was closed for the following reason " %}"{{ question.get_close_reason_display }}"{% trans "reason - leave blank in english" %} <a href="{{ question.closed_by.get_profile_url }}">{{ question.closed_by.username }}</a> {% trans "on "%} {% diff_date question.closed_at %}<font class="darkred">{% trans "date closed" %}</font>
</strong>
</p>
<form id="fmclose" action="{% url reopen question.id %}" method="post">
{% csrf_token %}
<div id="" style="padding:20px 0 20px 0">
<input type="submit" value="{% trans "Reopen this question" %}" class="submit" />
<input id="btBack" type="button" value="{% trans "Cancel" %}" class="submit" />
</div>
</form>
</div>
{% endblock %}
<!-- end reopen.html -->
{% extends "base_content.html" %}
{% load node_tags %}
{% load extra_tags %}
{% load i18n %}
{% load extra_filters %}
{% load humanize %}
{% block title %}{% spaceless %}{% trans "Revision history" %}{% endspaceless %}{% endblock %}
{% block forejs %}
<script type="text/javascript">
$(document).ready(function() {
rev_bodies = $('div.rev-body');
if(rev_bodies.length > 0)toggleRev(rev_bodies.length);
if(rev_bodies.length > 1)toggleRev(rev_bodies.length-1);
for(var index = 0; index < rev_bodies.length; index++) {
rev_bodies.get(index);
}
});
function toggleRev(id) {
var rev_body = $('div#rev-body-' + id).get(0);
var rev_arrow = $('img#rev-arrow-' + id).get(0);
if (rev_body.style.display == "none") {
rev_body.style.display = "";
rev_arrow.src="{% media "/media/images/expander-arrow-hide.gif" %}"
} else {
rev_body.style.display = "none";
rev_arrow.src="{% media "/media/images/expander-arrow-show.gif" %}"
}
}
</script>
{% endblock %}
{% block content %}
<div id="main-bar" class="headNormal">
{% trans "Revision history" %}[<a href="{{ post.get_absolute_url }}">{% trans "back" %}</a>]
</div>
<div id="main-body" class="">
<div id="revisions">
{% for revision in revisions %}
<div class="revision">
<div id="rev-header-{{ revision.inst.revision }}" class="header {% ifequal post.author revision.inst.author %}author{% endifequal %}">
<div class="header-controls">
<table width="100%">
<tr>
<td width="20" style="vertical-align:middle"><img id="rev-arrow-{{ revision.inst.revision }}"
class="rev-arrow"
onclick="toggleRev({{ revision.inst.revision }})"
src="{% media "/media/images/expander-arrow-show.gif" %}"
alt="{% trans "click to hide/show revision" %}"/>
</td>
<td width="30px" style="vertical-align:middle"><span class="revision-number" title="{% trans "revision" %} {{ revision.inst.revision }}">{{ revision.inst.revision }}</span></td>
<td width="200px" style="vertical-align:middle">
<div class="summary"><span>{{ revision.inst.summary }}</span></div>
</td>
<td align="right">
<div class="revision-mark" >
{% reviser_info revision.inst %}
</div>
</td>
</tr>
</table>
</div>
</div>
<div id="rev-body-{{ revision.inst.revision }}" class="diff body rev-body" style="display:none">
{{ revision.diff|safe }}
</div>
</div>
{% endfor %}
</div>
</div>
{% endblock %}
{% block endjs %}
{% endblock %}
This diff is collapsed.
This diff is collapsed.
{% load i18n %}
<div class="boxC">
<h3>{% trans "Recent awards" %}</h3>
<div class="body">
<ul class="badge-list">
{% for award in awards %}
<li>
<a href="{% url badges %}{{award.badge.id}}/{{award.badge.name|slugify}}" title="{{ award.badge.description }}" class="medal">
<span class="badge{{ award.badge.type }}">&#9679;</span>&nbsp;{{ award.badge.name }}</a>
<a href="{{ award.user.get_profile_url }}">{{ award.user.decorated_name }}</a>
</li>
{% endfor %}
</ul>
<div class="more"><a href="{% url badges %}">{% trans "all awards" %} </a> </div>
</div>
</div>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for location in locations %}
<sitemap><loc>{{ location }}</loc></sitemap>
{% endfor %}
</sitemapindex>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment