Nicer navigation bar

This commit is contained in:
Michal Čihař 2012-03-02 17:02:58 +01:00
parent deb5cae7ce
commit 5780bfae83
2 changed files with 5 additions and 2 deletions

View File

@ -16,8 +16,10 @@
<h2>{% trans "Translate" %}</h2> <h2>{% trans "Translate" %}</h2>
<p>{% blocktrans with unit.position as position %}Showing string {{ position }} out of {{ total }}.{% endblocktrans %} <p>{% blocktrans with unit.position as position %}Showing string {{ position }} out of {{ total }}.{% endblocktrans %}
<span class="navi">
<a class="button-prev" href="{{ unit.translation.get_translate_url }}?type={{ type }}&amp;oldpos={{ unit.position }}&amp;dir=back">{% trans "Previous" %}</a> <a class="button-prev" href="{{ unit.translation.get_translate_url }}?type={{ type }}&amp;oldpos={{ unit.position }}&amp;dir=back">{% trans "Previous" %}</a>
<a class="button-next" href="{{ unit.translation.get_translate_url }}?type={{ type }}&amp;oldpos={{ unit.position }}">{% trans "Next" %}</a> <a class="button-next" href="{{ unit.translation.get_translate_url }}?type={{ type }}&amp;oldpos={{ unit.position }}">{% trans "Next" %}</a>
</span>
</p> </p>
<form action="{{ unit.translation.get_translate_url }}" method="post"> <form action="{{ unit.translation.get_translate_url }}" method="post">

View File

@ -4,8 +4,9 @@ $(document).ready(function(){
$('ul.breadcums').buttonset(); $('ul.breadcums').buttonset();
$('.sug-accept').button({text: false, icons: { primary: "ui-icon-check" }}); $('.sug-accept').button({text: false, icons: { primary: "ui-icon-check" }});
$('.sug-delete').button({text: false, icons: { primary: "ui-icon-close" }}); $('.sug-delete').button({text: false, icons: { primary: "ui-icon-close" }});
$('.button-next').button({text: false, icons: { primary: "ui-icon-triangle-1-e" }}); $('.navi').buttonset();
$('.button-prev').button({text: false, icons: { primary: "ui-icon-triangle-1-w" }}); $('.button-next').button({text: false, icons: { primary: "ui-icon-seek-next" }});
$('.button-prev').button({text: false, icons: { primary: "ui-icon-seek-prev" }});
$('#id_target').change(function f() {$('#id_fuzzy').attr('checked', false);}).focus(); $('#id_target').change(function f() {$('#id_fuzzy').attr('checked', false);}).focus();
$('#copy-text').button({text: false, icons: { primary: "ui-icon-arrowthick-1-s" }}).click(function f() { $('#copy-text').button({text: false, icons: { primary: "ui-icon-arrowthick-1-s" }}).click(function f() {
$.get("/js/get/" + $('#id_checksum').attr('value') + '/', function(data) { $.get("/js/get/" + $('#id_checksum').attr('value') + '/', function(data) {