Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: f0ee0f9d0b
Fetching contributors…

Cannot retrieve contributors at this time

69 lines (63 sloc) 3.435 kb
{% extends "base.html" %}
{% load menu %}
{% load get_option %}
{% comment %}
context variables:
server
moderator
{% endcomment %}
{% block content %}
<div class="server_detail_headline {% if server.is_online %}on{% else %}off{% endif %}">
<h2>{{ server|get_option:'sv_name' }}</h2>
</div>
<div>
<div id="tabmenu">
<div id="tabmenu_box">
{% url server_detail server.id as url_info %}
{% url upload_map server.id as url_upload_map %}
{% url server_edit server.id as url_edit_settings %}
{% url server_edit_votes server.id as url_edit_votes %}
{% url server_edit_rcon_commands server.id as url_edit_rcon_commands %}
{% url server_tunes server.id as url_edit_tunes %}
{% url server_votes server.id as url_votes %}
{% url server_change_mod server.id as url_change_mod %}
{% url server_moderators server.id as url_moderators %}
{% url server_console server.id as url_console %}
<a href="{{ url_info }}"><div class="tab{% current request url_info %}">Info</div></a>
{% if server.config_votes.all %}
<a href="{{ url_votes }}"><div class="tab{% current request url_votes %}">Show Votes</div></a>
{% endif %}
{% if server.owner == user or moderator and moderator.map_upload_allowed %}
<a href="{{ url_upload_map }}"><div class="tab{% current request url_upload_map %}">Upload Map</div></a>
{% endif %}
{% if server.owner == user or moderator and moderator.allowed_options.all %}
<a href="{{ url_edit_settings }}"><div class="tab{% current request url_edit_settings %}">Edit Settings</div></a>
{% endif %}
{% if server.owner == user or moderator and moderator.edit_votes_allowed %}
<a href="{{ url_edit_votes }}"><div class="tab{% current request url_edit_votes %}">Edit Votes</div></a>
{% endif %}
{% if server.config_available_rconcommands.all %}
{% if server.owner == user or moderator and moderator.edit_rcon_commands_allowed %}
<a href="{{ url_edit_rcon_commands }}"><div class="tab{% current request url_edit_rcon_commands %}">Rcon</div></a>
{% endif %}
{% endif %}
{% if server.owner == user or moderator and moderator.allowed_tunings.all %}
{% if server.config_tunes.all %}
<a href="{{ url_edit_tunes }}"><div class="tab{% current request url_edit_tunes %}">Edit Tunings</div></a>
{% endif %}
{% endif %}
{% if server.is_online and server.owner == user or moderator and moderator.console_allowed %}
<a href="{{ url_console }}"><div class="tab{% current request url_console %}">Console</div></a>
{% endif %}
{% if server.owner == user %}
<a href="{{ url_change_mod }}"><div class="tab{% current request url_change_mod %}">Change Mod</div></a>
<a href="{{ url_moderators }}"><div class="tab{% current request url_moderators %}">Moderators</div></a>
{% endif %}
<div class="clear"></div>
</div>
<div class="tabmenu_content">
{% block tab_content %}{% endblock tab_content %}
</div>
</div>
</div>
{% endblock content %}
Jump to Line
Something went wrong with that request. Please try again.