]> source.dussan.org Git - gitea.git/commit
Show Signer in commit lists and add basic trust (#10425)
authorzeripath <art27@cantab.net>
Thu, 27 Feb 2020 19:20:55 +0000 (19:20 +0000)
committerGitHub <noreply@github.com>
Thu, 27 Feb 2020 19:20:55 +0000 (16:20 -0300)
commit90919bb37e2bcc62440e393439825fe0e1e1f343
tree1e89ce6ec5a3c90399a1621e6d11dae2417c11ef
parent858aebc2d8561803c4dc3f8a427ca82662ee96c7
Show Signer in commit lists and add basic trust (#10425)

* Show Signer in commit lists and add basic trust

Show the avatar of the signer in the commit list pages as we do not
enforce that the signer is an author or committer. This makes it
clearer who has signed the commit.

Also display commits signed by non-members differently from
members and in particular make it clear when a non-member signer
is different from the committer to help reduce the risk of
spoofing.

Signed-off-by: Andrew Thornton <art27@cantab.net>
* ensure orange text and background is available

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Update gpg_key.go

* Update models/gpg_key.go

* Apply suggestions from code review

* Require team collaborators to have access to UnitTypeCode

* as per @6543

* fix position of sha as per @silverwind

* as per @guillep2k
16 files changed:
docs/content/doc/features/comparison.en-us.md
models/gpg_key.go
models/repo_collaboration.go
options/locale/locale_en-US.ini
routers/private/hook.go
routers/repo/commit.go
routers/repo/compare.go
routers/repo/pull.go
routers/repo/view.go
routers/repo/wiki.go
templates/repo/commit_page.tmpl
templates/repo/commits_list.tmpl
templates/repo/view_list.tmpl
web_src/less/_base.less
web_src/less/_repository.less
web_src/less/themes/theme-arc-green.less