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.

59 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">
  14. <span
  15. class="mumble_{%if item.1.is_channel%}channel{%else%}{%if item.1.is_player%}player{%endif%}{%endif%}"
  16. title="{{ item.1.name }} - Online since {{item.1.onlinesince|time:"H:i"}}&lt;br /&gt;&lt;a href=&quot;/accounts/profiles/{{item.1.mumbleuser.owner.id}}&quot;&gt;{{item.1.mumbleuser.owner}}&lt;/a&gt;"
  17. >
  18. {% spaceless %}
  19. {% for num in item.0|mrange %}
  20. <img src="/static/mumble/linie_v_trans.png" alt="|" />
  21. {% endfor %}
  22. <img src="/static/mumble/knoten_v_trans.png" alt="+-" />
  23. {% endspaceless %}
  24. {% if item.1.userid %}
  25. <img src="/static/mumble/talking_off.png" alt="player" />
  26. {{ item.1.name }}
  27. {% else %}
  28. {% if item.1.linked %}
  29. <img src="/static/mumble/channel_linked.png" alt="linked channel"/>
  30. {% else %}
  31. <img src="/static/mumble/channel.png" alt="channel"/>
  32. {% endif %}
  33. <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>
  34. {% endif %}
  35. </span>
  36. </td>
  37. <td class="mumble">
  38. {% if item.1.userid %}
  39. {% if item.1.isAuthed %}
  40. <img src="/static/mumble/authenticated.png" alt="authed" title="Authenticated" />
  41. {% endif %}
  42. {% if item.1.muted %}
  43. <img src="/static/mumble/muted_server.png" alt="muted" title="Muted by server" />
  44. {% endif %}
  45. {% if item.1.deafened %}
  46. <img src="/static/mumble/deafened_server.png" alt="deafened" title="Deafened by server" />
  47. {% endif %}
  48. {% if item.1.selfmuted %}
  49. <img src="/static/mumble/muted_self.png" alt="self-muted" title="Muted by themselves" />
  50. {% endif %}
  51. {% if item.1.selfdeafened %}
  52. <img src="/static/mumble/deafened_self.png" alt="self-deafened" title="Deafened by themselves" />
  53. {% endif %}
  54. {% endif %}
  55. </td>
  56. </tr>
  57. {% endfor %}
  58. </table>
  59. </div>