pgweb.git
6 years agoLogo adjustments and updates to recognized PostgreSQL sponsors.
Jonathan S. Katz [Sat, 30 Mar 2019 16:22:53 +0000 (12:22 -0400)]
Logo adjustments and updates to recognized PostgreSQL sponsors.

6 years agoAdd more administrative features for managing sponsors.
Jonathan S. Katz [Sat, 30 Mar 2019 15:51:14 +0000 (11:51 -0400)]
Add more administrative features for managing sponsors.

Specifically, being able to search by sponsor, filter by sponsor type, and
make it easier to see some key information.

6 years agoAdd logos based on Sponsorship committee selection.
Jonathan S. Katz [Sat, 30 Mar 2019 15:44:34 +0000 (11:44 -0400)]
Add logos based on Sponsorship committee selection.

Also included some updated logos of various company to either bring them
inline with their current brands, or provide a higher-res image of the
logo.

6 years agoAdd contact information for the CoC committee on the Contact page.
Jonathan S. Katz [Sat, 30 Mar 2019 15:07:25 +0000 (11:07 -0400)]
Add contact information for the CoC committee on the Contact page.

6 years agoUse consistent indenting throughout the CSS.
Jonathan S. Katz [Mon, 25 Mar 2019 13:26:37 +0000 (09:26 -0400)]
Use consistent indenting throughout the CSS.

The main.css file had inconsistent whitespacing throughout, including a
mixture of tabs / spaces as well as different intervals of 2 / 4.

This patch brings the formatting to use 2 spaces at a time for each indent,
which is consistent with generally accepted best practices.

6 years agoInput fields that contain checkboxes now have automatic width. (CSS)
Sarah Conway [Sat, 23 Mar 2019 16:29:28 +0000 (09:29 -0700)]
Input fields that contain checkboxes now have automatic width. (CSS)

6 years agoProvide a 404 error for nonexistent minor versions of release notes.
Jonathan S. Katz [Thu, 21 Mar 2019 12:56:29 +0000 (08:56 -0400)]
Provide a 404 error for nonexistent minor versions of release notes.

6 years agoEnable redirects to older release notes from the development doc builds.
Jonathan S. Katz [Wed, 20 Mar 2019 20:58:13 +0000 (16:58 -0400)]
Enable redirects to older release notes from the development doc builds.

Prior to this, if you referenced a version of the release notes that was outside
of the current development build (e.g. 9.6) the URL would 404.

Reported by Andres Freund.

6 years agoAdded pycodestyle to requirements.txt and pre-commit hook.
Jonathan S. Katz [Sun, 10 Mar 2019 18:40:05 +0000 (11:40 -0700)]
Added pycodestyle to requirements.txt and pre-commit hook.

6 years agoStyle fixups to pass pep checks
Magnus Hagander [Sun, 10 Mar 2019 15:24:01 +0000 (08:24 -0700)]
Style fixups to pass pep checks

This fixes the style issues introduced in the patches for the new
release notes styles. Clearly a broken verification hook somewhere.

6 years agoFurther fixes for bad urls in docs redirect
Magnus Hagander [Sun, 10 Mar 2019 15:22:07 +0000 (08:22 -0700)]
Further fixes for bad urls in docs redirect

6 years agoExplicitly use python3 in githook validation
Magnus Hagander [Sun, 24 Feb 2019 11:21:25 +0000 (12:21 +0100)]
Explicitly use python3 in githook validation

6 years agoEnsure the new "release-prior" page can be accessed.
Jonathan S. Katz [Sun, 10 Mar 2019 06:52:27 +0000 (22:52 -0800)]
Ensure the new "release-prior" page can be accessed.

This fixes a bug where the "release-prior" page was being evaluated as
a legacy release notes page in the supported docs.

6 years agoEnsure release notes from older version still load without 404 errors.
Jonathan S. Katz [Wed, 13 Feb 2019 20:22:49 +0000 (15:22 -0500)]
Ensure release notes from older version still load without 404 errors.

An upcoming change in PostgreSQL keeps only release notes in their
current versions. So e.g., PostgreSQL 11 only has the release notes
for 11.0, 11.1, 11.2 etc.

