]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/users/subscriptions.html
OSQA-266
[osqa.git] / forum / skins / default / templates / users / subscriptions.html
1 {% extends "user.html" %}
2 <!-- user_subscriptions.html -->
3 {% load i18n %}
4 {% load extra_tags %}
5 {% load humanize %}
6
7 {% block userjs %}
8     <script type="text/javascript">
9         function enableSettings() {
10             $("div#subscriptions_settings").show();
11             $("div#subscriptions_management").hide();
12
13             $("div#subscriptions_settings_button").context.activeElement.className = 'on';
14             $("div#subscriptions_management_button").context.activeElement.className = '';
15
16             //location.reload(true);
17         }
18
19         function enableManagement() {
20             $("div#subscriptions_settings").hide();
21             $("div#subscriptions_management").show();
22
23             $("div#subscriptions_settings_button").context.activeElement.className = '';
24             $("div#subscriptions_management_button").context.activeElement.className = 'on';
25
26             //location.reload(true);
27         }
28     </script>
29 {% endblock %}
30
31 {% block usercontent %}
32     <br/>
33
34     <div id="navBar"><div class="tabsA">
35         <a HREF="javascript:enableSettings()" id="subscriptions_settings_button">Settings</a>
36         <a HREF="javascript:enableManagement()" id="subscriptions_management_button">Remove</a>
37     </div></div>
38
39     <br/>
40     <div id="subscriptions_settings" {% if manage_open %} style="display:none" {% endif %}>
41         {% include "users/subscriptions_settings.html" %}
42     </div>
43     <div id="subscriptions_management" {% if not manage_open %} style="display:none" {% endif %}>
44         {% include "users/subscriptions_management.html" %}
45     </div>
46 {% endblock %}
47 <!-- end user_subscriptions.html -->