pgweb.git
4 years agoAdd allowed query parameters for oauth logins
Magnus Hagander [Tue, 23 Feb 2021 10:20:48 +0000 (11:20 +0100)]
Add allowed query parameters for oauth logins

I forgot to "git add" this file :/

4 years agoFix silly typo
Magnus Hagander [Mon, 22 Feb 2021 11:21:29 +0000 (12:21 +0100)]
Fix silly typo

4 years agoAdd a css that explicitly imports rqeuired docs css files
Magnus Hagander [Mon, 22 Feb 2021 10:32:48 +0000 (11:32 +0100)]
Add a css that explicitly imports rqeuired docs css files

Being able to point to this one css instead of individually at each one
will make it easier in the future to make changes to the stylesheets
without breaking things like the docs build.

4 years agoRemove old archives_search function
Magnus Hagander [Mon, 22 Feb 2021 10:13:42 +0000 (11:13 +0100)]
Remove old archives_search function

This function hasn't been used since we switched tot he new archives
system that does the search through a http api.

4 years agoRetire search for "community sites"
Magnus Hagander [Mon, 22 Feb 2021 10:11:58 +0000 (11:11 +0100)]
Retire search for "community sites"

This hasn't worked for a few years (since 900946df) and nobody has
complained. Getting rid of it allows similifying a few things on the
search server side as well.

4 years agoRequire explicit tagging on views taking query parameters
Magnus Hagander [Mon, 22 Feb 2021 09:43:59 +0000 (10:43 +0100)]
Require explicit tagging on views taking query parameters

Require each view to declare which query parameters it wants, and filter
out any other parameters.

We have very few views that actually take query parameters, and random
additional query patterns will have no effect on the view. However, they
will break frontend caching (in making them look like different pages).

This will be extended into an implementation in the caching frontends as
well, btu it's needed in the backend to ensure that local testing will
have tbe same effect as the caches.

4 years agoBand-aid fix on multi-site search
Magnus Hagander [Mon, 22 Feb 2021 09:43:35 +0000 (10:43 +0100)]
Band-aid fix on multi-site search

There is still some broken stuff in here.

4 years agoBump some cache times up
Magnus Hagander [Thu, 18 Feb 2021 16:13:38 +0000 (17:13 +0100)]
Bump some cache times up

About page goes from 10min to 30min (short cache to rotate the
quotes).

Search results go from 15min to 30 min.

Dynamic CSS goes from 6 hours to 48 hours, since we use cache busting
URLs everywhere these days, and on average they change very seldom.

4 years agoFix homepage typo
Jonathan S. Katz [Tue, 16 Feb 2021 02:53:00 +0000 (21:53 -0500)]
Fix homepage typo

There were two instances of "11.11" written as "11.1".

4 years ago2021-02-11 cumulative update release
Jonathan S. Katz [Thu, 11 Feb 2021 01:51:03 +0000 (20:51 -0500)]
2021-02-11 cumulative update release

4 years agoSoften bold on various definition list entries on docs
Jonathan S. Katz [Mon, 8 Feb 2021 17:19:33 +0000 (12:19 -0500)]
Soften bold on various definition list entries on docs

The new changes had made certain pages, e.g. the index, much
more bold.

4 years agoFix bolding of text on website
Jonathan S. Katz [Sun, 7 Feb 2021 22:12:03 +0000 (17:12 -0500)]
Fix bolding of text on website

Borrowing from 5112187fa[1] in the pgeu-system codebase,
this returns the ability to bold text within pgweb by ensuring
the Open Sans heavier fonts are loaded.

To accomplish this, this patch includes a few more changes:

- Normalize the heavier weights under 400, 600, 800.
- Ensure any font-weight settings using Open Sans match the
standards listed above.
- An adjutsment on the event archive page to ensure the font
weights are not too bold.

[1] https://git.postgresql.org/gitweb/?p=pgeu-system.git;a=commit;h=5112187fac45e0bcadb34e61c6e3e0ac398a5df3