Thus, for PostgreSQL 9.4 on up, any URLs such as /docs/10/release-9-6-8.html
would return a 404. Additonal, URLs with /current/ and /devel/ would break
as well.

This patch prevents these 404s from occuring by redirecting users accessing
release notes in the 9.4 and above documentation to the older versions
of the release notes by redirecting them to the notes in the specific
version. So in the above example, a user would be redirect to
/docs/9.6/release-9-6-8.html

As we do not have documentation on the website past 7.2, any release
notes from an older version are redirected to the release notes tree
in 7.2

6 years agoCreate Release Notes archive in the Documentation section.
Jonathan S. Katz [Tue, 12 Feb 2019 19:50:48 +0000 (20:50 +0100)]
Create Release Notes archive in the Documentation section.

This creates a consolidated area to reference all of the notes from
previous releases of PostgreSQL, as current releases only keep the
the notes for that specific major release of PostgreSQL.

6 years agoMake calls-to-action on donations page clearer.
Jonathan S. Katz [Thu, 28 Feb 2019 19:14:52 +0000 (14:14 -0500)]
Make calls-to-action on donations page clearer.

6 years agoSmall language tweaks to the Donate to PostgreSQL page.
Jonathan S. Katz [Thu, 28 Feb 2019 19:11:57 +0000 (14:11 -0500)]
Small language tweaks to the Donate to PostgreSQL page.

6 years agoRe-enable donation form for the SPI account.
Jonathan S. Katz [Thu, 28 Feb 2019 19:09:58 +0000 (14:09 -0500)]
Re-enable donation form for the SPI account.

6 years agoLoad docs using COPY instead of INSERT
Magnus Hagander [Fri, 22 Feb 2019 15:38:19 +0000 (16:38 +0100)]
Load docs using COPY instead of INSERT

Issuing individual INSERTs for each line in the docs works decently when
local, but it slow when loading across The Tubes Of The Internet.
Switching to using COPY takes the load time from the buildfarm animal
from just over 2 minutes to about 6-7 seconds.

6 years agoMove project policies to the website.
Dave Page [Mon, 18 Feb 2019 10:36:53 +0000 (10:36 +0000)]
Move project policies to the website.

Changes by myself and Jonathan Katz
Review by Jonathan Katz and Daniel Gustafsson

6 years agoFixed one missing version bump.
Jonathan S. Katz [Thu, 14 Feb 2019 13:26:56 +0000 (08:26 -0500)]
Fixed one missing version bump.

6 years ago2019-02-14 Cumulative Update Release.
Jonathan S. Katz [Thu, 14 Feb 2019 12:26:46 +0000 (07:26 -0500)]
2019-02-14 Cumulative Update Release.

6 years agoApply navbar fix to the documentation pages.
Jonathan S. Katz [Tue, 12 Feb 2019 21:22:52 +0000 (16:22 -0500)]
Apply navbar fix to the documentation pages.

For some reason, I missed this in my original patch.

6 years agoUpdate migrations for py3
Magnus Hagander [Sun, 10 Feb 2019 13:46:53 +0000 (14:46 +0100)]
Update migrations for py3

A lot of strings in the migrations needed a change from b' to ' to work
after the migration to py3, but this was forgotten in the big patch.

No actual changes included in this patch.
A lot of strings in the migrations needed a change from b' to ' to work
after the migration to py3, but this was forgotten in the big patch.

6 years agoMake it possible to block OAuth signin to accounts
Magnus Hagander [Sun, 10 Feb 2019 13:28:47 +0000 (14:28 +0100)]
Make it possible to  block OAuth signin to accounts

This adds a checkbox to each user account letting the user block the use
of OAuth to this account, forcing the use of internal authentication.

6 years agoTell folks how they can add/update contributors.
Dave Page [Wed, 6 Feb 2019 11:49:36 +0000 (11:49 +0000)]
Tell folks how they can add/update contributors.

