]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/users/subscriptions.html
fixes problem with always showing alert dialog in chrome. Still working out non...
[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             $("a#subscriptions_settings_button").addClass('on');
14             $("a#subscriptions_management_button").removeClass("on");
15
16             //location.reload(true);
17         }
18
19         function enableManagement() {
20             $("div#subscriptions_settings").hide();
21             $("div#subscriptions_management").show();
22
23             $("a#subscriptions_settings_button").removeClass('on');
24             $("a#subscriptions_management_button").addClass('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='{% url user_subscriptions id=view_user.id slug=view_user.username|slugify %}?tab=settings' id="subscriptions_settings_button"  {%  if not manage_open %}class="on"{% endif %}>Settings</a>
36         <a href='{% url user_subscriptions id=view_user.id slug=view_user.username|slugify %}?tab=manage' id="subscriptions_management_button"  {%  if manage_open %}class="on"{% endif %}>Manage</a>
37     </div></div>
38
39     <br/>
40
41     {% if not manage_open %}
42         <div id="subscriptions_settings" >
43             {% include "users/subscriptions_settings.html" %}
44         </div>
45     {% endif %}
46
47     {% if manage_open %}
48         <div id="subscriptions_management" >
49             {% include "users/subscriptions_management.html" %}
50         </div>
51     {% endif %}
52 {% endblock %}
53 <!-- end user_subscriptions.html -->