diff --git a/templatetags/sidebar.py b/templatetags/sidebar.py
index 8d07aec..8bae2c4 100644
--- a/templatetags/sidebar.py
+++ b/templatetags/sidebar.py
@@ -15,24 +15,24 @@ def get_sidebar(current_app, request):
if len(unseen_alerts) > 0:
unseen_html = " " + str(len(unseen_alerts)) + ""
- ret = '
Overview'.format('class="active"' if current_app == 'overview' else "", reverse('overview'))
- ret += ' Bans'.format('class="active"' if current_app == 'ban' else '', reverse('ban'))
- ret += ' Alerts{}'.format('class="active"' if current_app == 'alert' else '', reverse('alert'), unseen_html)
+ ret = ' Overview'.format('class="active"' if current_app == 'overview' else "", reverse('overview'))
+ ret += ' Bans'.format('class="active"' if current_app == 'ban' else '', reverse('ban'))
+ ret += ' Alerts{}'.format('class="active"' if current_app == 'alert' else '', reverse('alert'), unseen_html)
# Models
- ret += ' Applications'.format('class="active"' if current_app == 'application' else '', reverse('application'))
- ret += ' Players'.format('class="active"' if current_app == 'player' else '', reverse('player'))
- ret += ' Tickets'.format('class="active"' if current_app == 'ticket' else '', reverse('ticket'))
- ret += ' Warnings'.format('class="active"' if current_app == 'warning' else '', reverse('warning'))
+ ret += ' Applications'.format('class="active"' if current_app == 'application' else '', reverse('application'))
+ ret += ' Players'.format('class="active"' if current_app == 'player' else '', reverse('player'))
+ ret += ' Tickets'.format('class="active"' if current_app == 'ticket' else '', reverse('ticket'))
+ ret += ' Warnings'.format('class="active"' if current_app == 'warning' else '', reverse('warning'))
# Split up MCM and "other"
ret += "
"
- ret += ' Report'.format('class="active"' if current_app == 'report' else '', reverse('report'))
+ ret += ' Report'.format('class="active"' if current_app == 'report' else '', reverse('report'))
show_chat = True if getattr(settings, 'GLOBAL_LOG', None) is not None else False
if show_chat and request.user.has_perm('auth.chat'):
- ret += ' Chat'.format('class="active"' if current_app == 'chat' else '', reverse('chat'))
+ ret += ' Chat'.format('class="active"' if current_app == 'chat' else '', reverse('chat'))
if request.user.has_perm('auth.bots'):
- ret += ' Bots'.format('class="active"' if current_app == 'bots' else '', reverse('bots'))
+ ret += ' Bots'.format('class="active"' if current_app == 'bots' else '', reverse('bots'))
return ret