4 years agoAllow /admin/ to search for users by secondary email
Magnus Hagander [Fri, 29 Jan 2021 11:27:29 +0000 (12:27 +0100)]
Allow /admin/ to search for users by secondary email

4 years agoAdd a validator to the /admin/ form for changing email addresses
Magnus Hagander [Fri, 29 Jan 2021 10:17:14 +0000 (11:17 +0100)]
Add a validator to the /admin/ form for changing email addresses

As Jonathan recently demonstrated, it was possible to change the primary
email address on one account to be the secondary email address of
another one when using /admin/ (it was prevented when using the user
facing forms), which then caused conflicts in the change track and
replication steps later.

Add a validator to the admin form to avoid this mistake in the future.

This doesn't entirely remove all possibilities, so we should consider
adding a database trigger to enforce it as well, but it closes the most
obvious hole and makes the other ones much harder to hit (but you can
still cause the same damage through psql or so, of course).

4 years agoShow secondary emails on the admin form
Magnus Hagander [Fri, 29 Jan 2021 09:55:14 +0000 (10:55 +0100)]
Show secondary emails on the admin form

4 years agoSend moderation notice to moderators even when no changes are made
Magnus Hagander [Sun, 17 Jan 2021 15:17:57 +0000 (16:17 +0100)]
Send moderation notice to moderators even when no changes are made

When a moderation notice was sent without making any actual state
changse (so not approving, rejecting or returning), the notice would
only be sent to the submitter, and not to the moderators. Which
obviously can lead to some confusion. So make sure that it's always sent
there as well, and the message clearly states that it was just a
comment.

4 years agoAdd "Mastering PostgreSQL 13 - Fourth Edition"
Jonathan S. Katz [Thu, 14 Jan 2021 19:23:41 +0000 (14:23 -0500)]
Add "Mastering PostgreSQL 13 - Fourth Edition"

4 years agoClarify the instructions for how/when to add new organisations
Magnus Hagander [Thu, 14 Jan 2021 16:26:42 +0000 (17:26 +0100)]
Clarify the instructions for how/when to add new organisations

4 years agoAdd headline separating the submit_header for organisations
Magnus Hagander [Thu, 14 Jan 2021 16:24:37 +0000 (17:24 +0100)]
Add headline separating the submit_header for organisations

4 years agoMove the hint message for organisation to its own file
Magnus Hagander [Thu, 14 Jan 2021 15:49:03 +0000 (16:49 +0100)]
Move the hint message for organisation to its own file

This is way too much text to duplicate across many places..

4 years agoUpdate version of cvss module
Magnus Hagander [Wed, 13 Jan 2021 21:10:49 +0000 (22:10 +0100)]
Update version of cvss module

4 years agoDo not set fixed width for thread selector dropdown box
Jonathan S. Katz [Fri, 8 Jan 2021 19:04:50 +0000 (14:04 -0500)]
Do not set fixed width for thread selector dropdown box

There were cases that the fixed width for this box would cause the
thread selector to explode outside of the email header table in the
thread viewer. We should keep the select dropdown itself to the width
of the overall list of email addresses in the chain.

4 years agoAdd EOT format of fa fonts
Magnus Hagander [Wed, 6 Jan 2021 15:51:03 +0000 (16:51 +0100)]
Add EOT format of fa fonts

Based on the number of 404's for this on the website, clearly it's
something that browsers want, and it was probably just missed in the
original import.

4 years agoOnly show sections on submissions dashbaord that has entries
Magnus Hagander [Sun, 3 Jan 2021 15:14:47 +0000 (16:14 +0100)]
Only show sections on submissions dashbaord that has entries

Instead of showing (confusing) empty sections, remove the complete
section from she page.

From Andreas Scherbaum, though not his patch in the end

4 years agoUpdate to verbiage for generic moderation view page
Jonathan S. Katz [Sun, 3 Jan 2021 14:56:44 +0000 (09:56 -0500)]
Update to verbiage for generic moderation view page

