Skip to content

Releases: mechiland/gitea-theme-github

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 19 Oct 02:21

PR single-commit views now show a GitHub-style commit message box with Prev / Next navigation, Browse files, author/committer details, and a copyable commit SHA. Long commit messages can be expanded and collapsed. Commit titles on a pull request's Commits tab now open the commit within that pull request.

The navigation preserves diff style, whitespace, and outdated-comment settings. The new UI applies to the GitHub themes; other Gitea themes retain their existing behavior.

Compatibility: Gitea 1.27.x and 28.x. Validated on 1.27.3 and 28.1.0 in light/dark themes at desktop and mobile widths.

Upgrading from v0.2.0: extract the package over the existing install, then run gitea manager reload-templates (or restart Gitea). This release updates templates/custom/footer.tmpl, templates/repo/commits_list.tmpl, the generated theme CSS, and its cache key. If you maintain your own overrides of these templates, merge the GitHub-specific changes by hand. No icons or templates were added or removed.

What's Changed

  • PR files: GitHub-style commit box with Prev / Next navigation by @zo-ly in #4

Full Changelog: v0.2.0...v0.2.1

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 12 Oct 09:52

One package for Gitea 1.27.x and 28.x. Gitea dropped the "1." prefix with 28.0.0. v0.1.x does not work on 28: the repository home and file pages fail to render. v0.2.0 picks the right template variant from the running Gitea version, so you can install it before upgrading Gitea from 1.27 to 28 and keep it afterwards. Gitea 28's new UI (toasts, site and impersonation banners, the quick repo switcher, the Actions job queue, artifact preview, the diff file filter, audit log, deploy tokens) is styled with Primer like the rest. The footer shows the Gitea version again ([other] SHOW_FOOTER_VERSION still controls it). Details are in #3.

Upgrading from v0.1.x: extract over the old install and run gitea manager reload-templates. No restart is needed (no icon changes). The package is now named gitea-theme-github-0.2.0-gitea1.27-28. One template is new, templates/base/head_impersonate_banner.tmpl (Gitea 28.1.0's own file; on 1.27 it only has to exist). These shipped templates changed: base/head_navbar.tmpl, custom/gh_head_navbar.tmpl, repo/blame.tmpl, repo/commits_list.tmpl, repo/view_file.tmpl, repo/view_list.tmpl, repo/wiki/view.tmpl. If you override one of them, merge the $gitea1 branches and the github-* blocks by hand. See Upgrading in the README.

What's Changed

  • v0.2.0: one package for Gitea 1.27.x and 28.x, GitHub styling for 28's new UI by @mechiland in #3

Full Changelog: v0.1.2...v0.2.0

v0.1.2

Choose a tag to compare

@github-actions github-actions released this 12 Oct 06:56

Large PR diffs are fast again. With v0.1.1, every class change on a big diff (hover UI, "Viewed", expanding comments) restyled the whole page: about 1 s on a 47-file PR. With v0.1.2 it takes 20–25 ms, close to Gitea's own CSS. Details are in #2.

Upgrading from v0.1.1: extract over the old install and run gitea manager reload-templates. No restart is needed (no icon changes). Two shipped templates changed, templates/repo/view_file.tmpl and templates/repo/blame.tmpl: they add data-gh-path to .file-view (github-* themes only). If you override either one, merge that attribute by hand. Without it, the Rust / Markdown / Python syntax-colour corrections in the file view and blame no longer apply. Nothing else depends on it. See Upgrading in the README.

What's Changed

  • v0.1.2: large PR diffs no longer restyle the whole page on every class change by @mechiland in #2

Full Changelog: v0.1.1...v0.1.2

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 09 Oct 11:22

Upgrading from v0.1.0: extract over the old install and run gitea manager reload-templates; no restart needed (no icon changes). New template: templates/repo/view_list.tmpl. If you override it, merge the a.m-commit-count link by hand. See Upgrading in the README.

What's Changed

  • v0.1.1: commit history link on repo home, regular-weight commit body by @mechiland in #1

New Contributors

Full Changelog: v0.1.0...v0.1.1

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 01 Oct 12:36