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.

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