This more clearly specifies the actions a user must take while
working with the moderation system, and fixes up some syntax.

Co-authored-by: Andreas 'ads' Scherbaum <ads@pgug.de>
4 years agoFix some RST formatting
Magnus Hagander [Fri, 1 Jan 2021 15:24:01 +0000 (16:24 +0100)]
Fix some RST formatting

4 years agoUpdate the developer install docs
Magnus Hagander [Fri, 1 Jan 2021 15:19:35 +0000 (16:19 +0100)]
Update the developer install docs

They could definitely use some more love, but it's a start.

4 years agoMake loading script work regardless of directory
Magnus Hagander [Fri, 1 Jan 2021 15:19:14 +0000 (16:19 +0100)]
Make loading script work regardless of directory

4 years agoAdd a missing requirement to requirements.txt
Magnus Hagander [Fri, 1 Jan 2021 15:18:55 +0000 (16:18 +0100)]
Add a missing requirement to requirements.txt

This is default in most installations -- but clearly not all.

4 years agoUpdate Fedora information
Devrim Gündüz [Wed, 30 Dec 2020 01:02:41 +0000 (01:02 +0000)]
Update Fedora information

4 years agoFix multi-paragraph statements in documentation callouts
Jonathan S. Katz [Thu, 17 Dec 2020 21:51:24 +0000 (16:51 -0500)]
Fix multi-paragraph statements in documentation callouts

Multi-paragraph statements in the warning/caution/note/tip boxes
were being smushed together due to the removal of paragraph
margins. It is still essential to remove the paragraph margin
on the final paragraph, which is accounted for in this change.

Reported by: Peter Geoghegan <pg@bowt.ie>

4 years agoUpdate Code of Conduct Committee page
Jonathan S. Katz [Mon, 14 Dec 2020 14:56:27 +0000 (09:56 -0500)]
Update Code of Conduct Committee page

This adds a bio for a new committee member.

4 years agoUpdates to trademark policy
Jonathan S. Katz [Tue, 8 Dec 2020 16:11:53 +0000 (11:11 -0500)]
Updates to trademark policy

4 years agoUpdates logo files and display
Jonathan S. Katz [Tue, 8 Dec 2020 16:04:31 +0000 (11:04 -0500)]
Updates logo files and display

This adds the black outline logo of Slonik to the repository
and provides some updates to the existing logo files that are
hosted on pgweb.

4 years agoAdd the Recognised PostgreSQL User Group policy
Jonathan S. Katz [Tue, 24 Nov 2020 02:04:27 +0000 (21:04 -0500)]
Add the Recognised PostgreSQL User Group policy

This also updates the PUG page to point at the policy.

4 years agoMove community recognition guidelines into policy pages
Jonathan S. Katz [Tue, 24 Nov 2020 01:34:47 +0000 (20:34 -0500)]
Move community recognition guidelines into policy pages

This consolidates the pages into the policies section.
A redirect is set up from the previous community recognition
page to the policy pages.

4 years agoUpdate layout of documentation navigation pages
Magnus Hagander [Mon, 23 Nov 2020 16:05:11 +0000 (17:05 +0100)]
Update layout of documentation navigation pages

* Move links to current manuals to /docs/, decommission /docs/manuals/
* Add link to /docs/current/ with a large button
* Add links to /docs/devel/ at the bottom of the version table
* Remove translated manuals from left nav menu, since they are in the
  right one
* Remove redundant wording around "comprehensive manual"
* Clean up some incorrect template tags

Discussion: https://www.postgresql.org/message-id/CABUevEymaWDL4JywHxBDBATUUPPrAf4_tGwin4CtGFdQ5tx5Hg@mail.gmail.com

4 years agoReplace core team enumeration with link to the active core team
Magnus Hagander [Tue, 24 Nov 2020 08:39:02 +0000 (09:39 +0100)]
Replace core team enumeration with link to the active core team

We missed updating this when the core team changed a while ago, which
indicates that it's silly to have the same thing defined in more than
one place. Thus, replace it with a link.

