diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2014-02-06 10:34:21 -0300 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2014-02-06 10:34:21 -0300 |
commit | 18dde60328cd3f710cba8d876d288c7857bb4af7 (patch) | |
tree | 8f7b810dd0009d219accb62d99abc64085a25e8e | |
parent | 6e14c8c1751a0fb23517b44d363fb11a1c8d5aa0 (diff) | |
download | askbot-18dde60328cd3f710cba8d876d288c7857bb4af7.tar.gz askbot-18dde60328cd3f710cba8d876d288c7857bb4af7.tar.bz2 askbot-18dde60328cd3f710cba8d876d288c7857bb4af7.zip |
hid name of anonymous user in the post notification
-rw-r--r-- | askbot/templates/email/macros.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/askbot/templates/email/macros.html b/askbot/templates/email/macros.html index 3b190e9f..78816c4f 100644 --- a/askbot/templates/email/macros.html +++ b/askbot/templates/email/macros.html @@ -7,7 +7,11 @@ %} {% spaceless %} {{ start_quote(quote_level) }} - {% set author = post.author.username|escape %} + {% if post.is_anonymous %} + {% set author = settings.NAME_OF_ANONYMOUS_USER %} + {% else %} + {% set author = post.author.username|escape %} + {% endif %} {% if post.post_type == 'question' %} {% if quote_level > 0 %} <p style="font-size:10px; font-weight: bold;"> |