6 years agoPin the navigation bar to the top of the page.
Jonathan S. Katz [Sun, 3 Feb 2019 14:33:00 +0000 (09:33 -0500)]
Pin the navigation bar to the top of the page.

From user feedback, the scrolling navigation bar would cause problems with
readability, especially in larger font views. This keeps the navigation bar
pinned to the top, until we can find a way to more easily handle this.

6 years agoAvoid redirects for mailinglist links
Daniel Gustafsson [Thu, 31 Jan 2019 12:42:25 +0000 (13:42 +0100)]
Avoid redirects for mailinglist links

The /community/lists/ URL is redirecting to /list/ since the new
archive and list code. Rewrite the final links to avoid the redirect.
Also remove the #developer anchor since the new list page doesn't
have anchors.

Reviewed-by: Magnus Hagander
6 years agoMake docs comment suggestions do a redirect
Magnus Hagander [Mon, 28 Jan 2019 13:06:29 +0000 (14:06 +0100)]
Make docs comment suggestions do a redirect

This is the same as b2ed4946551c098079d1a156b222d4ebf5c85cba did for bug
reports.

This changes the regexps for all the doc comment suggestions forms to be
a little bit more specific than before.

6 years agoFix docs comment form for version = "current"
Magnus Hagander [Mon, 28 Jan 2019 13:00:29 +0000 (14:00 +0100)]
Fix docs comment form for version = "current"

Normally not reachable with "current", only with explicit version,
but as proven by some live crashes, there is some way to. So make
sure we look up the current version instead of crashing.

6 years agoBring requirements.txt up-to-date for Python 3 libs.
Jonathan S. Katz [Sat, 26 Jan 2019 19:21:28 +0000 (14:21 -0500)]
Bring requirements.txt up-to-date for Python 3 libs.

Hopefully makes it easier for people to get up and running.

6 years agoUpdate docsload to use tidylib instead of tidy
Magnus Hagander [Sat, 26 Jan 2019 16:21:37 +0000 (17:21 +0100)]
Update docsload to use tidylib instead of tidy

The old library is not supported on py3. This is the same migration
we've done for other projects like pgarchives.

6 years agoAnother encoding fix for yum
Magnus Hagander [Sat, 26 Jan 2019 15:46:40 +0000 (16:46 +0100)]
Another encoding fix for yum

6 years agoFix datatype and encoding for yum spider
Magnus Hagander [Sat, 26 Jan 2019 15:45:41 +0000 (16:45 +0100)]
Fix datatype and encoding for yum spider

6 years agoFix integer division in search.
Jonathan S. Katz [Sat, 26 Jan 2019 15:42:43 +0000 (10:42 -0500)]
Fix integer division in search.

Caused error in pagination on site search.

6 years agoRe-instate previously hardcoded hostname in spiders
Magnus Hagander [Sat, 26 Jan 2019 15:40:55 +0000 (16:40 +0100)]
Re-instate previously hardcoded hostname in spiders

6 years agoFix sorting in file browser
Magnus Hagander [Sat, 26 Jan 2019 15:23:10 +0000 (16:23 +0100)]
Fix sorting in file browser

6 years agoRe-implement modification notifications in simple_form
Magnus Hagander [Thu, 24 Jan 2019 12:07:21 +0000 (13:07 +0100)]
Re-implement modification notifications in simple_form

The way signals are sent for many2many apparently changed completely
between the python2 and python3 versions of the same Django version,
which broke the way we did this before. And it was always a bit of a
hack...

Instead, reimplement notifications in the simple_form handler. This now
also consolidates regular field notificationss and many2many
notifications in a much cleaner way.

This will, however, *only* have an effect on changes made through
simple_form. Luckily that's the most common way we handle forms, with
the exception being /admin/. So leave the old code in place to handle
the changes through /admin/, as well as the deletion of objects.

In the end the only thing lost is the ability to get m2m differences
when an admin makes changes, and that's the least important of all
notification. And as a bonus, the regular change notifications and in
particular "new item" notifications look a lot nicer.

6 years agoUpdate search crawler for python3
Magnus Hagander [Wed, 23 Jan 2019 21:14:56 +0000 (22:14 +0100)]
Update search crawler for python3