Reviewed by both -core and funds-group.

As this does not contain any changes to the actual policy, this commit
does not bump the "last updated" date of the page.

4 years agoAdd modified object title to notifications of end user edits
Magnus Hagander [Mon, 23 Nov 2020 16:16:55 +0000 (17:16 +0100)]
Add modified object title to notifications of end user edits

Commit c2d58d6 only added the title of the object to notifications when
an object were modified by a moderator/admin, not by the end user. Fix
that to make it consistent.

4 years agoFix search result pagination link handling
Maciek Sakrejda [Mon, 23 Nov 2020 14:37:10 +0000 (15:37 +0100)]
Fix search result pagination link handling

If the total number of search results is divisible by the page size, the page count
is mis-calculated and there's a link to an additional page of results, even though there
are no more results and that page is empty.

See issue here: https://www.postgresql.org/search/?m=1&q=contrib&l=76&d=365&s=r&p=2

At the moment, this has 20 results but a link to a second page, which is empty with a label of
"Results 21-20 of 20." Previous and Next works still work fine, but that second page
does not really need to be there.

This changes the page count calculation to avoid this issue.

4 years agoInclude title of modified object in change notification emails
Magnus Hagander [Mon, 23 Nov 2020 11:15:52 +0000 (12:15 +0100)]
Include title of modified object in change notification emails

Should make the notifications a lot more useful without clicking
through.

4 years agoAdd link to event archive to menu in /about/
Magnus Hagander [Mon, 23 Nov 2020 11:06:19 +0000 (12:06 +0100)]
Add link to event archive to menu in /about/

4 years agoAdd per-version xkey tags to documentation pages
Magnus Hagander [Mon, 23 Nov 2020 10:58:18 +0000 (11:58 +0100)]
Add per-version xkey tags to documentation pages

This is not used for anything yet, we need it to propagate into all
long-term caches before we can start using it.

4 years agoAllow additions to auto-generated xkey tags
Magnus Hagander [Mon, 23 Nov 2020 10:57:40 +0000 (11:57 +0100)]
Allow additions to auto-generated xkey tags

If an xkey tag is already set on a response when it reaches the
middleware, add it to the set of automated xkeys generated from the
templates instead of overwriting it.

4 years agoOnly flag docs as loaded when they've actually changed
Magnus Hagander [Fri, 20 Nov 2020 15:44:44 +0000 (16:44 +0100)]
Only flag docs as loaded when they've actually changed

We already avoided the actual updates (by filtering the UPDATE
statement), but since we set the load date we'd trigger a change to
every page and kick it ouf of the caches even when not chagned, which is
wasteful. So instead only do that if something has changed. When it has,
we still reset that whole version of the docs since we want the load
date to be consistent across them.

4 years agoShow the about-to-be complete URL for slugified news on moderation page
Magnus Hagander [Fri, 20 Nov 2020 15:03:37 +0000 (16:03 +0100)]
Show the about-to-be complete URL for slugified news on moderation page

This makes it easier when the links is to be included in for example the
actual web commit of a realease.

4 years agoEnsure all links to Developer FAQ go to Developer FAQ
Jonathan S. Katz [Fri, 20 Nov 2020 13:21:41 +0000 (08:21 -0500)]
Ensure all links to Developer FAQ go to Developer FAQ

Reported by Bruce Momjian <bruce@momjian.us>

4 years agoAdd organisation "name" to moderation fields
Jonathan S. Katz [Thu, 19 Nov 2020 14:36:04 +0000 (09:36 -0500)]
Add organisation "name" to moderation fields

This makes it slightly easier to perform appropriate moderation
review on an organisation.

4 years agoIncorporate outbound link qualifications on "other resources" page
Jonathan S. Katz [Thu, 19 Nov 2020 14:29:55 +0000 (09:29 -0500)]
Incorporate outbound link qualifications on "other resources" page

Given the lack of control over the content of these outbound
pages and the discovery of the issue fixed in bf508c4, it seemed
to follow (no pun intended) that these links should be qualified.

