]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/users/subscriptions.html
OSQA-459, making some headers in the user stats template translatable
[osqa.git] / forum / skins / default / templates / users / subscriptions.html
index 6785cbd4b5a22b10501663d76dd05a5ce9ba135c..573bb0a3a14309efe516af97a828b5c3f631579c 100644 (file)
@@ -10,8 +10,8 @@
             $("div#subscriptions_settings").show();
             $("div#subscriptions_management").hide();
 
-            $("div#subscriptions_settings_button").context.activeElement.className = 'on';
-            $("div#subscriptions_management_button").context.activeElement.className = '';
+            $("a#subscriptions_settings_button").addClass('on');
+            $("a#subscriptions_management_button").removeClass("on");
 
             //location.reload(true);
         }
@@ -20,8 +20,8 @@
             $("div#subscriptions_settings").hide();
             $("div#subscriptions_management").show();
 
-            $("div#subscriptions_settings_button").context.activeElement.className = '';
-            $("div#subscriptions_management_button").context.activeElement.className = 'on';
+            $("a#subscriptions_settings_button").removeClass('on');
+            $("a#subscriptions_management_button").addClass('on');
 
             //location.reload(true);
         }
     <br/>
 
     <div id="navBar"><div class="tabsA">
-        <a HREF="javascript:enableSettings()" id="subscriptions_settings_button">Settings</a>
-        <a HREF="javascript:enableManagement()" id="subscriptions_management_button">Remove</a>
+        <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>
+        <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>
     </div></div>
 
     <br/>
-    <div id="subscriptions_settings" {% if manage_open %} style="display:none" {% endif %}>
-        {% include "users/subscriptions_settings.html" %}
-    </div>
-    <div id="subscriptions_management" {% if not manage_open %} style="display:none" {% endif %}>
-        {% include "users/subscriptions_management.html" %}
-    </div>
+
+    {% if not manage_open %}
+        <div id="subscriptions_settings" >
+            {% include "users/subscriptions_settings.html" %}
+        </div>
+    {% endif %}
+
+    {% if manage_open %}
+        <div id="subscriptions_management" >
+            {% include "users/subscriptions_management.html" %}
+        </div>
+    {% endif %}
 {% endblock %}
 <!-- end user_subscriptions.html -->