feat: custom branding upload in site administration (nav icon, login logo, favicon) #181

Closed
opened 2026-05-26 01:14:23 +00:00 by jmiller · 1 comment
Owner

Summary

Add a Branding section to Site Administration where admins can upload and manage custom images for:

  • Nav icon (top-left corner, small square icon)
  • Login logo (login page, full-sized logo)
  • Favicon (browser tab icon)

Currently Gitea uses a single logo.png for both the nav icon and login page, with no admin UI for uploading custom branding. Files must be manually placed via SSH.

Requirements

  • Separate nav icon from login logo (new logo-small.png or similar)
  • Admin UI page under Site Administration > Branding
  • Upload forms for each image type with preview
  • Files saved to custom/public/assets/img/ (persists across restarts)
  • Template changes to use separate files for nav vs login

Current behavior

  • logo.png used for both nav icon and login page (scaled down for nav)
  • favicon.png used for browser tab
  • SVG versions override PNG if present
  • No admin UI for uploading

Authored-by: Claude Opus 4.6 (1M context) noreply@anthropic.com

## Summary Add a Branding section to Site Administration where admins can upload and manage custom images for: - **Nav icon** (top-left corner, small square icon) - **Login logo** (login page, full-sized logo) - **Favicon** (browser tab icon) Currently Gitea uses a single logo.png for both the nav icon and login page, with no admin UI for uploading custom branding. Files must be manually placed via SSH. ## Requirements - [ ] Separate nav icon from login logo (new logo-small.png or similar) - [ ] Admin UI page under Site Administration > Branding - [ ] Upload forms for each image type with preview - [ ] Files saved to custom/public/assets/img/ (persists across restarts) - [ ] Template changes to use separate files for nav vs login ## Current behavior - logo.png used for both nav icon and login page (scaled down for nav) - favicon.png used for browser tab - SVG versions override PNG if present - No admin UI for uploading --- *Authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>*
Author
Owner

Testing Proof

  • Admin branding page at /-/admin/branding: working (3-column table layout)
  • Nav icon upload: working (logo-small.png served, visible after hard refresh)
  • Login logo upload: working (login-logo.png on signin page, hidden when not set)
  • Favicon upload: working
  • Reset to default: working
  • Identity settings (App Name, Help URL, Support URL, Author): saved to app.ini
  • Deployed and verified on production v1.26.1-moko.05.03.00

Authored-by: Claude Opus 4.6 (1M context) noreply@anthropic.com

## Testing Proof - Admin branding page at /-/admin/branding: working (3-column table layout) - Nav icon upload: working (logo-small.png served, visible after hard refresh) - Login logo upload: working (login-logo.png on signin page, hidden when not set) - Favicon upload: working - Reset to default: working - Identity settings (App Name, Help URL, Support URL, Author): saved to app.ini - Deployed and verified on production v1.26.1-moko.05.03.00 *Authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>*
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoGitea#181