4 years agoFix broken link on online resources page
Jonathan S. Katz [Thu, 19 Nov 2020 14:26:34 +0000 (09:26 -0500)]
Fix broken link on online resources page

The "PostgreSQL Primer for Busy People" URL had moved.

4 years agoFix some consistency and formatting in news/events policy
Magnus Hagander [Thu, 19 Nov 2020 12:06:03 +0000 (13:06 +0100)]
Fix some consistency and formatting in news/events policy

Consistently talk about postgresql.org vs www.postgresql.org, and call
the team "web team" (not a mix of teams and groups, with and without
admin etc). Don't use markdown/wiki style for emphasis, use proper HTML.

As this does not contain any changes to the actual policy, this commit
does not bump the "last updated" date of the page.

4 years agoRemove references to pgsql-announce from the news policy
Magnus Hagander [Thu, 19 Nov 2020 12:05:09 +0000 (13:05 +0100)]
Remove references to pgsql-announce from the news policy

pgsql-announce is the same as news these days, so we shouldn't single
out the differences (since there are none).

As this does not contain any changes to the actual policy, this commit
does not bump the "last updated" date of the page.

4 years agoRemove "procedure for approving news/events" from policy page
Magnus Hagander [Thu, 19 Nov 2020 11:57:16 +0000 (12:57 +0100)]
Remove "procedure for approving news/events" from policy page

This should never have been there as it was not part of the policy, it
was instructions for what to do (missed when the page was migrated over
from the wiki). And at this point they are also incorrect due to the new
news posting handling, but it's better to remove them here that they
didn't belong in the first place.

As this does not contain any changes to the actual policy, this commit
does not bump the "last updated" date of the page.

4 years agoEnforce check that a mailinglist exists earlier during search
Magnus Hagander [Wed, 18 Nov 2020 16:38:22 +0000 (17:38 +0100)]
Enforce check that a mailinglist exists earlier during search

4 years agoFix suburl check
Magnus Hagander [Wed, 18 Nov 2020 15:50:06 +0000 (16:50 +0100)]
Fix suburl check

Previous commit was a bit too simplistic to cover all cases

4 years agoPrevent NUL characters in both suburl and query
Magnus Hagander [Wed, 18 Nov 2020 15:39:24 +0000 (16:39 +0100)]
Prevent NUL characters in both suburl and query

Previous fix only prevented them in the search query, not in the suburl
parameter.

4 years agoReplace non-ascii chars in template names when building xkey
Magnus Hagander [Wed, 18 Nov 2020 10:28:40 +0000 (11:28 +0100)]
Replace non-ascii chars in template names when building xkey

We don't have non-ascii characters in any of our correct URLs, but
people can still specify them on the URL. In this case the xkey isn't
going to match anything anyway, so it is not critical how we handle it,
especially since the generated page is going to be a 404 anyway. So just
use the simple built-in replace function.

4 years agoAdd note to form when creating new organisations
Magnus Hagander [Wed, 11 Nov 2020 12:05:36 +0000 (13:05 +0100)]
Add note to form when creating new organisations

In particular, highlight that an organisation is not needed to
participate on lists, send bug reports etc. Caused by the number of
people who apparently get this wrong previously.

4 years agoMake it possible to have a separate form intro for new vs existing items
Magnus Hagander [Wed, 11 Nov 2020 12:05:22 +0000 (13:05 +0100)]
Make it possible to have a separate form intro for new vs existing items

4 years agoCreate instruction page for markdown fields
Magnus Hagander [Mon, 9 Nov 2020 17:14:09 +0000 (18:14 +0100)]
Create instruction page for markdown fields

Instead of directly linking to the spec, include some basic info and a
list of our limitations.

4 years agoRemove imported showdown
Magnus Hagander [Mon, 9 Nov 2020 16:58:03 +0000 (17:58 +0100)]
Remove imported showdown

No longer used with the new markdown processing.

