diff --git a/evennia/web/admin/urls.py b/evennia/web/admin/urls.py index c272db4037..1b630328f5 100644 --- a/evennia/web/admin/urls.py +++ b/evennia/web/admin/urls.py @@ -18,7 +18,10 @@ urlpatterns = [ url(r"/doc/", include("django.contrib.admindocs.urls")), ] +admin.site.site_header = "Evennia web admin" + if settings.EVENNIA_ADMIN: + urlpatterns += [ # Our override for the admin. url("^/$", frontpage.evennia_admin, name="evennia_admin"), diff --git a/evennia/web/templates/admin/app_list.html b/evennia/web/templates/admin/app_list.html new file mode 100644 index 0000000000..45fbcdd383 --- /dev/null +++ b/evennia/web/templates/admin/app_list.html @@ -0,0 +1,40 @@ +{% load i18n %} + +{% if app_list %} + + {% for app in app_list %} +
+ + {% for model in app.models %} +
+ {% if model.admin_url %} + + {% else %} + + {% endif %} + + {% if model.add_url %} + + {% else %} + + {% endif %} + + {% if model.admin_url and show_changelinks %} + {% if model.view_only %} + + {% else %} + + {% endif %} + {% elif show_changelinks %} + + {% endif %} + + {% endfor %} + + {% endfor %} +
{{ model.name }}{{ model.name }}{% translate 'Add' %}{% translate 'View' %}{% translate 'Change' %}
+{% else %} +

{% translate 'You don’t have permission to view or edit anything.' %}

+{% endif %} diff --git a/evennia/web/templates/admin/frontpage.html b/evennia/web/templates/admin/frontpage.html index 95d985f4b0..bafafbdeba 100644 --- a/evennia/web/templates/admin/frontpage.html +++ b/evennia/web/templates/admin/frontpage.html @@ -9,8 +9,8 @@

Admin

- The Evennia admin page allows for modifying database entities using a - graphical interface. + The Evennia admin allows for modifying database entities using a + graphical interface. This bypasses in-game locks and permissions.


@@ -37,17 +37,26 @@

Channels

- Channels are used to redirect and organize player communications. + Channels are used to redirect and organize player in-game communications.

Help Topics

- Extend the automatic command-help with custom help topics. + Add help database help-entries here. Note that command-auto-help and + file-based help entries (added via FILEHELP_MODULES) are not visible + here. +

+ +

+

Tags

+ Tags are used to group, organize and quickly find other types of + objects. A given tag is 'shared' between any number of entities + making them very efficient.


-

Extra website pages

+

Website-only

Sites (domains)

@@ -65,13 +74,20 @@ code. Select the domain specified by SITE_ID above.

+

+

Groups

+ These are permission groups used only by the admin. You usually don't + need to modify these. +

+

- If you are an advanced user who needs access to the raw Django Admin, - it is available here. You can - make this the default by changing EVENNIA_ADMIN to - False in settings.py and reload. + When you click on any link above you'll end up in the full + django-based admin panel. You can also get to it here. You can make this the default by + changing EVENNIA_ADMIN to False in + settings.py and reload.