summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-07-15 15:51:43 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-07-15 15:51:43 -0400
commit16a80edf18fcd95dfd3d5611be38412718b2d921 (patch)
treeb0b928a61d67d872874f7e93b35256d3d3bcada6
parent4d1bb62eadf82829aad37825d6ef9653d99837b7 (diff)
downloadaskbot-16a80edf18fcd95dfd3d5611be38412718b2d921.tar.gz
askbot-16a80edf18fcd95dfd3d5611be38412718b2d921.tar.bz2
askbot-16a80edf18fcd95dfd3d5611be38412718b2d921.zip
fixed the broken "follow user" function
-rw-r--r--askbot/skins/default/templates/macros.html21
1 files changed, 2 insertions, 19 deletions
diff --git a/askbot/skins/default/templates/macros.html b/askbot/skins/default/templates/macros.html
index 3e463c1c..261c860f 100644
--- a/askbot/skins/default/templates/macros.html
+++ b/askbot/skins/default/templates/macros.html
@@ -6,23 +6,6 @@
>{% if icon == False %}{% if site_label %}{{ site_label }}{% else %}{{ site }}{% endif %}{% endif %}</a>
{%- endmacro -%}
-{%- macro follow_toggle(follow, name, alias, id) -%}
- {# follow - boolean; name - object type name; alias - e.g. users name; id - object id #}
- <div
- class="follow-toggle follow-user-toggle"
- id="follow-{{ name|escape }}-{{ id }}"
- >
- {% if follow %}
- <div class="follow">{% trans %}follow {{alias}}{% endtrans %}</div>
- {% else %}
- <div class="unfollow">
- <div class="unfollow-red">{% trans %}unfollow {{alias}}{% endtrans %}</div>
- <div class="unfollow-green">{% trans %}following {{alias}}{% endtrans %}</div>
- </div>
- {% endif %}
- </div>
-{%- endmacro -%}
-
{%- macro inbox_post_snippet(response, inbox_section) -%}
<div id="re_{{response.id}}" class="re{% if response.is_new %} new highlight{% else %} seen{% endif %}">
<input type="checkbox" />
@@ -530,8 +513,8 @@ answer {% if answer.accepted() %}accepted-answer{% endif %} {% if answer.author_
{%- macro follow_toggle(follow, name, alias, id) -%}
{# follow - boolean; name - object type name; alias - e.g. users name; id - object id #}
<div
- class="follow-toggle"
- id="follow-{{ name }}-{{ id }}"
+ class="follow-toggle follow-user-toggle"
+ id="follow-{{ name|escape }}-{{ id }}"
>
{% if follow %}
<div class="follow">{% trans %}follow {{alias}}{% endtrans %}</div>