diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2013-04-15 05:25:59 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2013-04-15 05:25:59 -0400 |
commit | 0d5b61161be04616973495ba39822e1af60a6f0b (patch) | |
tree | 81c61d4e417ed59a842c5d890889f3cb719077ad /askbot/templates | |
parent | 7ebc10362bf662489a0eba6105bd6d0d897d9541 (diff) | |
download | askbot-0d5b61161be04616973495ba39822e1af60a6f0b.tar.gz askbot-0d5b61161be04616973495ba39822e1af60a6f0b.tar.bz2 askbot-0d5b61161be04616973495ba39822e1af60a6f0b.zip |
added basic UI for auto-tweeting
Diffstat (limited to 'askbot/templates')
-rw-r--r-- | askbot/templates/user_profile/twitter_sharing_controls.html | 12 |
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> |