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 -->
{% extends "base_content.html" %}
{% load extra_tags %}
{% load humanize %}
{% load i18n %}
{% block fulltitle %}{% spaceless %}{% trans "Markdown Help" %}{% endspaceless %}{% endblock %}
{% block forejs %}
<link rel="stylesheet" type="text/css" media="all" href="{% media "/media/style/markdown_help.css" %}" />
{% endblock %}
{% block content %}
<div id="main-wrapper"><br /><br />
<div id="heading">
<h1>{% trans "Markdown Syntax" %}</h1>
<p>{% blocktrans %}This document describes some of the more important parts of Markdown (for writers, that is). There's a lot more to the syntax than is mentioned here, though. To get the full syntax documentation, go to John Gruber's <a href="http://daringfireball.net/projects/markdown/syntax" rel="nofollow">Markdown Syntax</a> page{% endblocktrans %}</p>
</div>
<div class="section">
<h2 class="section-title">{% trans "Headers" %}</h2>
<div class="section-description">
{% trans "For top-level headers underline the text with equal signs. For second-level headers use dashes to underline." %}
</div>
<table class="section-example"><tr>
<td>
<code>{% trans "This is an H1" %}</code><br />
<code>============= </code>
</td>
<td>
<h1>{% trans "This is an H1" %}</h1>
</td>
</tr></table>
<table class="section-example"><tr>
<td>
<code>{% trans "This is an H2" %}</code><br />
<code>-------------</code>
</td>
<td>
<h2>{% trans "This is an H2" %}</h2>
</td>
</tr></table>
<div class="section-description">
{% blocktrans %}If you would rather, you can prefix headers with a hash (#) symbol instead. The number of hash symbols indicates the header level. For example, a single hash indicates a header level of one while two indicates the second header level:{% endblocktrans %}
</div>
<table class="section-example"><tr>
<td>
<code># {% trans "This is an H1" %}</code>
</td>
<td>
<h1>{% trans "This is an H1" %}</h1>
</td>
</tr></table>
<table class="section-example"><tr>
<td>
<code>## {% trans "This is an H2" %}</code>
</td>
<td>
<h2>{% trans "This is an H2" %}</h2>
</td>
</tr></table>
<table class="section-example"><tr>
<td>
<code>### {% trans "This is an H3" %}</code>
</td>
<td>
<h3>{% trans "This is an H3" %}</h3>
</td>
</tr></table>
<div class="section-description">
{% trans "Which you choose is a matter of style. Whichever you thinks looks better in the text document. In both cases, the final, fully formatted, document looks the same." %}
</div>
</div>
<div class="section">
<h2 class="section-title">{% trans "Paragraphs" %}</h2>
<div class="section-description">
{% trans "Paragraphs are surrounded by blank lines." %}
</div>
<div class="section-example">
<code>{% trans "This is paragraph one." %}</code>
</div><br />
<div class="section-example">
<code>{% trans "This is paragraph two." %}</code>
</div>
</div>
<div class="section">
<h2 class="section-title">{% trans "Links" %}</h2>
<div class="section-description">
{% blocktrans %}
There are two parts to every link.
The first is the actual text that the user will see and it is surrounded by brackets.
The second is address of the page you wish to link to and it is surrounded in parenthesis.
{% endblocktrans %}
</div>
<table class="section-example"><tr>
<td>
<code>[{% trans "link text" %}]({% trans "http://example.com/" %})</code>
</td>
<td>
<a>{% trans "link text" %}</a>
</td>
</tr></table>
</div>
<div class="section">
<h2 class="section-title">{% trans "Formatting" %}</h2>
<div class="section-description">
{% trans "To indicate bold text surround the text with two star (*) symbols or two underscore (_) symbols:" %}
</div>
<table class="section-example"><tr>
<td>
<code>**{% trans "This is bold" %}**</code>
</td>
<td>
<strong>{% trans "This is bold" %}</strong>
</td>
</tr></table>
<table class="section-example"><tr>
<td>
<code>__{% trans "This is also bold" %}__</code>
</td>
<td>
<strong>{% trans "This is also bold" %}</strong>
</td>
</tr></table>
<div class="section-description">
{% trans "To indicate italicized text surround the text with a single star (*) symbol or underscore (_) symbol:" %}
</div>
<table class="section-example"><tr>
<td>
<code>*{% trans "This is italics" %}*</code>
</td>
<td>
<i>{% trans "This is italics" %}</i>
</td>
</tr></table>
<table class="section-example"><tr>
<td>
<code>_{% trans "This is also italics" %}_</code>
</td>
<td>
<i>{% trans "This is also italics" %}</i>
</td>
</tr></table>
<div class="section-description">
{% trans "To indicate italicized and bold text surround the text with three star (*) symbol or underscore (_) symbol:" %}
</div>
<table class="section-example"><tr>
<td>
<code>***{% trans "This is bold and italics" %}***</code>
</td>
<td>
<strong><i>{% trans "This is bold and italics" %}</i></strong>
</td>
</tr></table>
<table class="section-example"><tr>
<td>
<code>___{% trans "This is also bold and italics" %}___</code>
</td>
<td>
<strong><i>{% trans "This is also bold and italics" %}</i></strong>
</td>
</tr></table>
</div>
<div class="section">
<h2 class="section-title">{% trans "Blockquotes" %}</h2>
<div class="section-description">
{% trans "To create an indented area use the right angle bracket (&gt;) character before each line to be included in the blockquote." %}
</div>
<table class="section-example"><tr>
<td>
<code>&gt; {% trans "This is part of a blockquote." %}</code><br />
<code>&gt; {% trans "This is part of the same blockquote." %}</code>
</td>
<td>
<p style="padding-left:15px;">{% trans "This is part of a blockquote." %}<br />{% trans "This is part of the same blockquote." %}</p>
</td>
</tr></table>
<div class="section-description">
{% trans "Rather than putting it in front of each line to include in the block quote you can put it at the beginning and end the quote with a newline." %}
</div>
<table class="section-example"><tr>
<td>
<code>&gt; {% trans "This is part of a blockquote." %}</code><br />
<code>{% trans "This continues the blockquote even though there's no bracket." %}</code><br /><br />
<code>{% trans "The blank line ends the blockquote." %}</code>
</td>
<td>
<p style="padding-left:15px;">{% trans "This is part of a blockquote." %} <br /> {% trans "This continues the blockquote even though there's no bracket." %}</p>
<p>{% trans "The blank line ends the blockquote." %}</p>
</td>
</tr></table>
</div>
<div class="section">
<h2 class="section-title">{% trans "Lists" %}</h2>
<div class="section-description">
{% trans "To create a numbered list in Markdown, prefix each item in the list with a number followed by a period and space. The number you use actually doesn't matter." %}
</div>
<table class="section-example"><tr>
<td>
<code>1. {% trans "Item" %} 1</code><br />
<code>2. {% trans "Item" %} 2</code><br />
<code>3. {% trans "Item" %} 3</code>
</td>
<td>
<ol>
<li>{% trans "Item" %} 1</li>
<li>{% trans "Item" %} 2</li>
<li>{% trans "Item" %} 3</li>
</ol>
</td>
</tr></table>
<div class="section-description">
{% trans "To create a bulleted list, prefix each item in the list with a star (*) character." %}
</div>
<table class="section-example"><tr>
<td>
<code>* {% trans "A list item" %}</code><br />
<code>* {% trans "Another list item" %}</code><br />
<code>* {% trans "A third list item" %}</code>
</td>
<td>
<ul>
<li>{% trans "A list item" %}</li>
<li>{% trans "Another list item" %}</li>
<li>{% trans "A third list item" %}</li>
</ul>
</td>
</tr></table>
</div>
<div class="section">
<h2 class="section-title">{% trans "A Lot More" %}</h2>
<div class="section-description">{% blocktrans %}There's a lot more to the Markdown syntax than is mentioned here. But for creative writers, this covers a lot of the necessities. To find out more about Markdown than you'd ever want to really know, <a href="http://daringfireball.net/projects/markdown/syntax" target="_blank" rel="nofollow">go to the Markdown page where it all started</a>.{% endblocktrans %}</div>
</div>
</div>
{% endblock %}
{% 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
{% extends basetemplate %}
{% load i18n user_tags extra_tags extra_filters %}
{% block adminjs %}
<script type="text/javascript">
$(function() {
var $form = $('#changelist-search');
$('#all-node-type-link').click(function() {
$('#type-filter-container').find('input').remove();
$form.submit();
});
$('.node-type-link').click(function() {
var link_type = $(this).attr('href').substring(1);
if ($('#type-filter-container').find('input[value=' + link_type + ']').length == 0) {
$('#type-filter-container').append($("<input name=\"node_type\" type=\"hidden\" value=\"" + link_type + "\" />"));
} else {
$('#type-filter-container').find('input[value=' + link_type + ']').remove();
}
$form.submit();
});
$('#all-state-link').click(function() {
$('#state-filter-container').find('input').remove();
$form.submit();
});
$('.state-type-link').click(function() {
var state_type = $(this).attr('href').substring(1);
if ($('#state-filter-container').find('input[value=' + state_type + ']').length == 0) {
$('#state-filter-container').append($("<input name=\"state_type\" type=\"hidden\" value=\"" + state_type + "\" />"));
} else {
$('#state-filter-container').find('input[value=' + state_type + ']').remove();
}
$form.submit();
});
$('.action-select').change(function() {
$('#action-toggle').removeAttr('checked');
var $tr = $(this).parents('tr');
if ($(this).attr('checked')) {
$tr.addClass('selected');
} else {
$tr.removeClass('selected');
}
}).change();
$('#action-toggle').change(function() {
var $rows = $('#result_list').find('tbody').find('tr');
var $boxes = $('#result_list').find('tbody').find('input');
if ($(this).attr('checked')) {
$rows.addClass('selected');
$boxes.attr('checked', 'checked')
} else {
$rows.removeClass('selected');
$boxes.removeAttr('checked');
}
});
$('#author-selector').autocomplete('{% url matching_users %}', {
minChars: 1,
matchContains: true,
max: 10,
formatItem: function(row, i, max, value) {
return row[1] + ' (' + row[2] + ' {% trans "rep" %})';
},
formatResult: function(row, i, max, value){
return row[1];
}
});
$('#author-selector').result(function(event, data, formatted) {
if ($('#author-filter-container').find('input[value=' + data[0] + ']').length == 0) {
$('#author-filter-container').append($("<input name=\"authors\" type=\"hidden\" value=\"" + data[0] + "\" />"));
$form.submit();
}
});
$('.author-filter-remover').click(function() {
var id = $(this).attr('rel');
if ($('#author-filter-container').find('input[value=' + id + ']').length > 0) {
$('#author-filter-container').find('input[value=' + id + ']').remove();
$form.submit();
}
});
$('#tag-selector').autocomplete('{% url matching_tags %}', {
minChars: 1,
matchContains: true,
max: 10,
formatItem: function(row, i, max, value) {
return row[1] + ' (' + row[2] + ' {% trans "uses" %})';
},
formatResult: function(row, i, max, value){
return row[1];
}
});
$('#tag-selector').result(function(event, data, formatted) {
if ($('#tag-filter-container').find('input[value=' + data[0] + ']').length == 0) {
$('#tag-filter-container').append($("<input name=\"tags\" type=\"hidden\" value=\"" + data[0] + "\" />"));
$form.submit();
}
});
$('.tag-filter-remover').click(function() {
var id = $(this).attr('rel');
if ($('#tag-filter-container').find('input[value=' + id + ']').length > 0) {
$('#tag-filter-container').find('input[value=' + id + ']').remove();
$form.submit();
}
});
$('#filter-name-box').one('focus', function() {
$(this).val('');
$(this).css('color', 'black');
});
$('#filter-name-box').keyup(function() {
if ($(this).val().trim().length > 0) {
$('#save-filter-button').removeAttr('disabled');
$('#save-filter-button').css('color', 'black');
} else {
$('#save-filter-button').css('color', '#AAA');
$('#save-filter-button').attr('disabled', 'disabled');
}
});
var resize_data = null;
$('.col-resizer').mousedown(function(e) {
var $to_resize = $(this).prev();
resize_data = {
resizer: $(this),
to_resize: $to_resize,
start_width: $to_resize.innerWidth(),
x_start: e.pageX,
}
});
$('body').mousemove(function(e) {
if (resize_data != null) {
var new_size = (resize_data.start_width - (resize_data.x_start - e.pageX)) + 'px';
resize_data.to_resize.css({'max-width': new_size, 'min-width': new_size})
resize_data.resizer.css('max-width', '3px');
}
});
$('body').mouseup(function() {
if (resize_data != null)
resize_data = null;
});
$('#filter-panel-header').click(function() {
$('#filter-panel').slideToggle();
});
$('#state-filter-type').change(function() {
$('#state-filter-type-hidden').val($(this).val());
$form.submit();
});
$('#reset-text-filter').click(function() {
$('#text-filter-input').val('');
$form.submit();
return false;
});
});
</script>
<style>
#toolbar ul li {
list-style-type: none;
display: inline;
margin-right: 12px;
}
#result_list tr td.deleted {
background-color: #FDD;
border-bottom: 1px solid #a9a9a9;
}
#result_list tr td.accepted {
background-color: #DFD;
border-bottom: 1px solid #a9a9a9;
}
span.question-deleted {
text-decoration: line-through;
}
.col-resizer {
width: 2px;
min-width: 2px;
min-width: 2px;
cursor: col-resize;
padding: 0 0 0 0;
}
</style>
<script type="text/javascript">window.__admin_media_prefix__ = "{{ settings.ADMIN_MEDIA_PREFIX }}";</script>
<link href="{{ settings.ADMIN_MEDIA_PREFIX }}css/base.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript">
/* gettext identity library */
function gettext(msgid) { return msgid; }
function ngettext(singular, plural, count) { return (count == 1) ? singular : plural; }
function gettext_noop(msgid) { return msgid; }
function interpolate(fmt, obj, named) {
if (named) {
return fmt.replace(/%\(\w+\)s/g, function(match){return String(obj[match.slice(2,-2)])});
} else {
return fmt.replace(/%s/g, function(match){return String(obj.shift())});
}
}
/* formatting library */
var formats = new Array();
formats['DATETIME_FORMAT'] = 'N j, Y, P';
formats['DATE_FORMAT'] = 'N j, Y';
formats['DECIMAL_SEPARATOR'] = '.';
formats['MONTH_DAY_FORMAT'] = 'F j';
formats['NUMBER_GROUPING'] = '0';
formats['TIME_FORMAT'] = 'P';
formats['FIRST_DAY_OF_WEEK'] = '0';
formats['TIME_INPUT_FORMATS'] = ['%H:%M:%S', '%H:%M'];
formats['THOUSAND_SEPARATOR'] = ',';
formats['DATE_INPUT_FORMATS'] = ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'];
formats['YEAR_MONTH_FORMAT'] = 'F Y';
formats['SHORT_DATE_FORMAT'] = 'm/d/Y';
formats['SHORT_DATETIME_FORMAT'] = 'm/d/Y P';
formats['DATETIME_INPUT_FORMATS'] = ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M', '%m/%d/%y'];
function get_format(format_type) {
var value = formats[format_type];
if (typeof(value) == 'undefined') {
return msgid;
} else {
return value;
}
}
</script>
<script type="text/javascript" src="{{ settings.ADMIN_MEDIA_PREFIX }}js/core.js"></script>
{% endblock %}
{% block subtitle %}
{% trans "Node manager" %}
{% endblock %}
{% block description %}
{% trans "Nodes bulk management" %}
{% endblock %}
{% block admincontent %}
<div id="changelist" class="module filtered">
<div id="toolbar">
<form method="get" action="" id="changelist-search">
{% csrf_token %}
<div>
<div>
<label><img alt="Search" src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon_searchbox.png"></label>
<input type="text" size="40" name="text" id="text-filter-input" value="{{ text }}">
<input type="submit" value="{% trans "Search" %}">
{% if text %}
<small><a href="#" id="reset-text-filter">{% trans "reset text filter" %}</a></small>
{% endif %}
<br />
<ul>
<li>
<label>
<input type="radio" name="text_in" value="title"{% ifequal text_in "title" %} checked="checked"{% endifequal %} />
{% trans "Title" %}</label>
</li>
<li>
<label>
<input type="radio" name="text_in" value="body"{% ifequal text_in "body" %} checked="checked"{% endifequal %} />
{% trans "Body" %}</label>
</li>
<li>
<label>
<input type="radio" name="text_in" value="both"{% ifequal text_in "both" %} checked="checked"{% endifequal %} />
{% trans "Title and Body" %}</label>
</li>
</ul>
</div>
</div>
<input type="hidden" name="sort" value="{{ nodes.paginator.current_sort }}" />
<input type="hidden" id="state-filter-type-hidden" name="state_filter_type" value="" />
<div style="display: none;" id="author-filter-container">
{% for u in authors %}
<input name="authors" type="hidden" value="{{ u.id }}" />
{% endfor %}
</div>
<div style="display: none;" id="tag-filter-container">
{% for t in tags %}
<input name="tags" type="hidden" value="{{ t.id }}" />
{% endfor %}
</div>
<div id="type-filter-container" style="display: none;">
{% for type in type_filter %}
<input name="node_type" type="hidden" value="{{ type }}" />
{% endfor %}
</div>
<div id="state-filter-container" style="display: none;">
{% for type in state_filter %}
<input name="state_type" type="hidden" value="{{ type }}" />
{% endfor %}
</div>
</form>
</div>
<div id="changelist-filter">
<h2 id="filter-panel-header">{% trans "Filter" %}<small> ({% trans "Click to show/hide" %})</small></h2>
<div id="filter-panel">
<h3>{% trans "By type" %}</h3>
<ul>
<li {% if not type_filter %} class="selected"{% endif %}>
<a id="all-node-type-link" href="#all" title="{% trans "click to clear the type filter" %}">{% trans "all" %}</a>
</li>
{% for type, name in node_types %}
<li{% if type|contained_in:type_filter %} class="selected" title="{% trans "click to remove from the filter" %}"{% else %} title="{% trans "click to add to the filter" %}"{% endif %}>
<a class="node-type-link" href="#{{ type }}">{{ name }}</a>
</li>
{% endfor %}
</ul>
<h3>{% trans "By state" %}</h3>
<ul>
<li {% if not state_filter %} class="selected"{% endif %}>
<a id="all-state-link" href="#any" title="{% trans "click to clear the state filter" %}">{% trans "any" %}</a>
</li>
{% for state_type in state_types %}
<li{% if state_type|contained_in:state_filter %} class="selected" title="{% trans "click to remove from the filter" %}"{% else %} title="{% trans "click to add to the filter" %}"{% endif %}>
<a class="state-type-link" href="#{{ state_type }}">{{ state_type }}</a>
</li>
{% endfor %}
<li>
<select id="state-filter-type">
<option value="any"{% ifequal state_filter_type "any" %} selected="selected"{% endifequal %}>{% trans "Match any selected" %}</option>
<option value="all"{% ifequal state_filter_type "all" %} selected="selected"{% endifequal %}>{% trans "Match all selected" %}</option>
</select>
</li>
</ul>
<h3>{% trans "By author(s)" %}</h3>
{% if not authors.count %}
<small>{% trans "No users selected, use the box bellow to add users to the filter." %}</small>
{% else %}
<ul>
{% for u in authors %}
<li class="selected">
<img class="author-filter-remover" rel="{{ u.id }}" src="{% media "/media/images/close-small-dark.png" %}">
{{ u.decorated_name }} ({{ u.reputation }})
</li>
{% endfor %}
</ul>
<small>{% trans "Click on the cross next to a user name to remove it from the filter." %}</small>
{% endif %}
<input type="text" size="20" autocomplete="off" id="author-selector" />
<h3>{% trans "By tag(s)" %}</h3>
{% if not tags.count %}
<small>{% trans "No tags selected, use the box bellow to add tags to the filter." %}</small>
{% else %}
<ul>
{% for t in tags %}
<li class="selected">
<img class="tag-filter-remover" rel="{{ t.id }}" src="{% media "/media/images/close-small-dark.png" %}">
{{ t.name }} ({{ t.used_count }})
</li>
{% endfor %}
</ul>
<small>{% trans "Click on the cross next to a tag name to remove it from the filter." %}</small>
{% endif %}
<input type="text" size="20" autocomplete="off" id="tag-selector" />
<h3>{% trans "Pre defined" %}</h3>
{% if not settings.NODE_MAN_FILTERS %}
<small>{% trans "There are no saved filters. Click bellow to add." %}</small>
{% endif %}
<ul id="pre-filter-container">
{% for name, uri in settings.NODE_MAN_FILTERS %}
<li class="selected"><a href="{% url admin_tools "nodeman" %}?{{ uri }}">{{ name }}</a></li>
{% endfor %}
</ul>
<form action="" method="POST">
{% csrf_token %}
<input name="filter_name" type="text" size="20" id="filter-name-box" style="color: #AAA;" value="{% trans "Filter name..." %}" />
<button name="save_filter" value="0" style="color: #AAA;" title="{% trans "Click to save the current filter" %}" id="save-filter-button" disabled="disabled" class="button">{% trans "Save" %}</button>
</form>
{% comment %}<h3>{% trans "Show" %}</h3>
<form action="" method="get">
{% csrf_token %}
<div>{{ show_form.show }}</div>
<input type="submit" value="{% trans "Refresh" %}" />
</form>{% endcomment %}
</div>
</div>
<form id="changelist-form" method="POST" action="">
{% csrf_token %}
<div class="actions">
<label>
{% trans "Action" %}:
<select name="action">
<option selected="selected" value="">---------</option>
<option value="delete_selected">{% trans "Mark deleted" %}</option>
<option value="undelete_selected">{% trans "Undelete" %}</option>
<option value="hard_delete_selected">{% trans "Delete completely" %}</option>
<option value="close_selected">{% trans "Close (questions only)" %}</option>
</select>
</label>
<button value="0" name="execute" title="{% trans "Run the selected action" %}" class="button" type="submit">{% trans "Go" %}</button>
</div>
<table id="result_list" cellspacing="0">
<thead>
<tr>
{% declare %}
current_sort = nodes.paginator.current_sort
added_at = current_sort == "added_at" and "ascending" or (current_sort == "added_at_asc" and "descending" or "")
author = current_sort == "author" and "ascending" or (current_sort == "author_asc" and "descending" or "")
score = current_sort == "score" and "ascending" or (current_sort == "score_asc" and "descending" or "")
act_at = current_sort == "act_at" and "ascending" or (current_sort == "act_at_asc" and "descending" or "")
act_by = current_sort == "act_by" and "ascending" or (current_sort == "act_by_asc" and "descending" or "")
added_at_link = current_sort == "added_at" and nodes.paginator.added_at_asc_sort_link or nodes.paginator.added_at_sort_link
author_link = current_sort == "author_asc" and nodes.paginator.author_sort_link or nodes.paginator.author_asc_sort_link
act_at_link = current_sort == "act_at" and nodes.paginator.act_at_asc_sort_link or nodes.paginator.act_at_sort_link
act_by_link = current_sort == "act_by_asc" and nodes.paginator.act_by_sort_link or nodes.paginator.act_by_asc_sort_link
{% enddeclare %}
{% spaceless %}
<th class="action-checkbox-column">
<input type="checkbox" id="action-toggle" style="display: inline;" />
</th>
<th>{% trans "Type" %}</th>
<th>{% trans "Summary" %}</th>
<th class="col-resizer"></th>
<th>{% trans "State" %}</th>
<th class="sorted {{ author }}">
<a href="{{ author_link }}">{% trans "Author" %}</a>
</th>
<th class="sorted {{ added_at }}">
<a href="{{ added_at_link }}">{% trans "Added at" %}</a>
</th>
{% comment %}
<th class="sorted {{ score }}">
<a href="{{ score_link }}">{% trans "Score" %}</a>
</th>
{% endcomment %}
<th class="sorted {{ act_by }}">
<a href="{{ act_by_link }}">{% trans "Last activity by" %}</a>
</th>
<th class="sorted {{ act_at }}">
<a href="{{ act_at_link }}">{% trans "Last activity at" %}</a>
</th>
<th>{% trans "Tags" %}</th>
{% endspaceless %}
</tr>
</thead>
<tbody>
{% with filter_form.state_type.data as state_type %}
{% for node in nodes.paginator.page %}
<tr class="{% cycle 'row1' 'row2' %}">
<td><input type="checkbox" name="_selected_node" value="{{ node.id }}" class="action-select"></td>
<td>{{ node.friendly_name }}</td>
{% declare %}
is_root = node.abs_parent == None
title = is_root and node.title or node.abs_parent.title
anchor = "<strong>%s</strong>" % html.hyperlink(node.get_absolute_url(), title)
anchor = ((not is_root) and node.abs_parent.nis.deleted) and "<span class=\"question-deleted\">%s</span>" % anchor or anchor
anchor = is_root and anchor or "(%s)" % anchor
anchor = html.mark_safe(anchor)
td_class = ""
td_class = node.nis.accepted and "accepted" or td_class
td_class = node.nis.deleted and "deleted" or td_class
{% enddeclare %}
<td class="{{ td_class }}" colspan="2">
{{ anchor }}<br />
{{ node.summary }}
</td>
<td>
{% for state in node.states.all %}
<b>{{ state.state_type }}</b> {% diff_date state.action.at %} {% trans "by" %}
<a target="_blank" href="{{ state.action.by.get_absolute_url }}">{{ state.action.by.decorated_name }}</a><br />
{% endfor %}
</td>
<td><a href="{{ node.author.get_absolute_url }}">{{ node.author.decorated_name }}</a></td>
<td>{% diff_date node.added_at %}</td>
<!--<td>{{ node.score }}</td>-->
<td><a href="{{ node.last_activity_by.get_absolute_url }}">{{ node.last_activity_by.decorated_name }}</a></td>
<td>{% diff_date node.last_activity_at %}</td>
<td>
{% for t in node.tags.all %}
{% if t|contained_in:tags %}<b>{{ t.name }}</b>
{% else %}{{ t.name }}{% endif %}
{% endfor %}
</td>
</tr>
{% endfor %}
{% endwith %}
</tbody>
</table>
{{ nodes.paginator.page_numbers }}
</form>
</div>
{% endblock %}
\ No newline at end of file
{% 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 -->
{% extends "base.html" %}
<!-- question.html -->
{% load node_tags %}
{% load extra_tags %}
{% load extra_filters %}
{% load general_sidebar_tags %}
{% load smart_if %}
{% load humanize %}
{% load i18n %}
{% load cache %}
{% block metadescription %}{{ question.meta_description }}{% endblock %}
{% block metakeywords %}{{question.tagname_meta_generator}}{% endblock %}
{% block meta %}
<link rel="canonical" href="{{settings.APP_BASE_URL}}{{question.get_absolute_url}}" />
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ question.get_absolute_url }}?type=rss">
{% endblock %}
{% block title %}{% spaceless %}{{ question.headline }}{% endspaceless %}{% endblock %}
{% block forejs %}
{% if not question.nis.closed %}
<script type='text/javascript' src='{% media "/media/js/osqa.question.js" %}'></script>
<script type='text/javascript' src='{% media "/media/js/jquery.caret.js" %}'></script>
<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" %}" />
{% if embed_youtube_videos %}
<script type='text/javascript' src='{% media "/media/js/viewbox_min.js" %}'></script>
<script type='text/javascript' src='{% media "/media/js/youtube.js" %}'></script>
<link rel="stylesheet" type="text/css" href="{% media "/media/js/viewbox.css" %}" />
{% endif %}
{% endif %}
<script type="text/javascript">
$().ready(function(){
$("#nav_questions").attr('className',"on");
var answer_sort_tab = "{{ tab_id }}";
if (answer_sort_tab) {
$("#" + answer_sort_tab).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);
});
});
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($("textarea#editor")[0].value != "") {
return yourWorkWillBeLost(e);
}
var commentBoxes = $("textarea.commentBox");
for(var index = 0; index < commentBoxes.length; index++) {
if(commentBoxes[index].value != "") {
return yourWorkWillBeLost(e);
}
}
}
window.addEventListener('beforeunload', beforeUnload, true);
</script>
<noscript>
<style>
.comment.not_top_scorer {
display: block;
}
.comment-form-container {
display: block;
}
.div.comment-tools {
display: none;
}
</style>
</noscript>
<div id="fb-root"></div>
<script>
(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/it_IT/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
{% endblock %}
{% block content %}
<div class="headNormal">
<h1><a href="{{ question.get_absolute_url }}">{{ question.headline }}</a></h1>
</div>
<div id="main-body" class="">
<div id="askform">
<table style="width:100%;" id="question-table" {% post_classes question %}>
<tr>
<td style="width:30px;vertical-align:top">
<div class="vote-buttons">
{% vote_buttons question request.user %}
{% favorite_mark question request.user %}
</div>
</td>
<td>
<div id="item-right">
<div class="question-body">
{{ question.html|safe }}
</div>
<div id="question-tags" class="tags-container tags">
{% for tag in question.tagname_list %}
<a href="{% url tag_questions tag|urlencode %}" class="post-tag tag-link-{{ tag }}"
title="{% blocktrans with tag as tagname %}see questions tagged '{{ tagname }}'{% endblocktrans %}" rel="tag">{{ tag }}</a>
{% endfor %}
</div>
<div id="question-controls" class="post-controls">
{% post_controls question request.user %}
{% wiki_symbol request.user question %}
</div>
<div class="post-update-info-container">
{% contributors_info question %}
</div>
{% comments question request.user %}
<!-- start share content -->
<a href="https://twitter.com/share" class="twitter-share-button" data-lang="it" data-count="none" data-dnt="true">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
<div class="g-plus" data-action="share" data-annotation="none"></div>
<script type="text/javascript">
window.___gcfg = {lang: 'it'};
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
<div class="fb-like" data-send="true" data-layout="button_count" data-width="450" data-show-faces="false"></div>
<!-- end share content -->
</div>
</td>
</tr>
</table>
{% if question.nis.closed %}
<div class="question-status" style="margin-bottom:15px">
<h3>
{% blocktrans with question.nstate.closed.extra as close_reason %}The question has been closed for the following reason "{{ close_reason }}" by{% endblocktrans %}
<a href="{{ question.nstate.closed.by.get_profile_url }}">{{ question.nstate.closed.by.username }}</a>
{% diff_date question.nstate.closed.at %}
</h3>
</div>
{% endif %}
{% if answers %}
<hr/>
<div class="tabBar">
<a name="sort-top"></a>
<div class="headQuestions">
{% blocktrans count answers.paginator.count as counter %}One Answer:{% plural %}{{counter}} Answers:{% endblocktrans %}
</div>
{{ answers.paginator.sort_tabs }}
</div>
{{ answers.paginator.page_numbers }}
{% for answer in answers.paginator.page %}
<a name="{{ answer.id }}"></a>
<div id="answer-container-{{ answer.id }}" class="answer {% post_classes answer %}{% ifequal answer.id focused_answer_id %} focusedAnswer{% endifequal %}">
<table style="width:100%;">
<tr>
<td style="width:30px;vertical-align:top">
<div class="vote-buttons">
{% vote_buttons answer request.user %}
{% accept_button answer request.user %}
</div>
</td>
<td>
<div class="item-right">
<div class="answer-body">
{{ answer.html|safe }}
</div>
<div class="answer-controls post-controls">
{% post_controls answer request.user %}
{% wiki_symbol request.user answer %}
</div>
<div class="post-update-info-container">
{% contributors_info answer %}
</div>
{% comments answer request.user %}
</div>
</td>
</tr>
</table>
</div>
{% endfor %}
<div class="paginator-container-left">
{{ answers.paginator.page_numbers }}
</div>
{% endif %}
<form id="fmanswer" action="{% url answer question.id %}" method="post">
{% csrf_token %}
<div style="clear:both">
</div>
{% if not question.closed %}
<div style="padding:10px 0 0 0;">
{% spaceless %}
<div class="headNormal">
{% if answers %}
{% trans "Your answer" %}
{% else %}
{% trans "Be the first one to answer this question!" %}
{% endif %}
</div>
{% endspaceless %}
</div>
{% comment %}
{% if not request.user.is_authenticated %}
<div class="message">{% trans "You can answer anonymously and then login." %}</div>
{% else %}
<p class="message">
{% ifequal request.user question.author %}
{% trans "Answer your own question only to give an answer." %}
{% else %}
{% trans "Please only give an answer, no discussions." %}
{% endifequal %}
{% if not request.user.email_valid_and_can_answer %}
{% blocktrans %}Remember, your answer will not be published until you validate your email.{% endblocktrans %}
<a href="{% url send_validation_email %}">{% trans "Send me a validation link." %}</a>
{% endif %}
</p>
{% endif %}
{% endcomment %}
<div id="description" class="" >
<div id="wmd-button-bar" class="wmd-panel"></div>
{{ answer.text }}
<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;">
{{ answer.wiki }}
<span style="font-weight:normal;cursor:help"
title="{{answer.wiki.help_text}}">
{{ answer.wiki.label_tag }}
</span>
</td>
{% endif %}
</tr>
</table>
</div>
{{ answer.text.errors }}
<div id="previewer" class="wmd-preview"></div>
</div>
{% if answer.recaptcha %}
<div class="question-captcha" style="float: left;">
{{ answer.recaptcha.errors }}
{{ answer.recaptcha }}
</div>
<div class="clear"></div>
{% endif %}
<p><span class="form-error"></span></p>
<input type="button"
{% if user.is_anonymous %}
value="{% trans "Login/Signup to Post Your Answer" %}"
{% else %}
{% if user == question.author %}
value="{% trans "Answer Your Own Question" %}"
{% else %}
value="{% trans "Answer the question" %}"
{% endif %}
{% endif %}
class="submit" style="float:left" onclick="submitClicked(event, this.form)"/>
{% endif %}
</form>
</div>
</div>
{% endblock %}
{% block sidebar %}
<div class="boxC" id="subscription_box">
{% include "subscription_status.html" %}
</div>
{% markdown_help %}
{% cache 60 questions_tags settings.APP_URL question.id %}
<div class="boxC">
<p>
{% trans "Question tags" %}:
</p>
<p class="tags" >
{% for tag in question.tags.all %}
<a href="{% url tag_questions tag.name|urlencode %}"
class="tag-link-{{ tag.name }}"
title="{% trans "see questions tagged"%}'{{tag.name}}'{% trans "using tags" %}"
rel="tag">{{ tag.name }}</a> <span class="tag-number">&#215;{{ tag.used_count|intcomma }}</span><br/>
{% endfor %}
</p>
<p>
{% trans "question asked" %}: <strong title="{{ question.added_at }}">{% diff_date question.added_at %}</strong>
</p>
<p>
{% trans "question was seen" %}: <strong>{{ question.view_count|intcomma }} {% trans "times" %}</strong>
</p>
<p>
{% trans "last updated" %}: <strong title="{{ question.last_activity_at }}">{% diff_date question.last_activity_at %}</strong>
</p>
</div>
{% endcache %}
<div class="boxC">
<h3 class="subtitle">{% trans "Related questions" %}</h3>
<div class="questions-related">
{% for question in similar_questions %}
<p>
<a href="{{ question.get_absolute_url }}">{{ question.headline }}</a>
</p>
{% endfor %}
</div>
</div>
{% endblock %}
{% block endjs %}
{% endblock %}
<!-- end question.html -->
{% 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 %}
{% extends "base_content.html" %}
{% load i18n %}
{% block content %}
<div id="main-bar" class="headNormal">
{% blocktrans with settings.APP_SHORT_NAME as app_name %}
Search in {{ app_name }}
{% endblocktrans %}
</div>
<div id="main-body" style="text-align: center; height: 400px;">
<form action="{% url search %}" method="get">
{% csrf_token %}
<div>
<input type="text" class="searchInput" value="{{ keywords }}" name="q" id="keywords" style="width: 600px" />
<input type="submit" name="Submit" value="{% trans "search" %}" class="searchBtn" />
</div>
<div class="options">
<input id="type-question" type="radio" value="question" name="t"
checked="checked" /><label for="type-question">{% trans "questions" %}</label>
<input id="type-tag" type="radio" value="tag" name="t" /><label for="type-tag">{% trans "tags" %}</label>
<input id="type-user" type="radio" value="user" name="t" /><label for="type-user">{% trans "users" %}</label>
</div>
</form>
</div>
{% endblock %}
\ No newline at end of file
{% load i18n %}
<div class="boxC" id="editor_side_bar">
<p class="subtitle darkred">{% trans "Markdown Basics" %}</p>
<ul class="list-item">
<li>
{% trans "*italic* or _italic_" %}
</li>
<li>
{% trans "**bold** or __bold__" %}
</li>
<li>
<b>{% trans "link" %}</b>:[{% trans "text" %}](http://url.com/ "{% trans "title" %}")
</li>
<li>
<b>{% trans "image" %}</b>?![alt {% trans "text" %}](/path/img.jpg "{% trans "title" %}")
</li>
<li>
{% trans "numbered list:" %}
1. Foo
2. Bar
</li>
<li>
{% trans "to add a line break simply add two spaces to where you would like the new line to be." %}
</li>
<li>
{% trans "basic HTML tags are also supported" %}
</li>
</ul>
<p class='info-box-follow-up-links'>
<a href="{% url markdown_help %}" target="_blank">{% trans "learn more about Markdown" %} </a>
</p>
</div>
{% 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
{% load i18n extra_tags %}
{% declare %}
show_tags_in_a_cloud = settings.SHOW_TAGS_IN_A_CLOUD
{% enddeclare %}
<div class="boxC">
<h3>{% trans "Recent tags" %}</h3>
<div class="body">
<div class="tags" id="recent-tags">
{% for tag in tags %}
<a rel="tag"{% if show_tags_in_a_cloud %} style="font-size: {% get_tag_font_size tag %}px;"{% endif %} class="tag-link-{{ tag.name }}" title="{% blocktrans with tag.name as tagname %}see questions tagged '{{tagname}}'{% endblocktrans %}" href="{% url tag_questions tag.name|urlencode %}">{{ tag.name }}</a>
{% endfor %}
</div>
<div class="more"><a href="{% url tags %}">{% trans "popular tags" %} </a> </div>
</div>
</div>
\ No newline at end of file
{% load markup %}
{% if show %}
{% if wrap %}<div id="{{ blockid }}" class="boxC">
<div class="body">{% endif %}
{{ content }}
{% if wrap %}</div>
</div>{% endif %}
{% endif %}
<?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>
{% extends "base_content.html" %}
{% load i18n %}
{% load markup %}
{% block title %}{% spaceless %}{{ title }}{% endspaceless %}{% endblock %}
{% block content %}
<div class="headNormal">{{ title }}</div>
<div class="content">
{{ content|markdown:"settingsparser" }}
</div>
{% endblock %}
{% spaceless %}
{% load i18n extra_tags %}
<h3 class="subtitle">{% trans "Follow this question" %}</h3>
<strong>{% trans "By Email" %}:</strong>
{% if request.user.is_authenticated %}
<div class="subscription-status">
{% if subscription %}
{% if subscription.auto_subscription %}
<p>{% trans "You were automatically subscribed to this question." %}</p>
{% else %}
<p>{% trans "You are subscribed to this question." %}</p>
{% endif %}
{% else %}
<p>{% trans "You are not subscribed to this question." %}</p>
{% endif %}
</div>
<p><a class="ajax-command sidebar_button subscription_switch" href="{% url subscribe_simple id=question.id %}">
{% if subscription %}
{% trans "unsubscribe me" %}
{% else %}
{% trans "subscribe me" %}
{% endif %}
</a></p>
<p>
{% blocktrans with request.user.get_user_subscriptions_url as subscriptions_url %}
(you can adjust your notification settings on your <a href="{{ subscriptions_url }}">profile</a>)
{% endblocktrans %}
</p>
{% else %}
<p>{% trans "Once you sign in you will be able to subscribe for any updates here" %}</p>
{% endif %}
<strong>{% trans "By RSS" %}:</strong>
<p>
<a class="feed-icon" style="background-image:url('{% media "media/images/feed-icon-small.png" %}');"
href="{{ question.get_absolute_url }}?type=rss" title="{% trans "subscribe to answers" %}"></a>
{% trans "Answers" %}
</p>
<p>
<a class="feed-icon" style="background-image:url('{% media "media/images/feed-icon-small.png" %}');"
href="{{ question.get_absolute_url }}?type=rss&comments=yes" title="{% trans "subscribe to comments and answers" %}"></a>
{% trans "Answers and Comments" %}
</p>
{% endspaceless %}
{% extends "base_content.html" %}
<!-- tags.html -->
{% load i18n %}
{% load extra_tags %}
{% load humanize %}
{% block title %}{% spaceless %}{% trans "Tag list" %}{% endspaceless %}{% endblock %}
{% block forejs %}
<script type="text/javascript">
/*<![CDATA[*/
$().ready(function(){
$("#ipSearchTag").focus();
var orderby = "{{ tab_id }}";
if(orderby != "used" && orderby != "name")
orderby = "used";
$("#sort_" + orderby).attr('className',"on");
$("#type-tag").attr('checked',true);
Hilite.exact = false;
Hilite.elementid = "searchtags";
Hilite.debug_referrer = location.href;
});
/*]]>*/
</script>
{% endblock %}
{% block content %}
<!-- Tabs -->
<div class="tabBar">
<div class="headUser">{% trans "Tag list" %}</div>
{{ tags.paginator.sort_tabs }}
</div>
<div id="searchtags">
<p>
{% if stag %}
{% trans "All tags matching query" %} '<span class="darkred"><strong>{{ stag }}</strong></span>':
{% endif %}
{% if not tags.paginator.count %}
<span>{% trans "Nothing found" %}</span>
{% endif %}
</p>
{% if tags.paginator.count %}
<ul class="tagsList tags">
{% for tag in tags.paginator.page %}
<li>
<a class="tag-link-{{ tag }}" href="{% url tag_questions tag|urlencode %}" title="{% trans "see questions tagged" %}'{{ tag }}'{% trans "using tags" %}" rel="tag">
{{ tag }}
</a>&nbsp;
<span class="tag-number">&#215; {{ tag.used_count|intcomma }}</span>
<br/>
</li>
{% endfor %}
</ul>
{% endif %}
</div>
{% endblock %}
{% block tail %}
<div class="pager">
{{ tags.paginator.page_numbers }}
</div>
{% endblock %}
<!-- end tags.html -->
{% extends "base_content.html" %}
<!-- user.html -->
{% load extra_tags %}
{% load extra_filters %}
{% load humanize %}
{% load smart_if %}
{% block title %}{% spaceless %}{{ page_title }}{% endspaceless %}{% endblock %}
{% block forestyle%}
<style type="text/css">
.history-table td { padding: 5px; }
.user-stats-table { margin-left:50px; }
</style>
{% endblock %}
{% block forejs %}
{% if request.user.is_superuser or request.user == view_user %}
<script type="text/javascript">google.load("jquery", "1.4.2");google.load("jqueryui", "1.8.1");</script>
<script type="text/javascript">
response_commands['update_profile_karma'] = function(new_karma) {
$('#user-reputation').css('background', 'yellow');
$('#user-reputation').html(new_karma);
$('#user-reputation').animate({ backgroundColor: "transparent" }, 1000);
}
</script>
<link rel="stylesheet" href="http://jquery-ui.googlecode.com/svn/tags/latest/themes/base/jquery-ui.css" type="text/css" media="all" />
<link rel="stylesheet" href="http://static.jquery.com/ui/css/demo-docs-theme/ui.theme.css" type="text/css" media="all" />
<link rel="stylesheet" type="text/css" media="screen" href="{% media "/media/style/user.css" %}"/>
{% endif %}
{% block userjs %}{% endblock %}
{% endblock %}
{% block content %}
<div id="mainbar-full">
{% include "users/info.html" %}
{% include "users/tabs.html" %}
{% block usercontent %}
{% endblock %}
</div>
{% endblock %}<!-- end user.html -->
{% load extra_tags %}
{% load humanize %}
{% load extra_tags %}
<div class="action_container">
<div class="action_body">
{{ describe }}
</div>
<div class="action_date" style="text-align: right;">
{% diff_date action.action_date %}
</div>
</div>
\ No newline at end of file
{% extends "base_content.html" %}
<!-- user_edit.html -->
{% load extra_tags %}
{% load humanize %}
{% load i18n %}
{% block title %}{% spaceless %}{% trans "Edit user profile" %}{% endspaceless %}{% endblock %}
{% block forejs %}
<script type="text/javascript">google.load("jquery", "1.4.2");google.load("jqueryui", "1.8.1");</script>
<link rel="stylesheet" href="http://jquery-ui.googlecode.com/svn/tags/latest/themes/base/jquery-ui.css" type="text/css" media="all" />
<link rel="stylesheet" href="http://static.jquery.com/ui/css/demo-docs-theme/ui.theme.css" type="text/css" media="all" />
<script type="text/javascript">
$().ready(function(){
$("#id_birthday").datepicker({
changeMonth: true,
changeYear: true,
dateFormat: 'yy-mm-dd',
minDate: null,
maxDate: '0M 0D',
yearRange: '1920:2010'
});
$("#nav_profile").attr('className',"on");
$("#cancel").bind('click', function(){history.go(-1);})
});
</script>
{% block userjs %}
{% endblock %}
{% endblock %}
{% block content %}
<div id="mainbar-full">
<div class="headUser">
{{ user.username }} - {% trans "edit profile" %}
</div>
<div id="main-body" style="width:100%">
<form name="" action="{% url edit_user user.id user.username|slugify %}" method="post">
{% csrf_token %}
<div id="left" style="float:left;width:15%;text-align:center;">
{% if user.email %}
{% gravatar user 128 %}
{% else %}
<img src="{% media "/media/images/nophoto.png" %}">
{% endif %}
<div style="padding:10px 0 0 0;font-weight:bold;font-size:150%">
<a href="http://www.gravatar.com/" target="_blank"
title="gravatar {% trans "image associated with your email address" %}">{% trans "gravatar" %}</a>
</div>
</div>
<div id="askform" style="float:left;width:80%;text-align:left;">
<h2>{% trans "Registered user" %}</h2>
<table class="user-details">
<tr>
<th width="100px"></th>
<th></th>
</tr>
<tr style="height:35px">
<td>{% trans "Screen Name" %}:</td>
<td>
{% if form.username %}
{{ form.username }} <span class="form-error"></span> {{ form.username.errors }}
{% else %}
{{ user.username }}
{% endif %}
</td>
</tr>
<tr style="height:35px">
<td>{{ form.email.label_tag }}:</td>
<td>{{ form.email }} <span class="form-error"></span> {{ form.email.errors }} </td>
</tr>
<tr style="height:35px">
<td></td>
<td class="title-desc">{{ form.email.help_text }}</td>
</tr>
<tr style="height:35px">
<td>{{ form.realname.label_tag }}:</td>
<td>{{ form.realname }} <span class="form-error"></span> {{ form.realname.errors }} </td>
</tr>
<tr style="height:35px">
<td>{{ form.website.label_tag }}:</td>
<td>{{ form.website }} <span class="form-error"></span> {{ form.website.errors }} </td>
</tr>
<tr style="height:35px">
<td>{{ form.city.label_tag }}:</td>
<td>{{ form.city }} <span class="form-error"></span> {{ form.city.errors }} </td>
</tr>
<tr style="height:35px">
<td>{{ form.birthday.label_tag }}:</td>
<td>{{ form.birthday }} <span class="form-error"></span> {{ form.birthday.errors }} </td>
</tr>
<tr>
<td style="vertical-align:top">{{ form.about.label_tag }}:</td>
<td>{{ form.about }} <span class="form-error"></span> {{ form.about.errors }} </td>
</tr>
</table>
<div style="margin:30px 0 60px 0">
<input type="submit" value="{% trans "Update" %}" class="submit" >
<input id="cancel" type="button" value="{% trans "Cancel" %}" class="submit" >
</div>
</div>
</form>
</div>
</div>
{% endblock %}
<!-- end user_edit.html -->
<!-- user_info.html -->
{% load extra_tags %}
{% load extra_filters %}
{% load humanize %}
{% load smart_if %}
{% load i18n %}
{% load markup %}
{% load user_tags %}
<div class="headUser{% if view_user.is_suspended %} suspended-user{% endif %}">
{{view_user.decorated_name}}
</div>
<table class="user-info-table" width="100%">
<tr>
<td width="14%" style="vertical-align:middle;text-align:center;">
<table width="100%">
<tr>
<td>
{% gravatar view_user 128 %}
</td>
</tr>
<tr>
<td align="center">
{% if not view_user.is_suspended %}
<div class="scoreNumber" id="user-reputation">{{view_user.reputation|intcomma}}</div>
<p><b style="color:#777;">{% trans "reputation" %}</b></p>
{% else %}
<div class="scoreNumber">{% trans "Suspended" %}</div>
<p>{{ view_user.suspension.extra.publicmsg }}</p>
{% endif %}
</td>
</tr>
</table>
</td>
<td width="40%" style="vertical-align: top;">
{% if can_view_private %}{% user_menu request.user view_user %}{% endif %}
<table class="user-details">
<tr>
<th colspan="2" align="left">
<h3>
{% if view_user.is_superuser %}
{% trans "Administrator" %}
{% else %}
{% if view_user.is_staff %}
{% trans "Moderator" %}
{% else %}
{% trans "Registered user" %}
{% endif %}
{% endif %}
</h3>
</th>
</tr>
{% if view_user.real_name %}
<tr>
<td>{% trans "real name" %}</td>
<td><b>{{view_user.real_name}}</b></td>
</tr>
{% endif %}
<tr>
<td>{% trans "member for" %}</td>
<td><strong>{% diff_date view_user.date_joined %}</strong></td>
</tr>
{% if view_user.last_seen %}
<tr>
<td>{% trans "last seen" %}</td>
<td><strong title="{{ view_user.last_activity }}">{% diff_date view_user.last_activity %}</strong></td>
</tr>
{% endif %}
{% if view_user.website %}
<tr>
<td>{% trans "user's website" %}</td>
<td><a rel="nofollow" target="_blank" href="{{view_user.website}}">{{view_user.website}}</a></td>
</tr>
{% endif %}
{% if view_user.location %}
<tr>
<td>{% trans "location" %}</td>
<td>{{view_user.location}}</td>
</tr>
{% endif %}
{% if view_user.date_of_birth%}
<tr>
<!--todo - redo this with blocktrans -->
{% if view_user.date_of_birth.year != 1900%}
<td>{% trans "age" %}</td>
<td>{% get_age view_user.date_of_birth %} {% trans "age unit" %}</td>
{% endif %}
</tr>
{% endif %}
{% if can_view_private %}
<tr>
<td>{% trans "email" %}</td>
<td>
<a href="mailto:{{ view_user.email }}">{{ view_user.email }}</a>
{% if not view_user.email_isvalid %}
({% trans "not validated" %})
{% ifequal request.user view_user %}
</td></tr><tr><td></td><td><a href="{% url send_validation_email %}">{% trans "Send me a validation link." %}</a>
{% endifequal %}
{% endif %}
</td>
</tr>
{% endif %}
<!--
{% if votes_today_left %}
<tr>
<td>{% trans "todays unused votes" %}</td>
<td><strong class="darkred">{{ votes_today_left }}</strong> {% trans "votes left" %}</td>
</tr>
{% endif %}
-->
</table>
</td>
<td width="40%">
{% if not view_user.is_suspended %}
<div class="user-about">
{% if view_user.about %}
{{view_user.about|markdown}}
{% endif %}
</div>
{% endif %}
</td>
</tr>
</table>
<!-- end user_info.html -->
{% load i18n %}
<table>
<tr>
<th>{% trans "Points" %}:</th>
<td><input type="text" id="points-to-award" name="points" value="1" /></td>
</tr>
<tr>
<th>{% trans "Message" %}:</th>
<td><textarea id="award-message" name="message"></textarea></td>
</tr>
</table>
\ No newline at end of file
{% load i18n smart_if ui_registry %}
<div id="user-menu-container" class="context-menu">
<span id="user-menu" class="context-menu-trigger">{% trans "User tools" %} &#9660;</span>
<ul id="user-menu-dropdown" class="context-menu-dropdown">
{% loadregistry user_menu %}{% endloadregistry %}
</ul>
</div>
{% extends "base_content.html" %}
<!-- users.html -->
{% load extra_tags %}
{% load humanize %}
{% load i18n %}
{% block title %}{% spaceless %}{% trans "Users Online" %}{% endspaceless %}{% endblock %}
{% block forejs %}
<script type="text/javascript">
//todo move javascript out
$().ready(function(){
$("#type-user").attr('checked',true);
var orderby = "{{ tab_id }}";
$("#sort_" + orderby).attr('className',"on");
Hilite.exact = false;
Hilite.elementid = "main-body";
Hilite.debug_referrer = location.href;
});
</script>
{% endblock %}
{% block content %}
<div class="tabBar">
<div class="headUsers">{% trans "Users Online" %}</div>
{{ users.paginator.sort_tabs }}
</div>
<div id="main-body" style="width:100%">
<p>
{% if suser %}
{% blocktrans %}users matching query '{{suser}}':{% endblocktrans %}
{% endif %}
{% if not users.paginator.count %}
<span>{% trans "Nothing found" %}</span>
{% endif %}
</p>
<div class="userList">
{% for user in users.paginator.page %}
<div class="user">
<ul>
<li class="thumb"><a href="{{ user.get_profile_url }} ">{% gravatar user 32 %}</a></li>
<li><a {% if user.is_suspended %}class="suspended-user" {% endif %}href="{{ user.get_profile_url }}">{{ user.decorated_name }}</a></li>
<li>{% get_score_badge user %}</li>
</ul>
</div>
{% endfor %}
</div>
</div>
{% endblock %}
{% block tail %}
<div class="pager">
{{ users.paginator.page_numbers }}
</div>
{% endblock %}
<!-- end users.html -->
{% extends "user.html" %}
{% load i18n %}
{% load extra_tags %}
{% block usercontent %}
<h2>{% trans "Preferences" %}</h2>
<div class='inline-block'>
<form method="POST">
{% csrf_token %}
<p class="message">
{% trans "Here you can set some personal preferences." %}
</p>
{{ form.errors }}
<table class="form-as-table">
<tr>
<td colspan="2">
<strong>{% trans "Navigation:" %}</strong>
</td>
</tr>
<tr>
<td>{{ form.sticky_sorts }}</td>
<td>{% trans "Always remember the sort order I apply to the lists I view" %}</td>
</tr>
</table>
<div class="submit-row">
<input type="submit" class="submit" name="save" value="{% trans "Save" %}"/>
</div>
</form>
</div>
{% endblock %}
\ No newline at end of file
{% extends "user.html" %}
{% load extra_tags question_list_tags i18n %}
{% block usercontent %}
<div class="user-stats-table">
{% if favorites %}
{% for favorite in favorites %}
{% question_list_item favorite.node favorite_count=yes signature_type=badges %}
{% endfor %}
{% else %}
{% trans "No favorite questions to display." %}
{% endif %}
</div>
{% endblock %}
{% extends "user.html" %}
{% load extra_tags %}
{% load user_tags %}
{% block usercontent %}
<div style="padding-top:5px;font-size:13px;">
{% for act in activities %}
{% activity_item act request.user %}
{% endfor %}
</div>
{% endblock %}
{% extends "user.html" %}
<!-- user_reputation.html -->
{% load extra_tags %}
{% load extra_filters %}
{% load humanize %}
{% load user_tags %}
{% block userjs %}
<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(){
var d = {{ graph_data }};
var placeholder = $("#diagram");
var plot = $.plot(placeholder, [d], {
xaxis: { mode: "time" },
points: { show: true },
lines: { show: true }
});
});
</script>
<style type="text/css">
div.positiveReputation {
float: left;
min-width: 20px;
color: green;
padding-right: 5px;
}
div.negativeReputation {
float: left;
min-width: 20px;
color: red;
}
</style>
{% endblock %}
{% block usercontent %}
<div id="diagram" style="width:550px;height:250px;float:center"></div>
<div style="padding:5px;font-size:13px;">
<div style="float:left; width:100%; height:300px; overflow-y:auto;word-wrap:break-word;" >
{% for rep in reputation %}
<p style="clear:both">
<div style="float:left;text-align:right;font-family:arial;font-weight:bold;background:#eee;padding:2px 10px 2px 10px;margin-right:5px">
<div class="positiveReputation">{{ rep.positive }}</div>
<div class="negativeReputation">{{ rep.negative }}</div>
</div>
{% activity_item rep.action request.user %}<br/>
</p>
{% endfor %}
</div>
</div>
{% endblock %}<!-- end user_reputation.html -->
{% load i18n extra_filters %}{% spaceless %}
{% if not user.is_suspended %}
{% ifequal format "full" %}
{% else %}
<a href="{{ user.get_absolute_url }}">{{ user.decorated_name }}</a>
<span class="score" title="{{ user.reputation }} {% trans "reputation" %}">{{ user.reputation|decorated_int:"" }}</span>
{% ifequal format "badges" %}
{% if user.gold %}
<span title="{{ user.gold }} {% trans "badges" %}">
<span class="badge1">&#9679;</span>
<span class="badgecount">{{ user.gold }}</span>
</span>
{% endif %}
{% if user.silver %}
<span title="{{ user.silver }} {% trans "badges" %}">
<span class="silver">&#9679;</span>
<span class="badgecount">{{ user.silver }}</span>
</span>
{% endif %}
{% if user.bronze %}
<span title="{{ user.bronze }} {% trans "badges" %}">
<span class="bronze">&#9679;</span>
<span class="badgecount">{{ user.bronze }}</span>
</span>
{% endif %}
{% endifequal %}
{% endifequal %}
{% else %}
<a class="suspended-user" href="{{ user.get_absolute_url }}">{{ user.decorated_name }}</a>{% trans "(suspended)" %}
{% endif %}
{% endspaceless %}
{% extends "user.html" %}
<!-- user_stats.html -->
{% load i18n %}
{% load extra_tags %}
{% load extra_filters %}
{% load humanize %}
{% load question_list_tags %}
{% block usercontent %}
<a class="feed-icon-big" style="background-image:url('{% media "media/images/feed-icon.png" %}');"
href="{{ view_user.get_asked_url }}?type=rss" title="{% trans "subscribe to question RSS feed" %}"></a>
<div id="questionsBlock" class="userSection">
<a name="questions"></a>
{% spaceless %}
<h2>
{% blocktrans count questions.paginator.count as counter %}
<span class="count">{{counter}}</span> Question
{% plural %}
<span class="count">{{counter}}</span> Questions
{% endblocktrans %}
</h2>
{% endspaceless %}
<div id="questionTabs">{{ questions.paginator.sort_tabs }}</div>
<div id="listA">
{% for question in questions.paginator.page %}
{% question_list_item question favorite_count=yes signature_type=badges %}
{% endfor %}
</div>
<br clear="all"/>
<div class="pager">{{ questions.paginator.page_numbers }}</div>
<br clear="all"/>
</div>
<div id="answersBlock" class="userSection">
<a name="answers"></a>
{% spaceless %}
<h2>
{% blocktrans count answers.paginator.count as counter %}
<span class="count">{{counter}}</span> Answer
{% plural %}
<span class="count">{{counter}}</span> Answers
{% endblocktrans %}
</h2>
{% endspaceless %}
<div id="answerTabs">{{ answers.paginator.sort_tabs }}</div>
{% for answer in answers.paginator.page %}
<div class="answer-summary">
<a title="{{answer.question.title}}"
href="{{ answer.get_absolute_url }}">
<span class="{% if answer.nis.accepted %}answered-accepted {% endif %} answer-votes"
title="{% blocktrans with answer.score as vote_count %}the answer has been voted for {{ vote_count }} times{% endblocktrans %} {% if answer.nis.accepted %}{% trans "this answer has been selected as correct" %}{%endif%}">
{{ answer.score }}
</span>
</a>
<div class="answer-link">
{% spaceless %}
<a href="{{ answer.get_absolute_url }}">{{answer.headline}}</a>
{% endspaceless %}
</div>
</div>
{% endfor %}
<br clear="all"/>
<div class="pager">{{ answers.paginator.page_numbers }}</div>
<br clear="all"/>
</div>
<a name="votes"></a>
{% spaceless %}
<h2>
{% blocktrans count total_votes as cnt %}
<span class="count">{{cnt}}</span> Vote
{% plural %}
<span class="count">{{cnt}}</span> Votes
{% endblocktrans %}
</h2>
{% endspaceless %}
<table>
<tr>
<td width="60">
<img style="cursor: default;" src="{% media "/media/images/vote-arrow-up-on.png" %}" alt="{% trans "thumb up" %}" />
<span title="{% trans "user has voted up this many times" %}" class="vote-count">{{up_votes}}</span>
</td>
<td width="60">
<img style="cursor: default;" src="{% media "/media/images/vote-arrow-down-on.png" %}" alt="{% trans "thumb down" %}" />
<span title="{% trans "user voted down this many times" %}" class="vote-count">{{down_votes}}</span>
</td>
</tr>
</table>
<a name="tags"></a>
{% spaceless %}
<h2>
{% blocktrans count user_tags|length as counter %}
<span class="count">{{counter}}</span> Tag
{% plural %}
<span class="count">{{counter}}</span> Tags
{% endblocktrans %}
</h2>
{% endspaceless %}
<table class="tags">
<tr style="vertical-align: top;">
<td valign="top" style="padding-right: 20px;">
{% for tag in user_tags%}
<a rel="tag"
class="tag-link-{{ tag.name }}"
title="{% blocktrans with tag.name as tag_name %}see other questions with {{view_user}}'s contributions tagged '{{ tag_name }}' {% endblocktrans %}"
href="{% url tag_questions tag|urlencode %}?user={{view_user.username}}">{{tag.name}}</a>
<span class="tag-number">&#215; {{ tag.user_tag_usage_count|intcomma }}</span>
{% if forloop.counter|divisibleby:"5" %}
</td>
</tr>
<tr>
<td width="180" valign="top">
{% endif %}
{% endfor %}
</td>
</tr>
</table>
<a name="badges"></a>
{% spaceless %}
<h2>
{% blocktrans count total_awards as counter %}
<span class="count">{{counter}}</span> Badge
{% plural %}
<span class="count">{{counter}}</span> Badges
{% endblocktrans %}
</h2>
{% endspaceless %}
<table>
<tr style="vertical-align: top;">
<td style="line-height:35px; padding-right: 20px;">
{% for award, count in awards %}
{% spaceless %}
<a href="{% url badges %}{{award.id}}/{{award.name|slugify}}" title="{{ award.description }}" class="medal">
<span class="badge{{ award.type }}">&#9679;</span>&nbsp;{{ award.name }}
</a>
{% ifnotequal count 1 %}
<span class="tag-number"> &#215; {{ count|intcomma }}</span>
{% endifnotequal %}<br/>
{% if forloop.counter|divisibleby:"6" %}
</td>
<td width="180" style="line-height:35px">
{% endif %}
{% endspaceless %}
{% endfor %}
</td>
</tr>
</table>
{% endblock %}
<!-- end user_stats.html -->
{% extends "user.html" %}
<!-- user_subscriptions.html -->
{% load i18n %}
{% load extra_tags %}
{% load humanize %}
{% block userjs %}
<script type="text/javascript">
function enableSettings() {
$("div#subscriptions_settings").show();
$("div#subscriptions_management").hide();
$("a#subscriptions_settings_button").addClass('on');
$("a#subscriptions_management_button").removeClass("on");
//location.reload(true);
}
function enableManagement() {
$("div#subscriptions_settings").hide();
$("div#subscriptions_management").show();
$("a#subscriptions_settings_button").removeClass('on');
$("a#subscriptions_management_button").addClass('on');
//location.reload(true);
}
</script>
{% endblock %}
{% block usercontent %}
<br/>
<div id="navBar"><div class="tabsA">
<a href='{{ view_user.get_user_subscriptions_url }}?tab=settings' id="subscriptions_settings_button" {% if not manage_open %}class="on"{% endif %}>{% trans "Settings" %}</a>
<a href='{{ view_user.get_user_subscriptions_url }}?tab=manage' id="subscriptions_management_button" {% if manage_open %}class="on"{% endif %}>{% trans "manage" %}</a>
</div></div>
<script type="text/javascript" src="/m/light/media/js/ask.jquery.subscriptions.string.replace.js"></script>
<br/>
{% if not manage_open %}
<div id="subscriptions_settings" >
{% include "users/subscriptions_settings.html" %}
</div>
{% endif %}
{% if manage_open %}
<div id="subscriptions_management" >
{% include "users/subscriptions_management.html" %}
</div>
{% endif %}
{% endblock %}
<!-- end user_subscriptions.html -->
{% load i18n %}
{% load question_list_tags %}
<div id="subscription_list" align="left">
<h2>
{% trans "Manage your current subscriptions" %}
<span style="font-size:11px">
{% if auto %}
<a href='{% url user_subscriptions id=view_user.id slug=view_user.username|slugify %}?auto=False&tab=manage'>{% trans "don't show auto-subscribe" %}</a>
{% else %}
<a href='{% url user_subscriptions id=view_user.id slug=view_user.username|slugify %}?auto=True&tab=manage'>{% trans "show auto-subscribe" %}</a>
{% endif %}
</span>
</h2>
{% for subscription in subscriptions.paginator.page %}
{% subscription_list_item subscription subscription.question %}
{% endfor %}
<div class="pager">{{ subscriptions.paginator.page_numbers }}</div>
</div>
<br />
<br />
<!-- end user_subscriptions.html -->
{% load i18n %}
{% load extra_tags %}
{% load humanize %}
<h2>{% trans "Notifications and subscription settings" %}</h2>
<p class="message">
{% blocktrans %}
Here you can decide which types of notifications you wish to receive, and their frequency.<br />
{% endblocktrans %}
</p>
<div class='inline-block'>
<form method="POST">
{% csrf_token %}
{{ form.errors }}
<table class="form-as-table">
<tr>
<td colspan="2">
<strong>{% trans "Notify me when:" %}</strong>
</td>
</tr>
<tr>
<td>{% trans "A new member joins" %}</td>
<td>{{ form.member_joins }}</td>
</tr>
<tr>
<td>{% trans "A new question is posted" %}</td>
<td>{{ form.new_question }}</td>
</tr>
<tr>
<td>{% trans "A new question matching my interesting tags is posted" %}</td>
<td>{{ form.new_question_watched_tags }}</td>
</tr>
<tr>
<td>{% trans "There's an update on one of my subscriptions" %}</td>
<td >{{ form.subscribed_questions }}</td>
</tr>
</table>
<p>&nbsp;</p>
<table class="form-as-table check-table">
<tr>
<td colspan="3">
<strong>{% trans "Auto subscribe me to:" %}</strong>
</td>
</tr>
<tr>
<td>
{{ form.questions_viewed }}{% trans "Questions I view" %}
</td>
<td>
{{ form.all_questions_watched_tags }}{% trans "All questions matching my interesting tags" %}
</td>
<td>
{{ form.all_questions }}{% trans "All questions" %}
</td>
</tr>
</table>
<p>&nbsp;</p>
<table class="form-as-table check-table">
<tr>
<td colspan="2">
<strong>{% trans "On my subscriptions, notify me when:" %}</strong>
</td>
</tr>
<tr>
<td>
{{ form.notify_answers }}{% trans "An answer is posted" %}
</td>
<td>
{{ form.notify_comments_own_post }}{% trans "A comment on one of my posts is posted" %}
</td>
</tr>
<tr>
<td>
{{ form.notify_comments }}{% trans "A comment is posted" %}
</td>
<td>
{{ form.notify_accepted }}{% trans "An answer is accepted" %}
</td>
</tr>
</table>
<p>&nbsp;</p>
<table class="form-as-table check-table">
<tr>
<td>
<strong>{% trans "Daily Digest:" %}</strong>
</td>
</tr>
<tr>
<td>
{{ form.send_digest }}{% trans "Send me the daily digest with information about the site activity" %}
</td>
</tr>
<tr>
<td>
<strong>{% trans "Notify When I'm Discussed:" %}</strong>
</td>
</tr>
<tr>
<td>
{{ form.notify_reply_to_comments }}{% trans "Notify me when someone replies to one of my comments on any post using the <pre>@username</pre> notation" %}
</td>
</tr>
</table>
<div class="submit-row">
<input type="submit" class="submit" name="save" value="{% trans "Update" %}"/>
</div>
</form>
</div>
{% load i18n %}
<table>
<caption><h2>{% trans "Suspend user" %}</h2></caption>
<tr>
<td>
<select name="bantype" id="bantype">
<option value="indefinitely">{% trans "Indefinitely" %}</option>
<option value="forxdays">{% trans "For X days" %}</option>
</select>
</td>
</tr>
<tr id="forxdays" style="display: none">
<td>
{% trans "Suspend for" %}<input type="text" size="3" style="width: 30px; height: 1.2em; margin: 0 0.5em 0 0.5em; font-size: 1em;" name="forxdays" value="3" />{% trans "days" %}
</td>
</tr>
<tr>
<td>
<p><b>{% trans "Public message" %}:</b></p>
</td>
</tr>
<tr>
<td>
<textarea rows="3" name="publicmsg" cols="35"></textarea><br />
<small>{% trans "This message will be visible through the user activity log." %}</small>
</td>
</tr>
<tr>
<td>
<p><b>{% trans "Private message" %}:</b></p>
</td>
</tr>
<tr>
<td>
<textarea rows="3" name="privatemsg" cols="35"></textarea><br />
<small>{% trans "If set, only the suspended user will see this message." %}</small>
</td>
</tr>
</table>
<script type="text/javascript">
$('#bantype').change(function() {
if ($(this).val() == 'forxdays') {
$('#forxdays').slideDown('fast');
} else {
$('#forxdays').slideUp('fast');
}
});
</script>
\ No newline at end of file
{% load extra_filters ui_registry i18n %}
{% with view_user.username|slugify as user_slug %}
<div class="tabBar">
<div class="tabsA">
{% loopregistry profile_tabs %}{% spaceless %}
<a title="{{ tab_description }}" id="{{ tab_name }}" {% ifequal active_tab tab_name %}class="on"{% endifequal %} href="{{ tab_url }}">
{{ tab_title }}
</a>
{% endspaceless %}{% endloopregistry %}
</div>
</div>
{% endwith %}
{% extends "base_content.html" %}
<!-- users.html -->
{% load extra_tags %}
{% load humanize %}
{% load i18n %}
{% block title %}{% spaceless %}{% trans "Users" %}{% endspaceless %}{% endblock %}
{% block forejs %}
<script type="text/javascript">
//todo move javascript out
$().ready(function(){
$("#type-user").attr('checked',true);
var orderby = "{{ tab_id }}";
$("#sort_" + orderby).attr('className',"on");
Hilite.exact = false;
Hilite.elementid = "main-body";
Hilite.debug_referrer = location.href;
});
</script>
{% endblock %}
{% block content %}
<div class="tabBar">
<div class="headUser">{% trans "Users" %}</div>
{{ users.paginator.sort_tabs }}
</div>
<div id="main-body" style="width:100%">
<p>
{% if suser %}
{% blocktrans %}users matching query {{suser}}:{% endblocktrans %}
{% endif %}
{% if not users.paginator.count %}
<span>{% trans "Nothing found" %}</span>
{% endif %}
</p>
<div class="userList">
{% for user in users.paginator.page %}
<div class="user">
<ul>
<li class="thumb"><a href="{{ user.get_profile_url }} ">{% gravatar user 32 %}</a></li>
<li><a {% if user.is_suspended %}class="suspended-user" {% endif %}href="{{ user.get_profile_url }}">{{ user.decorated_name }}</a></li>
<li>{% get_score_badge user %}</li>
</ul>
</div>
{% endfor %}
</div>
</div>
{% endblock %}
{% block tail %}
<div class="pager">
{{ users.paginator.page_numbers }}
</div>
{% endblock %}
<!-- end users.html -->
{% extends "user.html" %}
<!-- user_votes.html -->
{% load extra_tags %}
{% load extra_filters %}
{% load humanize %}
{% load i18n %}
{% block usercontent %}
<div style="padding-top:5px;font-size:13px;">
{% for vote in votes %}
<div style="clear:both;line-height:20px" >
<div style="width:150px;float:left">{% diff_date vote.voted_at 3 %}</div>
<div style="width:30px;float:left">
{% ifequal vote.value 1 %}
<img src="{% media "/media/images/vote-arrow-up-on.png" %}" title="{% trans "upvote" %}">
{% else %}
<img src="{% media "/media/images/vote-arrow-down-on.png" %}" title="{% trans "downvote" %}">
{% endifequal %}
</div>
<div style="float:left;overflow:hidden;width:750px">
<span class="{{ vote.node.node_type }}-title-link"><a href="{{ vote.node.get_absolute_url }}">{{ vote.node.headline }}</a></span>
<div style="height:5px"></div>
</div>
</div>
{% endfor %}
</div>
{% endblock %}
<!-- end user_votes.html -->
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