4 years agoRe-do markdown handling for better user experience and security
Magnus Hagander [Sun, 8 Nov 2020 16:03:04 +0000 (17:03 +0100)]
Re-do markdown handling for better user experience and security

* Get rid of the django_markwhat dependency, and implement our own
  classes to get more control. In passing also remove django-markdown,
  because we never used that.
* Instead of trying to clean markdown with regexps, use the bleach
  library (NEW DEPENDENCY) with special whitelisting of allowed tags
  based off standard markdown. This means that one can input links or
  formatting in HTML if one prefers, as long as it renders to the same
  subset of tags that markdown allows.
* Replace javascript based client side preview with an actual call to a
  preview URL that renders the exact result using the same function,
  since the use of showdown on the client was increasingly starting to
  differ from the server, and since that cannot be kept secure the same
  way. Rewrite the client side javascript to work better with the now
  longer interval between updates of the preview.

Long in planning, but never got around to it.

Suggestion to use bleach for escaping from David Fetter.

4 years agoRemove unused template tag load
Magnus Hagander [Mon, 9 Nov 2020 16:57:20 +0000 (17:57 +0100)]
Remove unused template tag load

4 years ago2020-11-12 update release
Jonathan S. Katz [Thu, 12 Nov 2020 03:52:00 +0000 (22:52 -0500)]
2020-11-12 update release

4 years agoAdd URL to Feature Matrix from the home page
Jonathan S. Katz [Thu, 12 Nov 2020 03:56:02 +0000 (22:56 -0500)]
Add URL to Feature Matrix from the home page

Given feedback over the helpfulness of the feature matrix (yay!)
the button for it is added to the homepage in prominent
real estate.

4 years agoDon't remove news articles when attached email is removed
Magnus Hagander [Wed, 11 Nov 2020 14:35:44 +0000 (15:35 +0100)]
Don't remove news articles when attached email is removed

At this point, we set the field to PROTECTED and dont' allow the
deletion at all. In the future we might want to allow a set null
operation, but for now we require the users to contact webmaster@ to
handle that, so we keep it under control.

4 years agoAdd link to the privacy@ email address to the policy page
Magnus Hagander [Sun, 8 Nov 2020 16:03:04 +0000 (17:03 +0100)]
Add link to the privacy@ email address to the policy page

4 years agoFix Babel requirement in requirements.txt
Jonathan S. Katz [Fri, 6 Nov 2020 14:39:42 +0000 (09:39 -0500)]
Fix Babel requirement in requirements.txt

Should be "==" instead of just a "="

4 years agoHandle empty company URLs in contributor profiles
Jonathan S. Katz [Fri, 6 Nov 2020 14:38:06 +0000 (09:38 -0500)]
Handle empty company URLs in contributor profiles

If a URL is provider, continue to provide a link, otherwise just
render the company name.

Started by Daniel Gustafsson <daniel@yesql.se>, finished by me.

4 years agoUpdate EDB logo.
Dave Page [Thu, 5 Nov 2020 09:20:21 +0000 (09:20 +0000)]
Update EDB logo.

4 years agoInclude sudo step in redhat/fedora/centos download instructions
Magnus Hagander [Tue, 3 Nov 2020 10:01:03 +0000 (11:01 +0100)]
Include sudo step in redhat/fedora/centos download instructions

We included sudo for debian/ubuntu but not for redhat, which made the
instructions inconsistent.

Discussion: https://postgr.es/m/CABUevExvb7iVNQYvoRRc1uC96adqvKqoQmDPwg2KU6zcqfDQvQ@mail.gmail.com

4 years agoUpdate CoC membership page
Jonathan S. Katz [Mon, 2 Nov 2020 19:19:15 +0000 (14:19 -0500)]
Update CoC membership page

This includes the latest membership changes.

4 years agoUpdate the number of core team members on core team page
Jonathan S. Katz [Mon, 2 Nov 2020 19:17:16 +0000 (14:17 -0500)]
Update the number of core team members on core team page

This number is now seven, instead of five.

