summaryrefslogtreecommitdiffstats
path: root/askbot/templates
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-05-05 23:57:15 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-05-05 23:57:15 -0400
commitcf3605b7c0a86e799077f440e97645b22a69b8a0 (patch)
treef326e539e358a3f16d424d1d7a24f02968e8685e /askbot/templates
parentad61b074b6f03c9b4c9d7f3f0fd195705c7366f2 (diff)
downloadaskbot-cf3605b7c0a86e799077f440e97645b22a69b8a0.tar.gz
askbot-cf3605b7c0a86e799077f440e97645b22a69b8a0.tar.bz2
askbot-cf3605b7c0a86e799077f440e97645b22a69b8a0.zip
fixed a bug where twitter sharing button was shown, when twitter keys were not set up
Diffstat (limited to 'askbot/templates')
-rw-r--r--askbot/templates/user_profile/user_info.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/askbot/templates/user_profile/user_info.html b/askbot/templates/user_profile/user_info.html
index 8f7a5006..95baad20 100644
--- a/askbot/templates/user_profile/user_info.html
+++ b/askbot/templates/user_profile/user_info.html
@@ -88,8 +88,12 @@
<td>{{ macros.user_website_link(view_user, max_display_length = 30) }}</td>
</tr>
{% endif %}
- {% if request.user == view_user and settings.ENABLE_SHARING_TWITTER %}
- {% include "user_profile/twitter_sharing_controls.html" %}
+ {% if request.user == view_user and
+ settings.TWITTER_SECRET and
+ settings.TWITTER_KEY and
+ settings.ENABLE_SHARING_TWITTER
+ %}
+ {% include "user_profile/twitter_sharing_controls.html" %}
{% endif %}
{% if view_user.location or view_user.country %}
<tr>