From 76788fb1f6deebf806a0199e6183ad6a9af4096a Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Sun, 22 Nov 2009 21:58:06 -0500 Subject: fixed broken links in few places, added Arvyd's modification of user_reputation view, email sender cron job, some edits in INSTALL file --- templates/content/js/com.cnprog.post.js | 2 +- templates/content/style/style.css | 5 +---- templates/question.html | 26 +++++++++++++------------- templates/user_reputation.html | 3 ++- templates/user_votes.html | 5 +++-- 5 files changed, 20 insertions(+), 21 deletions(-) (limited to 'templates') diff --git a/templates/content/js/com.cnprog.post.js b/templates/content/js/com.cnprog.post.js index 58db9b33..0e604b8f 100644 --- a/templates/content/js/com.cnprog.post.js +++ b/templates/content/js/com.cnprog.post.js @@ -290,7 +290,7 @@ var Vote = function(){ fav.text(data.count); } else if(data.success == "1"){ - object.attr("src", $.i18n._("/") + "/content/images/vote-favorite-on.png"); + object.attr("src", $.i18n._("/") + "content/images/vote-favorite-on.png"); var fav = getFavoriteNumber(); fav.text(data.count); fav.addClass("my-favorite-number"); diff --git a/templates/content/style/style.css b/templates/content/style/style.css index 65a323db..6c1d6a3f 100644 --- a/templates/content/style/style.css +++ b/templates/content/style/style.css @@ -163,7 +163,7 @@ blockquote border-right:1px solid #b4b48e; border-bottom:1px solid #b4b48e;*/ background: white;/* #f9f7ed;*/ - margin:10px 0 0 0; + margin:10px 0 10px 0; /*background:url(../images/quest-bg.gif) repeat-x top;*/ } #listA .qstA thumb {float:left; } @@ -1144,9 +1144,6 @@ ul.bulleta li {background:url(../images/bullet_green.gif) no-repeat 0px 2px; pad .message p { margin-bottom:0px; } -.message p.space-above { - margin-top:10px; -} .warning{color:red;} .darkred{color:darkred;} diff --git a/templates/question.html b/templates/question.html index 6929b762..9183767f 100644 --- a/templates/question.html +++ b/templates/question.html @@ -139,10 +139,6 @@ {% if request.user|can_edit_post:question %} {% trans 'edit' %} {% endif %} - {% separator %} - {% if request.user|can_delete_post:question %} - {% trans "delete" %} - {% endif %} {% separator %} {% if question.closed %} {% if request.user|can_reopen_question:question %} @@ -163,6 +159,10 @@ {% endif %} {% endif %} + {% separator %} + {% if request.user|can_delete_post:question %} + {% trans "delete" %} + {% endif %} {% endjoinitems %}
@@ -293,15 +293,6 @@ {% if request.user|can_edit_post:answer %} {% trans 'edit' %} {% endif %} - {% separator %} - {% if request.user|can_delete_post:answer %} - {% spaceless %} - - - {% if answer.deleted %}{% trans "undelete" %}{% else %}{% trans "delete" %}{% endif %} - - {% endspaceless %} - {% endif %} {% separator %} {% if request.user|can_flag_offensive %} {% endif %} + {% separator %} + {% if request.user|can_delete_post:answer %} + {% spaceless %} + + + {% if answer.deleted %}{% trans "undelete" %}{% else %}{% trans "delete" %}{% endif %} + + {% endspaceless %} + {% endif %} {% endjoinitems %}
diff --git a/templates/user_reputation.html b/templates/user_reputation.html index 29d642fe..16127140 100644 --- a/templates/user_reputation.html +++ b/templates/user_reputation.html @@ -1,6 +1,7 @@ {% extends "user.html" %} {% load extra_tags %} +{% load extra_filters %} {% load humanize %} {% block userjs %} @@ -33,7 +34,7 @@
{{ rep.negative }}
- {{ rep.title }} ({{ rep.reputed_at }}) + {{ rep.title }} ({{ rep.reputed_at }})

{% endfor %} diff --git a/templates/user_votes.html b/templates/user_votes.html index 4abbf46d..b72b3ef6 100644 --- a/templates/user_votes.html +++ b/templates/user_votes.html @@ -1,6 +1,7 @@ {% extends "user.html" %} {% load extra_tags %} +{% load extra_filters %} {% load humanize %} {% load i18n %} @@ -18,9 +19,9 @@
{% ifequal vote.answer_id 0 %} - {{ vote.title }} + {{ vote.title }} {% else %} - {{ vote.title }} + {{ vote.title }} {% endifequal %}
-- cgit v1.2.3-1-g7c22