summaryrefslogtreecommitdiffstats
path: root/askbot/templates/user_profile/twitter_sharing_controls.html
diff options
context:
space:
mode:
Diffstat (limited to 'askbot/templates/user_profile/twitter_sharing_controls.html')
-rw-r--r--askbot/templates/user_profile/twitter_sharing_controls.html12
1 files changed, 8 insertions, 4 deletions
diff --git a/askbot/templates/user_profile/twitter_sharing_controls.html b/askbot/templates/user_profile/twitter_sharing_controls.html
index 1e3c3879..bb44ea0c 100644
--- a/askbot/templates/user_profile/twitter_sharing_controls.html
+++ b/askbot/templates/user_profile/twitter_sharing_controls.html
@@ -1,14 +1,17 @@
{% set auto_tweeting_status = view_user.get_social_sharing_status('twitter') %}
-<tr class="auto-tweeting {{ auto_tweeting_status }}">
+{% set handle = view_user.twitter_handle|escape %}
+<tr class="auto-tweeting {{ auto_tweeting_status }}"
+ data-change-mode-url="{% url 'change_social_sharing_mode' %}"
+ data-start-url="{% url 'start_sharing_twitter' %}"
+>
{% if auto_tweeting_status == 'enabled' %}
- {% set handle = view_user.twitter_handle|escape %}
<td>{% trans %}Auto-tweeting to @{{ handle }}{% endtrans %}</td>
<td>
<select class="select-mode">
{% set mode = view_user.get_social_sharing_mode() %}
{% if mode == 'share-my-posts' %}
<option selected="selected" value="share-my-posts">{% trans %}my posts{% endtrans %}</option>
- <option value="all-posts">{% trans %}all posts{% endtrans %}</option>
+ <option value="share-everything">{% trans %}all posts{% endtrans %}</option>
{% else %}
<option selected="selected" value="all-posts">{% trans %}all posts{% endtrans %}</option>
<option value="share-my-posts">{% trans %}my posts{% endtrans %}</option>
@@ -27,6 +30,7 @@
</td>
{% else %}
<td>{% trans %}Auto-tweeting is off{% endtrans %}</td>
- <td><button class="submit start-tweeting">{% trans %}Start tweeting{% endtrans %}</button></td>
+ <td><button class="submit start-tweeting">{% trans %}Start tweeting{% endtrans %}</button>
+ </td>
{% endif %}
</tr>