Add explicit links to git history for policies
authorMagnus Hagander <magnus@hagander.net>
Wed, 12 Aug 2020 15:52:52 +0000 (17:52 +0200)
committerMagnus Hagander <magnus@hagander.net>
Wed, 12 Aug 2020 15:52:52 +0000 (17:52 +0200)
commit8e7e52101ccee778bb09cd6ed73b4e404abaeef2
tree40a34f178b3cad2f78d851b0e60c1d333e3d7169
parentbb1f5a36e2ed56eb7745378a24648fb72bd4a5aa
Add explicit links to git history for policies

We don't do this for all pages, but specifically for policies that
already included the "Last update", it's friendly to have a link to the
full set of changes.

We still lave the "Last updated" field as manually updated, because we
don't want to update that one if we just fix a typo or similar, it
should be reserved for when we make acstual content updates to a policy.

This creates and uses a specific template tag to automate the creation
of the links (that can of course be used elsewhere as well if needed).
12 files changed:
pgweb/core/templatetags/pgfilters.py
templates/pages/about/policies/coc.html
templates/pages/about/policies/coc_committee.html
templates/pages/about/policies/funds-group.html
templates/pages/about/policies/news-and-events.html
templates/pages/about/policies/planet-postgresql.html
templates/pages/about/policies/privacy.html
templates/pages/about/policies/project-name.html
templates/pages/about/policies/services-and-hosting.html
templates/pages/about/policies/sponsorship.html
templates/pages/about/policies/trademarks.html
templates/pages/about/policies/twitter.html