This includes the switch to requests, but also a bunch of other changes.

While at it, fix it so we can do proper https validation.

6 years agoFix integer division
Magnus Hagander [Mon, 21 Jan 2019 11:23:37 +0000 (12:23 +0100)]
Fix integer division

6 years agoUpdate for new module/namespace for urllib
Magnus Hagander [Mon, 21 Jan 2019 11:23:23 +0000 (12:23 +0100)]
Update for new module/namespace for urllib

6 years agoSwitch recaptcha, search, spiders and varnish to requests
Magnus Hagander [Mon, 21 Jan 2019 11:21:46 +0000 (12:21 +0100)]
Switch recaptcha, search, spiders and varnish to requests

Easiser to switch to the requests package than to figure out how to deal
with some of the encoding changes manually. And as a bonus, it's much
nicer to work with the requests package for the future.

6 years agoFix changed names of imports
Magnus Hagander [Mon, 21 Jan 2019 09:52:51 +0000 (10:52 +0100)]
Fix changed names of imports

6 years agoRemove trailing windows newline
Magnus Hagander [Mon, 21 Jan 2019 09:51:12 +0000 (10:51 +0100)]
Remove trailing windows newline

6 years agoMore generic changes from 2to3
Magnus Hagander [Mon, 21 Jan 2019 09:42:05 +0000 (10:42 +0100)]
More generic changes from 2to3

6 years agoAttempt to fix localhtmlvalidate
Magnus Hagander [Sun, 20 Jan 2019 10:10:14 +0000 (11:10 +0100)]
Attempt to fix localhtmlvalidate

It was already broken and didn't work properly, but update to py3 and at
least make it run. More changes are necessary to actually make it happy
again.

6 years agoRemove indexer for old archives
Magnus Hagander [Sat, 19 Jan 2019 19:23:16 +0000 (20:23 +0100)]
Remove indexer for old archives

We have been using the new archives for many years now, so remove this
instead of trying to port it to python3.

6 years agoUpdate script shebangs to use python3
Magnus Hagander [Sat, 19 Jan 2019 19:17:36 +0000 (20:17 +0100)]
Update script shebangs to use python3

6 years agoFix unicode for hashlib operations
Magnus Hagander [Sat, 19 Jan 2019 19:12:52 +0000 (20:12 +0100)]
Fix unicode for hashlib operations

6 years agoUpdate print and input syntax for python 3
Magnus Hagander [Sat, 19 Jan 2019 19:09:24 +0000 (20:09 +0100)]
Update print and input syntax for python 3

6 years agoFix base64 encodings
Magnus Hagander [Sat, 19 Jan 2019 19:03:33 +0000 (20:03 +0100)]
Fix base64 encodings

6 years agoImport latest auth.py from pgeu as sample
Magnus Hagander [Sat, 19 Jan 2019 19:00:35 +0000 (20:00 +0100)]
Import latest auth.py from pgeu as sample

6 years agoGeneric unicode updates
Magnus Hagander [Sat, 19 Jan 2019 18:48:47 +0000 (19:48 +0100)]
Generic unicode updates

6 years agoUpdate syntax for relative imports
Magnus Hagander [Sat, 19 Jan 2019 18:38:00 +0000 (19:38 +0100)]
Update syntax for relative imports

6 years agoUpdate to new style exception catching
Magnus Hagander [Sat, 19 Jan 2019 18:34:14 +0000 (19:34 +0100)]
Update to new style exception catching

6 years agoAdded "PostgreSQL for DBA volume 1..." to "Books"
Jonathan S. Katz [Thu, 24 Jan 2019 17:09:02 +0000 (12:09 -0500)]
Added "PostgreSQL for DBA volume 1..." to "Books"

6 years agoFix accidentally reversed check
Magnus Hagander [Thu, 17 Jan 2019 21:20:37 +0000 (22:20 +0100)]
Fix accidentally reversed check

6 years agoFix silly typo
Magnus Hagander [Thu, 17 Jan 2019 20:30:01 +0000 (21:30 +0100)]
Fix silly typo

