Skip to content

Surface Project People + Activity Log in the admin header #1428

Description

@jonfroehlich

Two internal pages are easy to forget because neither is linked from the main site nav:

  • Project People/view-project-people/, the project-team roster (view_project_people view). Nothing in the site nav points at it.
  • Activity Log — the site-wide admin action log added in Superuser: browse site-wide admin action log (all users, not just My actions) #1413. Django never surfaces LogEntry in the UI (the index sidebar's "Recent actions" is scoped to your own actions), so the changelist is reachable only by typing the URL.

Surface both in the userlinks block of website/templates/admin/base_site.html, alongside the existing GitHub link.

The Activity Log link must be wrapped in {% if user.is_superuser %} to match the gate LogEntryAdmin already enforces (has_view_permission / has_module_permission), so Editors and Contributors are never shown a link to a page they can't open.

Note for whoever implements this: website/urls.py sets app_name = "website", so the roster reverses as website:view_project_people. A bare {% url 'view_project_people' %} raises NoReverseMatch — and because base_site.html is the parent of every admin page, that 500s the whole admin rather than breaking one link.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions