]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/subscription_status.html
fixes osqa-54: The user was not being informed that they were trying to submit a...
[osqa.git] / forum / skins / default / templates / subscription_status.html
1 {% load i18n %}\r
2 \r
3 <h3 class="subtitle">{% trans "Subscription" %}:</h3>\r
4 {% if request.user.is_authenticated %}\r
5     <div class="subscription-status">\r
6         {% if subscription %}\r
7             {% if subscription.auto_subscription %}\r
8                 <p>{% trans "You were automatically subscribed to this question." %}</p>\r
9             {% else %}\r
10                 <p>{% trans "You are subscribed to this question." %}</p>\r
11             {% endif %}\r
12         {% else %}\r
13             <p>{% trans "You are not subscribed to this question." %}</p>\r
14         {% endif %}\r
15     </div>\r
16     <p><a class="ajax-command sidebar_button subscription_switch" href="{% url subscribe id=question.id %}">\r
17         {% if subscription %}\r
18             {% trans "unsubscribe me" %}\r
19         {% else %}\r
20             {% trans "subscribe me" %}\r
21         {% endif %}\r
22     </a></p>\r
23     <p>\r
24         {% blocktrans with request.user.get_profile_url as profile_url %}\r
25             (you can adjust your notification settings on your <a href="{{ profile_url }}?sort=email_subscriptions">profile</a>)\r
26         {% endblocktrans %}\r
27     </p>\r
28 {% else %}\r
29     <p>{% trans "Once you sign in you will be able to subscribe for any updates here" %}</p>\r
30 {% endif %}\r