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.

72 lines
2.7 KiB

16 years ago
16 years ago
16 years ago
16 years ago
16 years ago
16 years ago
  1. {% load mumble_extras %}
  2. <div class="rahmen">
  3. <table cellspacing="0" cellpadding="0">
  4. <tr>
  5. <td class="mumble">
  6. <img src="/static/mumble/mumble.16x16.png" alt="mumble" />
  7. {{ ServerObject.rootName }}
  8. </td>
  9. </tr>
  10. {% for item in ChannelTable %}
  11. <tr>
  12. <td class="mumble mm-left">
  13. <span
  14. class="mumble_{%if item.1.is_channel%}channel{%else%}{%if item.1.is_player%}player{%endif%}{%endif%}"
  15. 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;"
  16. >
  17. {% spaceless %}
  18. {% for num in item.0|mrange %}
  19. <img src="/static/mumble/linie_v_trans.png" alt="|" />
  20. {% endfor %}
  21. <img src="/static/mumble/knoten_v_trans.png" alt="+-" />
  22. {% endspaceless %}
  23. {% if item.1.userid %}
  24. <img src="/static/mumble/talking_off.png" alt="player" />
  25. {{ item.1.name }}
  26. {% else %}
  27. {% if item.1.linked %}
  28. <img src="/static/mumble/channel_linked.png" alt="linked channel"/>
  29. {% else %}
  30. <img src="/static/mumble/channel.png" alt="channel"/>
  31. {% endif %}
  32. <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>
  33. {% endif %}
  34. </span>
  35. </td>
  36. <td class="mumble">
  37. {% if item.1.userid %}
  38. {% if item.1.isAuthed %}
  39. <img src="/static/mumble/authenticated.png" alt="authed" title="Authenticated" />
  40. {% endif %}
  41. {% if item.1.muted %}
  42. <img src="/static/mumble/muted_server.png" alt="muted" title="Muted by server" />
  43. {% endif %}
  44. {% if item.1.deafened %}
  45. <img src="/static/mumble/deafened_server.png" alt="deafened" title="Deafened by server" />
  46. {% endif %}
  47. {% if item.1.selfmuted %}
  48. <img src="/static/mumble/muted_self.png" alt="self-muted" title="Muted by themselves" />
  49. {% endif %}
  50. {% if item.1.selfdeafened %}
  51. <img src="/static/mumble/deafened_self.png" alt="self-deafened" title="Deafened by themselves" />
  52. {% endif %}
  53. {% endif %}
  54. </td>
  55. </tr>
  56. {% endfor %}
  57. </table>
  58. <p><a href="/mumble/reg/{{DBaseObject.id}}" class="dingen">Mumble-Account verwalten</a></p>
  59. </div>
  60. <script type="text/javascript">
  61. $( "span.mumble_player" ).tooltip({
  62. track: false,
  63. delay: 0,
  64. showURL: false,
  65. opacity: 1,
  66. fixPNG: true,
  67. showBody: " - ",
  68. extraClass: "pretty",
  69. top: -15,
  70. left: 5
  71. });
  72. </script>