6 years agoAdd a githook and a config file to run pep8 pre-commit
Magnus Hagander [Thu, 17 Jan 2019 20:26:41 +0000 (21:26 +0100)]
Add a githook and a config file to run pep8 pre-commit

6 years agoFix deprecated comparison structs
Magnus Hagander [Thu, 17 Jan 2019 20:19:57 +0000 (21:19 +0100)]
Fix deprecated comparison structs

6 years agoRemove multi-statement lines, per pep8
Magnus Hagander [Thu, 17 Jan 2019 19:52:17 +0000 (20:52 +0100)]
Remove multi-statement lines, per pep8

6 years agoFix import order, per pep8
Magnus Hagander [Thu, 17 Jan 2019 19:49:33 +0000 (20:49 +0100)]
Fix import order, per pep8

6 years agoFix whitespace and indentation, per pep8
Magnus Hagander [Thu, 17 Jan 2019 19:47:43 +0000 (20:47 +0100)]
Fix whitespace and indentation, per pep8

6 years agoTabs, meet your new overlords: spaces
Magnus Hagander [Thu, 17 Jan 2019 14:30:25 +0000 (15:30 +0100)]
Tabs, meet your new overlords: spaces

In a quest to reach pep8, use spaces to indent rather than tabs.

6 years agoRedirect the user upon successful bug report submission
Magnus Hagander [Thu, 17 Jan 2019 09:27:51 +0000 (10:27 +0100)]
Redirect the user upon successful bug report submission

Previously the result page was rendered directly and if the user hit the
refresh button the bug woulb be duplicated. Instead redirect to a
results page (with the bug number) which can be freely refreshed.

6 years agoCreate and track a mapping between bug ids and messageids
Magnus Hagander [Thu, 17 Jan 2019 09:24:55 +0000 (10:24 +0100)]
Create and track a mapping between bug ids and messageids

Not used yet (though a prototype redirect view is present) since we need
to populate it with data from the past, but with this we start
collecting the mapping for future bugs.

6 years agoSeems GA also needs data: urls sometimes
Magnus Hagander [Thu, 17 Jan 2019 09:08:33 +0000 (10:08 +0100)]
Seems GA also needs data: urls sometimes

6 years agoEnsure font size for <h5> blocks are smaller than <h4>
Jonathan S. Katz [Fri, 11 Jan 2019 21:16:11 +0000 (16:16 -0500)]
Ensure font size for <h5> blocks are smaller than <h4>

<h5> was not explicitly set prior.

6 years agoAdd further indentation to variable lists to distinguish groups.
Jonathan S. Katz [Wed, 9 Jan 2019 15:31:46 +0000 (10:31 -0500)]
Add further indentation to variable lists to distinguish groups.

This was an regression introduced by the new styles that affects
readability of nested variables lists (e.g. on the message protocol
page). This brings the look more in line with the previous documentation
styles and should help with readability.

6 years agoRetain documentation version when navigating paginated links.
Jonathan S. Katz [Sun, 6 Jan 2019 21:32:02 +0000 (16:32 -0500)]
Retain documentation version when navigating paginated links.

The old code always raised an exception as the variable being checked
was not defined at that point. Now, it checks the variable that one
expects to be set.

6 years agoRemove inline script from debian/ubuntu download page
Magnus Hagander [Sat, 5 Jan 2019 12:15:58 +0000 (13:15 +0100)]
Remove inline script from debian/ubuntu download page

6 years agoRemove legacy onfocus event handler
Magnus Hagander [Thu, 3 Jan 2019 13:57:58 +0000 (14:57 +0100)]
Remove legacy onfocus event handler

This one goes back 10+ years and nobody really knows what it's for. And
it does create issues for the content security policy, so let's just get
rid of it.

6 years agoAllow framing google.com on account signup page
Magnus Hagander [Sat, 29 Dec 2018 10:48:02 +0000 (11:48 +0100)]
Allow framing google.com on account signup page

This is used for the recaptcha. Also enable this for oauth signups,
previously missed.

