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.5 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">
  6. <img src="/static/mumble/mumble.16x16.png" alt="mumble" />
  7. {{ ServerObject.rootName }}
  8. </td>
  9. <td class="mumble"> </td>
  10. </tr>
  11. {% for item in ChannelTable %}
  12. <tr>
  13. <td class="mumble mm-left" {% if item.1.is_player %} id="{{ mm_item.1.userid }}" {% endif %}>
  14. <span {% spaceless %}
  15. {% if item.1.is_channel %}
  16. class="mumble_channel"
  17. {% else %}
  18. {% if item.1.is_player %}
  19. class="mumble_player"
  20. {% endif %}
  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.userid %}
  30. <img src="/static/mumble/talking_off.png" alt="player" />
  31. {{ item.1.name }}
  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">{{ 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>