Browse Source

add USERS_ABOVE_CHANNELS setting to settings.py

Natenom/support-murmur-13-1446181288462
Michael Ziegler 13 years ago
parent
commit
e63f9f1391
  1. 3
      pyweb/mumble/templates/mumble/embed.html
  2. 3
      pyweb/mumble/templates/mumble/mumble.html
  3. 2
      pyweb/mumble/views.py
  4. 3
      pyweb/settings.py

3
pyweb/mumble/templates/mumble/embed.html

@ -17,6 +17,9 @@
mainpanel = new Ext.ux.MumbleChannelViewer({
//title: "ohai",
renderTo: Ext.getBody(),
{% if UsersAboveChannels %}
usersAboveChannels: true,
{% endif %}
source_url: "{% url mumble.views.cvp_json MumbleServer.id %}",
imageurl: '{{MUMBLE_MEDIA_PREFIX}}/img',
tbar: [],

3
pyweb/mumble/templates/mumble/mumble.html

@ -76,6 +76,9 @@
region: "west",
width: 350,
split: true,
{% if UsersAboveChannels %}
usersAboveChannels: true,
{% endif %}
enableDD: true,
plugins: [
new Ext.ux.MumbleUserEditor({

2
pyweb/mumble/views.py

@ -198,6 +198,7 @@ def show( request, server ):
'MumbleAccount':user,
'QRAvailable': qravail,
'IsAdmin': isAdmin,
'UsersAboveChannels': settings.USERS_ABOVE_CHANNELS
}, context_instance = RequestContext(request) )
def mobile_show( request, server ):
@ -226,6 +227,7 @@ def embed( request, server ):
return render_to_response( 'mumble/embed.html', {
'MumbleServer': srv,
'MumbleActive': True,
'UsersAboveChannels': settings.USERS_ABOVE_CHANNELS
}, context_instance = RequestContext(request) )
@EXT_DIRECT_PROVIDER.register_method( "Mumble" )

3
pyweb/settings.py

@ -137,6 +137,9 @@ MUNIN_CATEGORY = 'mumble'
# Set to True if you do not wish offline servers to appear in the server list.
HIDE_OFFLINE_SERVERS=False
# True to display users above channels in the channel viewer.
USERS_ABOVE_CHANNELS=False
###################################################################
## ##
## The following settings normally do not require changes, and ##

Loading…
Cancel
Save