4 years agoStagger outgoing news emails
Magnus Hagander [Thu, 29 Oct 2020 14:28:06 +0000 (15:28 +0100)]
Stagger outgoing news emails

Set to a maximum of one outgoing email per 30 minutes

4 years agoAdd support for staggering outgoing emails
Magnus Hagander [Thu, 29 Oct 2020 14:27:56 +0000 (15:27 +0100)]
Add support for staggering outgoing emails

Sent email can be assigned a "stagger type", for which he system will
maintain a "last sent" information. When the email is sent, it will be
delayed to be at least "stagger" time after the last one sent of the
same type. If no email of this type has been sent before, the email is
of course sent immediately.

4 years agoRemove unused function
Magnus Hagander [Thu, 29 Oct 2020 10:55:58 +0000 (11:55 +0100)]
Remove unused function

4 years agoAutomatically populate list of coc reports and languages
Magnus Hagander [Tue, 27 Oct 2020 11:10:32 +0000 (12:10 +0100)]
Automatically populate list of coc reports and languages

Use the new filter to list templates and auto-generate the set of links.

4 years agoAdd a filter for getting language name from code
Magnus Hagander [Tue, 27 Oct 2020 12:22:09 +0000 (13:22 +0100)]
Add a filter for getting language name from code

This adds a requirement on the Babel module in python.

4 years agoAdd filter to list all templates in a directory
Magnus Hagander [Tue, 27 Oct 2020 11:09:55 +0000 (12:09 +0100)]
Add filter to list all templates in a directory

4 years agoRestructure coc templates
Magnus Hagander [Tue, 27 Oct 2020 09:49:47 +0000 (10:49 +0100)]
Restructure coc templates

This creates a base templatefor the coc pages that will include the coc
itself and translations, the committee and the annual reports.

This removes the include files with _ in the name in the coc section,
which would previously both be directly accessible as pages and
part of the sitemap. The pages/ directory in the templates should really
only contain directly accessible pages.

4 years agoRemove unused variable
Magnus Hagander [Tue, 27 Oct 2020 09:34:45 +0000 (10:34 +0100)]
Remove unused variable

4 years agoFix sitemap generation for static pages
Magnus Hagander [Mon, 26 Oct 2020 20:53:31 +0000 (21:53 +0100)]
Fix sitemap generation for static pages

In commit 7f8a0a56dd1fb5dedb5c04a872ce940ae7c891b4 we replaced the way
the "core" app is loaded, and this broke the generation of sitemap
entries for it. Oops.

4 years agoRevert "Temporarily remove links to EDB interactive installers"
Jonathan S. Katz [Fri, 23 Oct 2020 21:50:49 +0000 (17:50 -0400)]
Revert "Temporarily remove links to EDB interactive installers"

4 years agoTemporarily remove links to EDB interactive installers
Jonathan S. Katz [Fri, 23 Oct 2020 20:38:55 +0000 (16:38 -0400)]
Temporarily remove links to EDB interactive installers

This is due to an expired certificate. Once the certificate
is updated, the links will be reintroduced.

4 years agoAdd static og: tag to the index page
Magnus Hagander [Thu, 22 Oct 2020 12:30:10 +0000 (14:30 +0200)]
Add static og: tag to the index page

4 years agoAdd opengraph tags to some pages
Magnus Hagander [Thu, 22 Oct 2020 12:08:29 +0000 (14:08 +0200)]
Add opengraph tags to some pages

Add template support for opengraph tags (which will enable things like
icons and preview on posts to twitter and facebook and other places) to
both base pages and documentation pages. Use this to actually add the
tags to docs pages (only v10+ will get text previews, but all should get
the titles and image) and news (only news from the project will get an
image, all get both title and text)

4 years agoReduce number of queries to render a docs page
Magnus Hagander [Wed, 21 Oct 2020 18:57:47 +0000 (20:57 +0200)]
Reduce number of queries to render a docs page

One query for each version, supported or unsupported, now replaced with
a single query to get all of them.

