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 %} +
| {{ model.name }} | + {% else %} +{{ model.name }} | + {% endif %} + + {% if model.add_url %} +{% translate 'Add' %} | + {% else %} ++ {% endif %} + + {% if model.admin_url and show_changelinks %} + {% if model.view_only %} + | {% translate 'View' %} | + {% else %} +{% translate 'Change' %} | + {% endif %} + {% elif show_changelinks %} ++ {% endif %} + |
|---|
{% 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 @@- 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.
+
+
- 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.