Mercurial > agora-palash
changeset 44:f697817182d1
Rename .html snippets to .djhtml
author | Jordi Gutiérrez Hermoso <jordigh@gmail.com> |
---|---|
date | Sat, 31 Jul 2010 16:58:08 -0500 |
parents | 44b9f749cdb0 |
children | a46d4cccea4d |
files | templates/snippet/base.djhtml templates/snippet/base.html templates/snippet/snippet_details.djhtml templates/snippet/snippet_details.html templates/snippet/snippet_details_raw.djhtml templates/snippet/snippet_details_raw.html templates/snippet/snippet_diff.djhtml templates/snippet/snippet_diff.html templates/snippet/snippet_form.djhtml templates/snippet/snippet_form.html templates/snippet/snippet_list.djhtml templates/snippet/snippet_list.html templates/snippet/snippet_new.djhtml templates/snippet/snippet_new.html templates/snippet/userprefs.djhtml templates/snippet/userprefs.html |
diffstat | 16 files changed, 299 insertions(+), 299 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/snippet/base.djhtml Sat Jul 31 16:58:08 2010 -0500 @@ -0,0 +1,1 @@ +{% extends "base.djhtml" %}
--- a/templates/snippet/base.html Thu Jul 29 12:04:51 2010 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -{% extends "base.djhtml" %}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/snippet/snippet_details.djhtml Sat Jul 31 16:58:08 2010 -0500 @@ -0,0 +1,173 @@ +{% extends "snippet/base.djhtml" %} +{% load mptt_tags %} +{% load i18n %} + +{% block extrahead %} + {% if request.session.userprefs %} + <style type="text/css" media="all"> + .code{ + {# FIXME: Thats stupid #} + {% ifnotequal request.session.userprefs.font_family "None" %}font-family: {{ request.session.userprefs.font_family }} !important;{% endifnotequal %} + {% ifnotequal request.session.userprefs.font_size "None" %}font-size: {{ request.session.userprefs.font_size }}px !important;{% endifnotequal %} + {% ifnotequal request.session.userprefs.line_height "None" %}line-height: {{ request.session.userprefs.line_height }}px !important;{% endifnotequal %} + } + </style> + {% endif %} +{% endblock %} + +{% block title %}{% trans "Snippet" %} #{{ snippet.pk }}{% endblock %} +{% block headline %} + <h1> + {% trans "Snippet" %} #{{ snippet.pk }} + {% if snippet.parent_id %} + {% blocktrans with snippet.parent.get_absolute_url as parent_url and snippet.parent.id as parent_id %}(Copy of <a href="{{ parent_url }}">snippet #{{ parent_id }}</a>){% endblocktrans %} + {% endif %} + <span class="date">{{ snippet.published|date:_("DATETIME_FORMAT") }} ({% trans "UTC" %})</span> + </h1> +{% endblock %} +{% load snippet_tags %} + +{% block content %} +<div id="diff" style="display:none;">diff</div> + +<div class="whitebox"> + <div class="snippet-options"> + <abbr title="{% trans "Time to life" %}">TTL:</abbr> {{ snippet.expires|timeuntil }} + — + {% if snippet.pk|in_list:request.session.snippet_list %} + <a onclick="return confirm('{% trans "Really delete this snippet?" %}')" href="{% url snippet_delete snippet.secret_id %}">Delete now!</a> + — + {% endif %} + <a id="toggleWordwrap" href="#">{% trans "Wordwrap" %}</a> + </div> + <h2> + {% if snippet.title %}{{ snippet.title }}{% else %} {% trans "Snippet" %} #{{ snippet.id}}{% endif %} + <span>{% if snippet.author %}{% blocktrans with snippet.author as author %}by {{ author }}{% endblocktrans %}{% endif %}</span> + </h2> + + <div class="container"> + <div class="snippet"> + <table> + <tr> + <th><pre class="code">{% for l in lines %}<a href="#l{{ forloop.counter }}" id="l{{ forloop.counter }}">{{ forloop.counter }}</a>{% endfor %}</pre></th> + <td><pre class="code">{% for line in snippet.content_splitted %}<div class="line" id="l{{ forloop.counter }}">{% if line %}{{ line|safe }}{% else %} {% endif %}</div>{% endfor %}</pre></td> + </tr> + </table> + </div> + </div> + + <h2>{% trans "Write an answer" %} →</h2> + <div class="container" style="display: none;"> + {% include "snippet/snippet_form.djhtml" %} + </div> +</div> +{% endblock %} + + + +{% block sidebar %} + <h2>{% trans "History" %}</h2> + + <form method="get" id="diffform" action="{% url snippet_diff %}"> + <div class="tree"> + {% for tree_item,structure in tree|tree_info %} + {% if structure.new_level %}<ul><li>{% else %}</li><li>{% endif %} + <div> + <span class="diff"> + <input type="radio" name="a" value="{{ tree_item.id }}" {% ifequal tree_item.id snippet.parent_id %}checked="checked"{% endifequal %}/> + <input type="radio" name="b" value="{{ tree_item.id }}" {% ifequal snippet tree_item %}checked="checked"{% endifequal %}/> + </span> + {% ifequal snippet tree_item %} + <strong>{% trans "Snippet" %} #{{ tree_item.id }}</strong> + {% else %} + <a href="{{ tree_item.get_absolute_url }}">{% trans "Snippet" %} #{{ tree_item.id }}</a> + {% endifequal %} + </div> + {% for level in structure.closed_levels %}</li></ul>{% endfor %} + {% endfor %} + <div class="submit"> + <input type="submit" value="{% trans "Compare" %}"/> + </div> + </div> + </form> + + <h2>{% trans "Options" %}</h2> + <p><a href="{% url snippet_details_raw snippet.secret_id %}">{% trans "View raw" %}</a></p> +{% endblock %} + +{% block script_footer %} +<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script> +<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.2/jquery-ui.min.js"></script> +<script type="text/javascript"> +jQuery(document).ready(function(){ + + curLine = document.location.hash; + if(curLine.substring(0,2) == '#l'){ + $('div.snippet div.line'+curLine).addClass('marked'); + } + + $("div.accordion").accordion({ + autoHeight: false, + header: 'h2', + animation: 'bounceslide', + duration: 2000, + }); + + /** + * Diff Ajax Call + */ + $("form#diffform").submit(function() { + $.get("{% url snippet_diff %}", { + a: $("input[name=a]:checked").val(), + b: $("input[name=b]:checked").val() + }, function(data){ + $('#diff').djhtml(data).slideDown('fast'); + }); + return false; + }); + + /** + * Wordwrap + */ + $('#toggleWordwrap').toggle( + function(){ + $('div.snippet pre.code').css('white-space', 'pre-wrap'); + return false; + }, + function(){ + $('div.snippet pre.code').css('white-space', 'pre'); + return false; + } + ); + + /** + * Line Highlighting + */ + $('div.snippet th a').each(function(i){ + $(this).click(function(){ + var j = $(this).text(); + $('div.snippet div.line.marked').removeClass('marked'); + $('div.snippet div.line#l'+j).toggleClass('marked'); + }); + }); + + {% if request.session.userprefs.display_all_lexer %} + /** + * Lexer Guessing + */ + $('#guess_lexer_btn').click(function(){ + $.getJSON('{% url snippet_guess_lexer %}', + {'codestring': $('#id_content').val()}, + function(data){ + if(data.lexer == "unknown"){ + $('#guess_lexer_btn').css('color', 'red'); + }else{ + $('#id_lexer').val(data.lexer); + $('#guess_lexer_btn').css('color', 'inherit'); + } + }); + }); + {% endif %} +}); +</script> +{% endblock %}
--- a/templates/snippet/snippet_details.html Thu Jul 29 12:04:51 2010 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,173 +0,0 @@ -{% extends "snippet/base.html" %} -{% load mptt_tags %} -{% load i18n %} - -{% block extrahead %} - {% if request.session.userprefs %} - <style type="text/css" media="all"> - .code{ - {# FIXME: Thats stupid #} - {% ifnotequal request.session.userprefs.font_family "None" %}font-family: {{ request.session.userprefs.font_family }} !important;{% endifnotequal %} - {% ifnotequal request.session.userprefs.font_size "None" %}font-size: {{ request.session.userprefs.font_size }}px !important;{% endifnotequal %} - {% ifnotequal request.session.userprefs.line_height "None" %}line-height: {{ request.session.userprefs.line_height }}px !important;{% endifnotequal %} - } - </style> - {% endif %} -{% endblock %} - -{% block title %}{% trans "Snippet" %} #{{ snippet.pk }}{% endblock %} -{% block headline %} - <h1> - {% trans "Snippet" %} #{{ snippet.pk }} - {% if snippet.parent_id %} - {% blocktrans with snippet.parent.get_absolute_url as parent_url and snippet.parent.id as parent_id %}(Copy of <a href="{{ parent_url }}">snippet #{{ parent_id }}</a>){% endblocktrans %} - {% endif %} - <span class="date">{{ snippet.published|date:_("DATETIME_FORMAT") }} ({% trans "UTC" %})</span> - </h1> -{% endblock %} -{% load snippet_tags %} - -{% block content %} -<div id="diff" style="display:none;">diff</div> - -<div class="whitebox"> - <div class="snippet-options"> - <abbr title="{% trans "Time to life" %}">TTL:</abbr> {{ snippet.expires|timeuntil }} - — - {% if snippet.pk|in_list:request.session.snippet_list %} - <a onclick="return confirm('{% trans "Really delete this snippet?" %}')" href="{% url snippet_delete snippet.secret_id %}">Delete now!</a> - — - {% endif %} - <a id="toggleWordwrap" href="#">{% trans "Wordwrap" %}</a> - </div> - <h2> - {% if snippet.title %}{{ snippet.title }}{% else %} {% trans "Snippet" %} #{{ snippet.id}}{% endif %} - <span>{% if snippet.author %}{% blocktrans with snippet.author as author %}by {{ author }}{% endblocktrans %}{% endif %}</span> - </h2> - - <div class="container"> - <div class="snippet"> - <table> - <tr> - <th><pre class="code">{% for l in lines %}<a href="#l{{ forloop.counter }}" id="l{{ forloop.counter }}">{{ forloop.counter }}</a>{% endfor %}</pre></th> - <td><pre class="code">{% for line in snippet.content_splitted %}<div class="line" id="l{{ forloop.counter }}">{% if line %}{{ line|safe }}{% else %} {% endif %}</div>{% endfor %}</pre></td> - </tr> - </table> - </div> - </div> - - <h2>{% trans "Write an answer" %} →</h2> - <div class="container" style="display: none;"> - {% include "snippet/snippet_form.html" %} - </div> -</div> -{% endblock %} - - - -{% block sidebar %} - <h2>{% trans "History" %}</h2> - - <form method="get" id="diffform" action="{% url snippet_diff %}"> - <div class="tree"> - {% for tree_item,structure in tree|tree_info %} - {% if structure.new_level %}<ul><li>{% else %}</li><li>{% endif %} - <div> - <span class="diff"> - <input type="radio" name="a" value="{{ tree_item.id }}" {% ifequal tree_item.id snippet.parent_id %}checked="checked"{% endifequal %}/> - <input type="radio" name="b" value="{{ tree_item.id }}" {% ifequal snippet tree_item %}checked="checked"{% endifequal %}/> - </span> - {% ifequal snippet tree_item %} - <strong>{% trans "Snippet" %} #{{ tree_item.id }}</strong> - {% else %} - <a href="{{ tree_item.get_absolute_url }}">{% trans "Snippet" %} #{{ tree_item.id }}</a> - {% endifequal %} - </div> - {% for level in structure.closed_levels %}</li></ul>{% endfor %} - {% endfor %} - <div class="submit"> - <input type="submit" value="{% trans "Compare" %}"/> - </div> - </div> - </form> - - <h2>{% trans "Options" %}</h2> - <p><a href="{% url snippet_details_raw snippet.secret_id %}">{% trans "View raw" %}</a></p> -{% endblock %} - -{% block script_footer %} -<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script> -<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.2/jquery-ui.min.js"></script> -<script type="text/javascript"> -jQuery(document).ready(function(){ - - curLine = document.location.hash; - if(curLine.substring(0,2) == '#l'){ - $('div.snippet div.line'+curLine).addClass('marked'); - } - - $("div.accordion").accordion({ - autoHeight: false, - header: 'h2', - animation: 'bounceslide', - duration: 2000, - }); - - /** - * Diff Ajax Call - */ - $("form#diffform").submit(function() { - $.get("{% url snippet_diff %}", { - a: $("input[name=a]:checked").val(), - b: $("input[name=b]:checked").val() - }, function(data){ - $('#diff').html(data).slideDown('fast'); - }); - return false; - }); - - /** - * Wordwrap - */ - $('#toggleWordwrap').toggle( - function(){ - $('div.snippet pre.code').css('white-space', 'pre-wrap'); - return false; - }, - function(){ - $('div.snippet pre.code').css('white-space', 'pre'); - return false; - } - ); - - /** - * Line Highlighting - */ - $('div.snippet th a').each(function(i){ - $(this).click(function(){ - var j = $(this).text(); - $('div.snippet div.line.marked').removeClass('marked'); - $('div.snippet div.line#l'+j).toggleClass('marked'); - }); - }); - - {% if request.session.userprefs.display_all_lexer %} - /** - * Lexer Guessing - */ - $('#guess_lexer_btn').click(function(){ - $.getJSON('{% url snippet_guess_lexer %}', - {'codestring': $('#id_content').val()}, - function(data){ - if(data.lexer == "unknown"){ - $('#guess_lexer_btn').css('color', 'red'); - }else{ - $('#id_lexer').val(data.lexer); - $('#guess_lexer_btn').css('color', 'inherit'); - } - }); - }); - {% endif %} -}); -</script> -{% endblock %}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/snippet/snippet_details_raw.djhtml Sat Jul 31 16:58:08 2010 -0500 @@ -0,0 +1,1 @@ +{{ snippet.content|safe }} \ No newline at end of file
--- a/templates/snippet/snippet_details_raw.html Thu Jul 29 12:04:51 2010 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -{{ snippet.content|safe }} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/snippet/snippet_diff.djhtml Sat Jul 31 16:58:08 2010 -0500 @@ -0,0 +1,13 @@ +{% load i18n %} + +<h2> + <span style="float:right;">(<a href="#" onclick="$('#diff').slideUp('fast'); return false;">{% trans "Close" %}</a>)</span> + {% blocktrans with fileA.get_absolute_url as filea_url and fileB.get_absolute_url as fileb_url and fileA.id as filea_id and fileB.id as fileb_id %} + Diff between + <a href="{{ filea_url }}">Snippet #{{ filea_id }}</a> + and + <a href="{{ fileb_url }}">Snippet #{{ fileb_id }}</a> + {% endblocktrans %} +</h2> + +<pre class="code">{{ difftext|safe }}</pre>
--- a/templates/snippet/snippet_diff.html Thu Jul 29 12:04:51 2010 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -{% load i18n %} - -<h2> - <span style="float:right;">(<a href="#" onclick="$('#diff').slideUp('fast'); return false;">{% trans "Close" %}</a>)</span> - {% blocktrans with fileA.get_absolute_url as filea_url and fileB.get_absolute_url as fileb_url and fileA.id as filea_id and fileB.id as fileb_id %} - Diff between - <a href="{{ filea_url }}">Snippet #{{ filea_id }}</a> - and - <a href="{{ fileb_url }}">Snippet #{{ fileb_id }}</a> - {% endblocktrans %} -</h2> - -<pre class="code">{{ difftext|safe }}</pre>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/snippet/snippet_form.djhtml Sat Jul 31 16:58:08 2010 -0500 @@ -0,0 +1,19 @@ +{% load i18n %} +<form method="post" action="." class="snippetform"> +{% csrf_token %} +<ol> + {% for field in snippet_form %} + <li> + {{ field.errors }} + {{ field.label_tag }} + {{ field }} + {% if request.session.userprefs.display_all_lexer %} + {% ifequal field.name "lexer" %} + <input type="button" value="{% trans "Guess lexer" %}" id="guess_lexer_btn"/> + {% endifequal %} + {% endif %} + </li> + {% endfor %} + <li class="submit"><input type="submit" value="{% trans "Paste it" %}"/></li> +</ol> +</form>
--- a/templates/snippet/snippet_form.html Thu Jul 29 12:04:51 2010 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -{% load i18n %} -<form method="post" action="." class="snippetform"> -{% csrf_token %} -<ol> - {% for field in snippet_form %} - <li> - {{ field.errors }} - {{ field.label_tag }} - {{ field }} - {% if request.session.userprefs.display_all_lexer %} - {% ifequal field.name "lexer" %} - <input type="button" value="{% trans "Guess lexer" %}" id="guess_lexer_btn"/> - {% endifequal %} - {% endif %} - </li> - {% endfor %} - <li class="submit"><input type="submit" value="{% trans "Paste it" %}"/></li> -</ol> -</form>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/snippet/snippet_list.djhtml Sat Jul 31 16:58:08 2010 -0500 @@ -0,0 +1,26 @@ +{% extends "snippet/base.djhtml" %} +{% load i18n %} + +{% block title %}{% trans "Snippet" %} #{{ snippet.pk }}{% endblock %} +{% block headline %} +<h1>{% blocktrans %}Your latest {{ snippets_max }} snippets{% endblocktrans %}</h1> +{% endblock %} + +{% block content %} + {% if snippet_list %} + {% for snippet in snippet_list %} + <h2> + <a href="{{ snippet.get_absolute_url }}">{% trans "Snippet" %} #{{ snippet.pk }}</a> + ~ {{ snippet.published|date:_("DATETIME_FORMAT") }} + </h2> + <p style="color: #555; margin: 8px 0 20px 0;">{{ snippet.content|truncatewords:40 }}</p> + {% endfor %} + {% else %} + <p>{% trans "No snippets available." %}</p> + {% endif %} + + + <div class="hint"> + {% trans "DATA_STORED_IN_A_COOKIE_HINT" %} + </div> +{% endblock %}
--- a/templates/snippet/snippet_list.html Thu Jul 29 12:04:51 2010 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -{% extends "snippet/base.html" %} -{% load i18n %} - -{% block title %}{% trans "Snippet" %} #{{ snippet.pk }}{% endblock %} -{% block headline %} -<h1>{% blocktrans %}Your latest {{ snippets_max }} snippets{% endblocktrans %}</h1> -{% endblock %} - -{% block content %} - {% if snippet_list %} - {% for snippet in snippet_list %} - <h2> - <a href="{{ snippet.get_absolute_url }}">{% trans "Snippet" %} #{{ snippet.pk }}</a> - ~ {{ snippet.published|date:_("DATETIME_FORMAT") }} - </h2> - <p style="color: #555; margin: 8px 0 20px 0;">{{ snippet.content|truncatewords:40 }}</p> - {% endfor %} - {% else %} - <p>{% trans "No snippets available." %}</p> - {% endif %} - - - <div class="hint"> - {% trans "DATA_STORED_IN_A_COOKIE_HINT" %} - </div> -{% endblock %}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/snippet/snippet_new.djhtml Sat Jul 31 16:58:08 2010 -0500 @@ -0,0 +1,39 @@ +{% extends "snippet/base.djhtml" %} +{% load i18n %} + +{% block title %}{% trans "New snippet" %}{% endblock %} +{% block headline %}<h1>{% trans "Paste a new snippet" %}</h1>{% endblock %} + +{% block content %} + <h2>{% trans "New snippet" %}</h2> + {% include "snippet/snippet_form.djhtml" %} +{% endblock %} + + +{% block sidebar %} + <h2>{% trans "DPASTE_HOMEPAGE_TITLE" %}</h2> + <p>{% trans "DPASTE_HOMEPAGE_DESCRIPTION" %}</p> +{% endblock %} + + +{% block script_footer %} +<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script> +<script type="text/javascript"> +jQuery(document).ready(function(){ + {% if request.session.userprefs.display_all_lexer %} + $('#guess_lexer_btn').click(function(){ + $.getJSON('{% url snippet_guess_lexer %}', + {'codestring': $('#id_content').val()}, + function(data){ + if(data.lexer == "unknown"){ + $('#guess_lexer_btn').css('color', 'red'); + }else{ + $('#id_lexer').val(data.lexer); + $('#guess_lexer_btn').css('color', 'inherit'); + } + }); + }); + {% endif %} +}); +</script> +{% endblock %}
--- a/templates/snippet/snippet_new.html Thu Jul 29 12:04:51 2010 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,39 +0,0 @@ -{% extends "snippet/base.html" %} -{% load i18n %} - -{% block title %}{% trans "New snippet" %}{% endblock %} -{% block headline %}<h1>{% trans "Paste a new snippet" %}</h1>{% endblock %} - -{% block content %} - <h2>{% trans "New snippet" %}</h2> - {% include "snippet/snippet_form.html" %} -{% endblock %} - - -{% block sidebar %} - <h2>{% trans "DPASTE_HOMEPAGE_TITLE" %}</h2> - <p>{% trans "DPASTE_HOMEPAGE_DESCRIPTION" %}</p> -{% endblock %} - - -{% block script_footer %} -<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script> -<script type="text/javascript"> -jQuery(document).ready(function(){ - {% if request.session.userprefs.display_all_lexer %} - $('#guess_lexer_btn').click(function(){ - $.getJSON('{% url snippet_guess_lexer %}', - {'codestring': $('#id_content').val()}, - function(data){ - if(data.lexer == "unknown"){ - $('#guess_lexer_btn').css('color', 'red'); - }else{ - $('#id_lexer').val(data.lexer); - $('#guess_lexer_btn').css('color', 'inherit'); - } - }); - }); - {% endif %} -}); -</script> -{% endblock %}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/snippet/userprefs.djhtml Sat Jul 31 16:58:08 2010 -0500 @@ -0,0 +1,27 @@ +{% extends "snippet/base.djhtml" %} +{% load i18n %} + +{% block headline %} + <h1>{% trans "User Settings" %}</h1> +{% endblock %} + +{% block content %} + {% if settings_saved %} + <div class="success"> + {% trans "USER_PREFS_SAVED_SUCCESSFULLY" %} + </div> + {% endif %} + + <h2>{% trans "User Settings" %}</h2> + + <form class="snippetform" method="post" action="."> + <ol> + {{ settings_form.as_ul }} + <li class="submit"><input type="submit" value="{% trans "Save settings" %}"/></li> + </ol> + </form> + + <div class="hint"> + {% trans "DATA_STORED_IN_A_COOKIE_HINT" %} + </div> +{% endblock %}
--- a/templates/snippet/userprefs.html Thu Jul 29 12:04:51 2010 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -{% extends "snippet/base.html" %} -{% load i18n %} - -{% block headline %} - <h1>{% trans "User Settings" %}</h1> -{% endblock %} - -{% block content %} - {% if settings_saved %} - <div class="success"> - {% trans "USER_PREFS_SAVED_SUCCESSFULLY" %} - </div> - {% endif %} - - <h2>{% trans "User Settings" %}</h2> - - <form class="snippetform" method="post" action="."> - <ol> - {{ settings_form.as_ul }} - <li class="submit"><input type="submit" value="{% trans "Save settings" %}"/></li> - </ol> - </form> - - <div class="hint"> - {% trans "DATA_STORED_IN_A_COOKIE_HINT" %} - </div> -{% endblock %}