4 years agoFix a stray typo
Jonathan S. Katz [Mon, 19 Oct 2020 14:58:31 +0000 (10:58 -0400)]
Fix a stray typo

Somehow, even after reading through the patch three times,
the committer still missed it.

4 years agoAdd "Learn PostgreSQL" to books
Jonathan S. Katz [Mon, 19 Oct 2020 14:56:01 +0000 (10:56 -0400)]
Add "Learn PostgreSQL" to books

4 years agoAllow for direct URLs to abbreviated legacy PostgreSQL releases
Jonathan S. Katz [Mon, 12 Oct 2020 18:00:09 +0000 (14:00 -0400)]
Allow for direct URLs to abbreviated legacy PostgreSQL releases

For example, while a link to "/docs/release/9.1.0/" would work,
going to "/docs/release/9.1/" would not; in this case, it would
show the release details for "9.0.1". While the probability of
someone modifying the links to see the different release notes
is low, we would still need to take action on what is an
incorrect link.

Instead of returning a 404, this transposes the major/minor
version to point at the canonical version number and render the
expected page. This is set up to work for the 6, 7, 8, 9 series.

Reported by: Nikolay Samokhvalov <samokhvalov@gmail.com>

4 years agoAdd additional updates to CoCC bios
Jonathan S. Katz [Thu, 8 Oct 2020 11:54:19 +0000 (07:54 -0400)]
Add additional updates to CoCC bios

In this case, I had forgotten to update this bio in the first
pass. I'll ponder that perhaps we should put something in the
database to manage this in the future.

4 years agoFix regression that prevented accessing new organisation page
Jonathan S. Katz [Wed, 7 Oct 2020 21:59:22 +0000 (17:59 -0400)]
Fix regression that prevented accessing new organisation page

The addition of the fieldsets did not account for the fields
themselves from being removed from the new organisation form.
The OrganisationForm now removes the appropriate fieldset when
the fields are not available in this form.

4 years agoUpdate to a bio on the CoC committee page
Jonathan S. Katz [Wed, 7 Oct 2020 21:47:09 +0000 (17:47 -0400)]
Update to a bio on the CoC committee page

4 years agoAdd fieldsets to the organisation form
Magnus Hagander [Wed, 7 Oct 2020 15:45:11 +0000 (17:45 +0200)]
Add fieldsets to the organisation form

4 years agoAdd support for fieldsets to forms
Magnus Hagander [Wed, 7 Oct 2020 15:44:44 +0000 (17:44 +0200)]
Add support for fieldsets to forms

This makes it possible to define a fieldset which has a legend and a
description, to split up a large form into multiple visual components.

4 years agoMove form field details into a separate include file
Magnus Hagander [Wed, 7 Oct 2020 15:08:58 +0000 (17:08 +0200)]
Move form field details into a separate include file

4 years agoUpdate the CoCC page change date
Jonathan S. Katz [Wed, 7 Oct 2020 16:35:27 +0000 (12:35 -0400)]
Update the CoCC page change date

The previous commit forgot to do this. Also changed italicized
text to use "<em>" instead of "<i>", as "<i>" is deprecated
for italics.

4 years agoUpdate Code of Conduct Commmittee Page
Jonathan S. Katz [Wed, 7 Oct 2020 16:33:15 +0000 (12:33 -0400)]
Update Code of Conduct Commmittee Page

This is changed to reflect the committee for the 2020-2021 term.

This also changes the "Past Members" structure to list out
names and which terms they served.

4 years agoMake the add manager field more clear in the organisation form
Magnus Hagander [Wed, 7 Oct 2020 10:23:50 +0000 (12:23 +0200)]
Make the add manager field more clear in the organisation form

Make it clear that one should enter the email address, not username, to
add a manager, and that it should be an existing account.

4 years agoAdditional date translations for the PG13 presskits
Jonathan S. Katz [Sat, 3 Oct 2020 01:10:15 +0000 (21:10 -0400)]
Additional date translations for the PG13 presskits

These include:

- French
- Portuguese
- Polish
- Spanish