6 years agoAllow data: url for image and fonts
Magnus Hagander [Sat, 29 Dec 2018 10:25:43 +0000 (11:25 +0100)]
Allow data: url for image and fonts

Turns out data: is not included in "*" for images, so just add it. For
fonts, data: is used by google fonts.

6 years agoAllow google analytics to do "connect" as well
Magnus Hagander [Sat, 29 Dec 2018 10:18:05 +0000 (11:18 +0100)]
Allow google analytics to do "connect" as well

Based on CSP reports collected

6 years agoFix unicode in error message about ssh keys
Magnus Hagander [Wed, 26 Dec 2018 11:44:25 +0000 (12:44 +0100)]
Fix unicode in error message about ssh keys

Caused an exception when somebody tried to upload an SSH key where the
*key type* contains non-ascii (this would normally be things like
"ssh-rsa", and there are definitely no legit key types outside the ascii
range, but we still shouldn't crash)

6 years agoRemove inline styles from feature matrix generator.
Jonathan S. Katz [Sat, 22 Dec 2018 16:35:31 +0000 (11:35 -0500)]
Remove inline styles from feature matrix generator.

This moves the HTML code generated for the filters into the Django
template, instead of the JavaScript portion.

6 years agoDon't try to validate organisation ownership for new orgs
Magnus Hagander [Sat, 22 Dec 2018 16:06:48 +0000 (17:06 +0100)]
Don't try to validate organisation ownership for new orgs

6 years agoAllow unsafe inline style on docs
Magnus Hagander [Sat, 22 Dec 2018 15:28:42 +0000 (16:28 +0100)]
Allow unsafe inline style on docs

Our new docs build seems to put this in there, and only older docs were
tested it seems.

6 years agoAnother try at fixing google analytics vs CSP
Magnus Hagander [Sat, 22 Dec 2018 15:24:10 +0000 (16:24 +0100)]
Another try at fixing google analytics vs CSP

6 years agoAllow all of google-analytics in CSP
Magnus Hagander [Sat, 22 Dec 2018 15:22:35 +0000 (16:22 +0100)]
Allow all of google-analytics in CSP

It needs a tleast both www.google-analytics and ssl.google-analytics..

6 years agoStopgap fix for lack fo permissions check on organistions
Magnus Hagander [Sat, 22 Dec 2018 15:07:28 +0000 (16:07 +0100)]
Stopgap fix for lack fo permissions check on organistions

6 years agoEnable setting of security http headers
Magnus Hagander [Thu, 20 Dec 2018 15:50:24 +0000 (16:50 +0100)]
Enable setting of security http headers

The following security policy headers are set:

X-XSS-Protection: 1; mode=block -- always set

X-Frame-Options: DENY is set for all pages except for the documentation
  pages, primarily because pgadmin4 loads them in an iframe which would
  break.

Content-Security-Policy: <x>-src
  Is set to allow the default of self only, then allowing scripts for
  google analytics and fonts for google fonts. Images are allowed from everywhere.
  frame-ancestors 'none' is set by the same rules as X-Frame-Options

This also adds a decorator for @script_sources to have a single view
allow extra sources, and this is used for recaptcha. A generic decorator
is also made for other types of exclusions, though we don't have any at
this point.

If the setting SECURITY_POLICY_REPORT_ONLY is set to True then the policy
will be report-only and not enforced (for testing), otherwise enforcing
mode is enabled.

The setting SECURITY_POLICY_REPORT_URI sets where to send security
policy reports, if any.

6 years agoGet rid of all inline styles
Magnus Hagander [Thu, 20 Dec 2018 16:12:06 +0000 (17:12 +0100)]
Get rid of all inline styles

Some of these should be replaced with proper responsive tables for
example at some point, but this is a quick-fix.

6 years agoRemove unexpected inline stylesheet in very old presskit
Magnus Hagander [Thu, 20 Dec 2018 15:28:34 +0000 (16:28 +0100)]
Remove unexpected inline stylesheet in very old presskit

6 years agoInclude base stylesheet via link instead of style
Magnus Hagander [Thu, 20 Dec 2018 15:27:55 +0000 (16:27 +0100)]
Include base stylesheet via link instead of style

Instead of using <style> with import, set an explicit link like we do
for other stylesheets. This will make it possible to turn on a content
security policy for CSS.

6 years agoMove admin custom css over to separate css file instead of inline
Magnus Hagander [Thu, 20 Dec 2018 15:27:24 +0000 (16:27 +0100)]
Move admin custom css over to separate css file instead of inline

6 years agoMove google analytics and scrolling code into main.js
Magnus Hagander [Thu, 20 Dec 2018 14:47:24 +0000 (15:47 +0100)]
Move google analytics and scrolling code into main.js

This moves the remaining inline javascript out of the base templates

6 years agoMove scripts from admin changeform to their own JS file
Magnus Hagander [Thu, 20 Dec 2018 14:42:57 +0000 (15:42 +0100)]
Move scripts from admin changeform to their own JS file

Could be made more efficient by combining some files, but tihs is just
the /admin/ interface so not used very often.

6 years agoUse autofocus html attribute instead of javascript
Magnus Hagander [Thu, 20 Dec 2018 14:34:29 +0000 (15:34 +0100)]
Use autofocus html attribute instead of javascript

6 years agoMove javascript for forms into separate JS file
Magnus Hagander [Thu, 20 Dec 2018 14:31:25 +0000 (15:31 +0100)]
Move javascript for forms into separate JS file

In passing also clean up a few things that can be passed directly in the
template instead, and simplify things now that we have jquery all the
time.

6 years agoMove debian/ubuntu downloads javascript into main.js
Magnus Hagander [Thu, 20 Dec 2018 10:21:21 +0000 (11:21 +0100)]
Move debian/ubuntu downloads javascript into main.js

6 years agoMove featurematrix javascript into a separate script file
Magnus Hagander [Thu, 20 Dec 2018 10:15:31 +0000 (11:15 +0100)]
Move featurematrix javascript into a separate script file

6 years agoRemove unused templates
Magnus Hagander [Thu, 20 Dec 2018 15:23:30 +0000 (16:23 +0100)]
Remove unused templates

6 years agoDon't crash on an incorrectly quoted suburl parameter
Magnus Hagander [Sun, 16 Dec 2018 15:10:40 +0000 (16:10 +0100)]
Don't crash on an incorrectly quoted suburl parameter

6 years agoRemove training events
Magnus Hagander [Wed, 5 Dec 2018 15:38:38 +0000 (16:38 +0100)]
Remove training events

The way these were handled they weren't really providing any value to
users, because a lot of sessions were registered and never run etc etc,
but did cause a lot of work for our moderators.

The general feature may return later in the form of "training providers"
or similar as part of the professional services section, but for now
there is no point in maintaining this data.

6 years agoFix typos in comments
Daniel Gustafsson [Tue, 4 Dec 2018 20:51:08 +0000 (21:51 +0100)]
Fix typos in comments

Review by Stephen Frost and Jonathan S. Katz
Discussion: https://postgr.es/m/6EEB2B47-D274-4E65-83B1-2EF8C917C55F%40yesql.se

6 years agoFix user facing typos
Daniel Gustafsson [Tue, 4 Dec 2018 20:49:09 +0000 (21:49 +0100)]
Fix user facing typos

Review by Stephen Frost and Jonathan S. Katz
Discussion: https://postgr.es/m/6EEB2B47-D274-4E65-83B1-2EF8C917C55F%40yesql.se

6 years agoRemove duplicate <tbody>
Daniel Gustafsson [Tue, 4 Dec 2018 11:36:18 +0000 (12:36 +0100)]
Remove duplicate <tbody>

Commit 5f8ca8d67285000f16a9bdd0f6a99a0a41c0d418 accidentally copy
pasted one row too many when adding a new entry, and duplicated the
<tbody> tag. Fix by removing.

6 years agoAdd PostgreSQL 11 Server Side Programming Quick Start Guide book
Dave Page [Mon, 3 Dec 2018 10:00:32 +0000 (10:00 +0000)]
Add PostgreSQL 11 Server Side Programming Quick Start Guide book