diff --git a/src/colab/deprecated/templates/base.html b/src/colab/deprecated/templates/base.html
index 4bafc98..a190990 100644
--- a/src/colab/deprecated/templates/base.html
+++ b/src/colab/deprecated/templates/base.html
@@ -127,6 +127,10 @@
{{ message }}
{% endfor %}
+
+
+
+
{% endblock %}
{% block header %}{% endblock %}
diff --git a/src/super_archives/templates/message-thread.html b/src/super_archives/templates/message-thread.html
index 1e97ce7..da910ae 100644
--- a/src/super_archives/templates/message-thread.html
+++ b/src/super_archives/templates/message-thread.html
@@ -33,16 +33,17 @@
}
function vote_fail_callback(jqXHR, textStatus, errorThrown) {
- alert('error');
- //error_msg = 'Seu voto não foi computado.'
- //if (jqXHR.status === 401) {
- // error_msg += ' Você deve estar autenticado para votar.';
- //} else {
- // error_msg += ' Erro desconhecido ao tentando votar.';
- //}
-
- //jQuery('#vote-notification').html(error_msg).removeClass('hide');
- //scroll(0, 0);
+ var msg;
+
+ if (jqXHR.status === 403) {
+ msg = " {% trans 'You must login before voting.' %}"
+ } else {
+ return;
+ }
+
+ $('#alert-js #alert-message').html(msg);
+ $('#alert-js').show();
+ scroll(0, 0);
}
function get_vote_ajax_dict(msg_id, method) {
--
libgit2 0.21.2