Commit Graph

1748 Commits

Author SHA1 Message Date
4f1bf70ea0 Remove unused imports 2020-07-13 14:53:07 +02:00
6464c68d6a Clean up javascript indentation
Remove tabs from indentation, which was in about half the files, and
make everything 4-space indentation, which is what most of the rest
used.
2020-07-12 14:09:25 +02:00
af78101784 Remove tabs from CSS indentation
We seem to still have sometimes 2 and sometimes 4 character indentation,
but for now at least get rid of the tabs.
2020-07-12 14:08:01 +02:00
2a78f5ac8a initdb -> --initdb on newer distros. Per report from Geoffrey Gordon Ashbrook 2020-07-09 16:58:10 +01:00
6b61af92f7 Move all the non-Yum event handler setup into one shared script, per discussion. 2020-07-09 12:03:28 +01:00
b0c19acf47 Download pages overhaul:
- Don't use inline event handlers
- Simplify some of the wording
- Replace the package download list with nice buttons

Design by me & Jonathan, code by me, review by Jonathan and others.
2020-07-07 16:52:25 +01:00
e850a9bf3e Show community account last login and count info on admin page
The collection facility was added in
[200~9e70a4e0c32f8db0178f05dac4c1fca7b317e7c5, but no way was added to
view it. To make it a  bit more useful, add a static set of info on the
user edit page in /admin/ that shows the last login and number of logins
per site.
2020-07-07 12:25:39 +02:00
e9c84c668f Fix query for tracking number of community auth logins
Embarassing thinko would cap the number of logins at 2...
2020-07-07 12:25:39 +02:00
0f4ae761e3 Remove the source mapping URL for popper.min.js to prevent cluttering dev tools with warnings that it can't be found. 2020-07-07 11:09:45 +01:00
7fade4d81a Ignore .DS_Store files 2020-07-06 11:54:46 +01:00
5c838c57ea Fix up some incorrect imports 2020-07-04 15:52:36 +02:00
fee3746ea0 Make described checkboxes a lot more clear
Instead of a weirdly located "hover over the checkbox to get a
description" message, put the actual description underneath the
checkboxes. This removes the need for javascript for it, and make the
description a lot more readily available.

This applies only to news tags for now, since that's the only use of
described checkboxes, but hopefully it will make those more clear to
people submitting.

In passing, fix how help_text for multi-checkbox field is shown -- it
was previously shown almost as part of the field name itself, making it
very hard to make out. Now make it look like all other form field help
texts.
2020-07-04 14:54:06 +02:00
8de3732690 Move contents of forms into include file
This way we can re-use the basic form code across more pages.
2020-07-04 14:53:54 +02:00
90af02cd89 Fix typo in redirect_to help text
Interestingly enough, this showed up because the migration was out of
sync. Normally this means the migration has not been updated, but in
this case it appears the migration is correct and the actual model is
incorrect. Yet both the model and the migraiton were introduced in
commit e2120f0a.
2020-07-03 20:24:33 +02:00
7ee12fdcd8 Set a default DATE_FORMAT
We already set DATETIME_FORMAT, but it makes sense to also set
DATE_FORMAT. In all our frontend templates we were already using an
explicit format, but this will help the /admin/ side.
2020-07-03 18:05:54 +02:00
59793b0ca7 Fix message preview in mailqueue model
UTF8 encoding issues since the python3 migration...
2020-07-03 18:05:47 +02:00
c1a5cf4c27 Fix link to rpmchart for new yum website layout 2020-07-03 18:02:49 +02:00
7f8a0a56dd Load signal handlers from an app instead of urllist
This is the place to load them to make sure they always load. This means
we can also now remove a hardcoded special varnish purging in the CVE
crawler script, because all saves including those from cron jobs will
now fire the signals and thus the automatic varnish purges.
2020-07-03 17:57:25 +02:00
95e4ef533d Add CSP for GTM. 2020-07-02 16:26:08 +01:00
36277b95a7 Use Google Tag Manager for integration with Google Analytics and honour DNT.
Per discussion and review on pgsql-www.
2020-07-02 15:03:19 +01:00
66f96bb112 Update link for the new zypp website layout 2020-07-01 11:37:20 +01:00
64934c981b Update SLES support list 2020-07-01 11:36:08 +01:00
01077e833a PostgreSQL 13 Beta 2 release 2020-06-24 22:50:06 -04:00
9c73078893 Update Fedora info 2020-06-15 09:59:24 +01:00
83263739ff Fix command ordering per Devrim. 2020-06-15 09:56:30 +01:00
1dc0f560a9 Overhaul the Redhat, Ubuntu and Debian installation instructions.
* Merge all commands into a single text area for ease of copy/paste.
* Add a Copy Script button to each text area to copy the script (without comments and blanks) to the clipboard.
* Centralise the copy/paste code so it can be used elsewhere.
* Always install the database server.

Based on reviews/discussion with Magnus, Jonathan, Daniel and Sehrope.
2020-06-10 14:08:04 +01:00
3330164744 Remove links to pgfoundry from pgweb
This primarily affected several of the older press kits.
2020-06-10 07:39:20 -04:00
8be7aa7044 List installers as EDB products rather than EnterpriseDB. 2020-06-08 10:22:20 +01:00
7277680c3e s/RedHat/Red Hat 2020-05-26 21:56:32 +01:00
ce0466401c s/RC/Beta/ on the Beta page
Even though the hrefs were correct, the text was not.
2020-05-21 08:08:22 -04:00
e1d9ced09c PostgreSQL 13 Beta 1 release 2020-05-21 08:06:37 -04:00
5a7abf05d6 RedHat have started requiring both a html and a json to display CVEs
And dumb as it is they return "200 OK" on the CVE *page* even if the CVE
doesn't exist. So we have to poll both the page and the API call in
order to figure out if it's actually there.
2020-05-14 22:06:04 +02:00
91415caae2 Fixed a URL to the news template
Somehow, the ID was forgotten by this committer.
2020-05-14 08:59:35 -04:00
0682f27b11 2020-05-14 cumulative update release 2020-05-14 08:56:21 -04:00
93716f2a81 Update doc styles for catalog tables
As part of the ongoing effort to make the documentation
both easier to read visually and more friendly for the
PDF building, there have been improvements to the layout
of the reference tables.

This set of changes focuses on the catalog tables that
detail the information in the different PostgreSQL catalogs.
There is also a small adjustment for the function tables, as
one of the CSS classes was renamed in the SGML source.

Author: Tom Lane <tgl@sss.pgh.pa.us>
2020-05-13 22:23:46 -04:00
de449f2169 Remove mentions of unsupported version
PostgreSQL 9.4 is no longer supported, so we shouldn't list it as an
option on the download pages for the interactive installers.
2020-04-30 17:18:20 +02:00
1c37e1be47 Add documentation styles for updated function & operator tables
The new documentation contains a new look & feel for how functions
and operator information are displayed, but this requires some
adjustments to the stylesheet.

This also removes from of the "!important" tags that are used
in top-level parts of the code, as we do not want those to cascade
down to lower layers of the stylesheets.
2020-04-30 00:09:25 -04:00
e2120f0a80 Introduce documentation redirects for doc pages that are renamed
The web documentation used to suffer from a problem that if a
documentation page were renamed in a newer version, any references
pointing to said documentation would be lost. For example, the feature
known as "Default Roles" was renamed to "Privileged Roles" but caused
a change in the URL.

This patch introduces the ability to create a "DocPageRedirect" by
specifying the previous name of the documentation page (e.g.
"default-roles.html") and the new name (e.g. "privileged-roles.html")
such that the continuity is preserved between versions.
2020-04-24 19:33:16 -04:00
2239cc1f2c Update Debian and Ubuntu versions
- Debian: Add bullseye and sid
- Ubuntu: Add focal (20.04)
- Add arm64 architecture to each package page
- Modify examples to use PostgreSQL 12

Author: Christoph Berg <myon@debian.org>
2020-04-24 12:12:46 -04:00
502447d1ad Updates to backend flowchart
Several languages and URL updates to various information in the
backend flowchart.

Author: Bruce Momjian <bruce@momjian.us>
2020-04-23 13:31:05 -04:00
a90cbd217e Set headers for no auto response on most emails
Most of our auto-generated emails should not ask for auto replies (like
out of office messages or in particular, "held for moderation" notices
from our own list server), so set this header by default, and also the
header indicating if it's an auto submitted/auto replied message.

Specifically allow auto replies on moderation notices, since that's a
case where it might be really interesting for the moderator to see for
example an out of office message. At least for now that seems like a
good idea.
2020-04-20 10:49:33 +02:00
9c69eed6e9 Fix spelling error 2020-04-20 10:49:33 +02:00
417bb6e561 Set indenting and alignment on new function listing tables
This helps to ensure readability of the new function table listings
while working around some of the generated code from DocBook

Authors: Tom Lane <tgl@sss.pgh.pa.us> and myself
2020-04-18 14:48:18 -04:00
8cedd14921 Fix a few typos on the Related Projects page 2020-04-15 12:48:59 -04:00
e50eb48ec5 Add HTML attribute selectors for table cell alignment
As the align/valign attributets are deprecated in HTML 5 and as our
documentation generation scripts still spit these out, these selectors
will ensure compatibility, and also fix present alignment issues.
2020-04-14 18:08:27 -04:00
0153e79283 Respect valign="middle" property in table headers
As part of ongoing changes to the structure of tables in the
documentation[1], the HTML property valign is being set to middle
in the table headers, but was not being respected in the pgweb CSS
rules.

This adjusts the table headers to respect the valign property, which
in testing works with both the latest documentation as well as previous
versions (and given most, if not all, table headers to date are not
multi-lined).

[1] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=e894c61836e4b967f7ec65358fdaed2ba86ed238
2020-04-14 16:43:06 -04:00
9ea8818455 Add "Related Projects" section to "Developers"
This provides information about other projects that people can
contribute to outside of the core PostgreSQL software. Includes
descriptions of each project, how they are used, and how one can
get involved.

Authors: Andreas 'ads' Scherbaum <ads@pgug.de>, myself
2020-04-10 09:11:01 -04:00
b405302d97 Avoid returning HttpServerError for things not server errors
With the new django, alerts are raised for everything with status 500,
not juse exceptions. This put a light on a number of places where we
were returning 500 server error code for things that are not actually
server errors. Some should be a regular 200 ok with an error message,
and others should be a permissions error.
2020-04-04 14:43:27 +02:00
454ea7a7be Fix spacing problem pep8 complains about 2020-04-04 14:43:13 +02:00
c53d88980a Update requirements versions
Update to django 2.2. Also update a number of older dependencies that
were actually already incorrect before the djago upgrade, and the
deployed versions were newer, but we forgot to update the requirements
file.
2020-04-03 19:08:37 +02:00