Browse Source

fixed "Username@" missing from the channel links

Natenom/support-murmur-13-1446181288462
Michael Ziegler 16 years ago
parent
commit
47dc521d57
  1. 14
      pyweb/mumble/views.py
  2. 4
      template/mumble/content.htm
  3. 2
      template/mumble/mumble.htm

14
pyweb/mumble/views.py

@ -73,6 +73,7 @@ def show( request, server ):
adminform = None;
registered = False;
user = None;
if request.user.is_authenticated():
if request.method == 'POST' and 'mode' in request.POST and request.POST['mode'] == 'reg':
@ -119,13 +120,14 @@ def show( request, server ):
'DBaseObject': srv,
'ServerObject': o,
'ChannelTable': Storage.s,
"CurrentUserIsAdmin": isAdmin,
"AdminForm": adminform,
"RegForm": regform,
"TextureForm": textureform,
"Registered": registered,
"DisplayTab": displayTab,
'CurrentUserIsAdmin': isAdmin,
'AdminForm': adminform,
'RegForm': regform,
'TextureForm': textureform,
'Registered': registered,
'DisplayTab': displayTab,
'MumbleActive': True,
'MumbleAccount':user,
},
context_instance = RequestContext(request)
);

4
template/mumble/content.htm

@ -4,7 +4,7 @@
<tr>
<td class="mumble" id="server" colspan="2">
<img src="/static/mumble/mumble.16x16.png" alt="mumble" />
<a href="mumble://{% if mumbleAccount %}{{ mumbleAccount.name }}@{% endif %}{{ DBaseObject.addr }}:{{ DBaseObject.port }}/" class="dingen" id="link_server">
<a href="mumble://{% if MumbleAccount %}{{ MumbleAccount.name }}@{% endif %}{{ DBaseObject.addr }}:{{ DBaseObject.port }}/" class="dingen" id="link_server">
{{ ServerObject.rootName }}
</a>
</tr>
@ -33,7 +33,7 @@
{% else %}
<img src="/static/mumble/channel.png" alt="channel"/>
{% endif %}
<a href="mumble://{% if mumbleAccount %}{{ mumbleAccount.name }}@{% endif %}{{ DBaseObject.addr }}:{{ DBaseObject.port }}/{% for chan in item.2 %}{{ chan|urlencode }}/{% endfor %}{{ item.1.name|urlencode }}" class="dingen" id="link_{{ item.1.id }}" title="{{ item.1.name }}">{{ item.1.name|trunc:30 }}</a>
<a href="mumble://{% if MumbleAccount %}{{ MumbleAccount.name }}@{% endif %}{{ DBaseObject.addr }}:{{ DBaseObject.port }}/{% for chan in item.2 %}{{ chan|urlencode }}/{% endfor %}{{ item.1.name|urlencode }}" class="dingen" id="link_{{ item.1.id }}" title="{{ item.1.name }}">{{ item.1.name|trunc:30 }}</a>
{% endif %}
</span>
</td>

2
template/mumble/mumble.htm

@ -98,7 +98,7 @@
{% else %}
<div id="mumble_{{ item.1.id }}" class="x-hide-display">
<h2>Channel {{ item.1.name }}</h2>
<a href="mumble://{% if mumbleAccount %}{{ mumbleAccount.name }}@{% endif %}{{ DBaseObject.addr }}:{{ DBaseObject.port }}/{% for chan in item.2 %}{{ chan|urlencode }}/{% endfor %}{{ item.1.name|urlencode }}" class="dingen">Connect</a>
<a href="mumble://{% if MumbleAccount %}{{ MumbleAccount.name }}@{% endif %}{{ DBaseObject.addr }}:{{ DBaseObject.port }}/{% for chan in item.2 %}{{ chan|urlencode }}/{% endfor %}{{ item.1.name|urlencode }}" class="dingen">Connect</a>
</div>
{% endif %}
{% endfor %}

Loading…
Cancel
Save