Forked mumble-django project from https://bitbucket.org/Svedrin/mumble-django
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
2.7 KiB

16 years ago
16 years ago
16 years ago
16 years ago
  1. {% load mumble_extras %}
  2. <div class="mumble">
  3. <table cellspacing="0" cellpadding="0" style="width:100%; border:none">
  4. <tr>
  5. <td class="mumble" id="server" colspan="2">
  6. <img src="/static/mumble/mumble.16x16.png" alt="mumble" />
  7. <a href="mumble://{% if mumbleAccount %}{{ mumbleAccount.name }}@{% endif %}{{ DBaseObject.addr }}:{{ DBaseObject.port }}/" class="dingen" id="link_server">
  8. {{ ServerObject.rootName }}
  9. </a>
  10. </tr>
  11. {% for item in ChannelTable %}
  12. <tr>
  13. <td class="mumble" id="{{ item.1.id }}">
  14. <span {% spaceless %}
  15. {% if item.1.is_channel %}
  16. class="mumble_channel"
  17. {% else %}
  18. class="mumble_player"
  19. {% endif %}
  20. {% endspaceless %} title="{{ item.1.name }}">
  21. {% spaceless %}
  22. {% for num in item.0|mrange %}
  23. <img src="/static/mumble/linie_v_trans.png" alt="|" />
  24. {% endfor %}
  25. <img src="/static/mumble/knoten_v_trans.png" alt="+-" />
  26. {% endspaceless %}
  27. {% if item.1.is_player %}
  28. <img src="/static/mumble/talking_off.png" alt="player" />
  29. <a id="link_{{ item.1.id }}" class="dingen" href="#">{{ item.1.name }}</a>
  30. {% else %}
  31. {% if item.1.linked %}
  32. <img src="/static/mumble/channel_linked.png" alt="linked channel"/>
  33. {% else %}
  34. <img src="/static/mumble/channel.png" alt="channel"/>
  35. {% endif %}
  36. <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 }}">{{ item.1.name }}</a>
  37. {% endif %}
  38. </span>
  39. </td>
  40. <td class="mumble">
  41. {% if item.1.userid %}
  42. {% if item.1.isAuthed %}
  43. <img src="/static/mumble/authenticated.png" alt="authed" title="Authenticated" />
  44. {% endif %}
  45. {% if item.1.muted %}
  46. <img src="/static/mumble/muted_server.png" alt="muted" title="Muted by server" />
  47. {% endif %}
  48. {% if item.1.deafened %}
  49. <img src="/static/mumble/deafened_server.png" alt="deafened" title="Deafened by server" />
  50. {% endif %}
  51. {% if item.1.selfmuted %}
  52. <img src="/static/mumble/muted_self.png" alt="self-muted" title="Muted by themselves" />
  53. {% endif %}
  54. {% if item.1.selfdeafened %}
  55. <img src="/static/mumble/deafened_self.png" alt="self-deafened" title="Deafened by themselves" />
  56. {% endif %}
  57. {% endif %}
  58. </td>
  59. </tr>
  60. {% endfor %}
  61. </table>
  62. </div>