Browse Source

hide registration tab for unauthed users

Natenom/support-murmur-13-1446181288462
Michael Ziegler 14 years ago
parent
commit
c1b8b9ad97
  1. 5
      pyweb/mumble/templates/mumble/mumble.html

5
pyweb/mumble/templates/mumble/mumble.html

@ -106,7 +106,9 @@
items: [{ items: [{
title: gettext("Server info"), title: gettext("Server info"),
html: renderserverinfos( {{ ServerDict|safe }} ), html: renderserverinfos( {{ ServerDict|safe }} ),
}, {
},
{% if user.is_authenticated %}
{
title: gettext("Registration"), title: gettext("Registration"),
xtype: "{{ RegForm|lower }}", xtype: "{{ RegForm|lower }}",
pk: {% if MumbleAccount %}{{ MumbleAccount.id }}{% else %}-1{% endif %}, pk: {% if MumbleAccount %}{{ MumbleAccount.id }}{% else %}-1{% endif %},
@ -187,6 +189,7 @@
} }
{% endif %} {% endif %}
{% endif %} {% endif %}
{% endif %}
], ],
}], }],
}); });

Loading…
Cancel
Save