Admin pages load now, but they ain't always pretty.

This commit is contained in:
Kelketek 2013-09-29 13:30:25 -05:00
parent 48bcb9d0ba
commit 45ea5a7cb5
3 changed files with 7 additions and 28 deletions

View file

@ -18,7 +18,7 @@
{% if app.name in evennia_userapps %}
{% if app.name == 'Auth' %}
{% if app.name == 'Players' %}
<h2>Admin</h2>
<p><i>Players are the out-of-character representation of a
game account. A Player can potentially control any number of
@ -30,7 +30,7 @@
<caption><a href="{{ app.app_url }}" class="section">{% blocktrans with app.name as name %}{{ name }}{% endblocktrans %}</a></caption>
{% for model in app.models %}
<tr>
{% if model.name == "Users" %}
{% if model.name == "Players" %}
{% if model.perms.change %}
<th scope="row"><a href="{{ model.admin_url }}">Player</a></th>
{% else %}

View file

@ -22,7 +22,7 @@ SERVER_VERSION = get_evennia_version()
# Setup lists of the most relevant apps so
# the adminsite becomes more readable.
USER_RELATED = ['Players', 'Auth']
PLAYER_RELATED = ['Players']
GAME_ENTITIES = ['Objects', 'Scripts', 'Comms', 'Help']
GAME_SETUP = ['Permissions', 'Config']
CONNECTIONS = ['Irc', 'Imc2']
@ -39,7 +39,7 @@ def general_context(request):
return {
'game_name': GAME_NAME,
'game_slogan': SERVER_VERSION,
'evennia_userapps': USER_RELATED,
'evennia_userapps': PLAYER_RELATED,
'evennia_entityapps': GAME_ENTITIES,
'evennia_setupapps': GAME_SETUP,
'evennia_connectapps': CONNECTIONS,