Commit Graph

86 Commits

Author SHA1 Message Date
6587592ee1 Allow displaying SVG images in documentation
PostgreSQL 12 adds SVG images in the documentation, so the website
should be able to display them.

The images themselves were already loaded by the docsloader, but the
regexps in the URL would block them from being seen. Fix this by
creating a separate function for the SVGs, since we also don't want to
render them inside teh templates.

This new view must also be tagged with @allow_frames, since the browser
considers the <object> tag used to be a subframe. Without this, they
would be blocked from viewing even on our own site.
2019-03-31 14:26:42 +02:00
c884493494 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.
2019-03-08 11:19:25 -08:00
e7099c90ea Move project policies to the website.
Changes by myself and Jonathan Katz
Review by Jonathan Katz and Daniel Gustafsson
2019-02-18 10:36:53 +00:00
833ef98757 Fix import order, per pep8 2019-01-17 20:49:33 +01:00
87237f6536 Tabs, meet your new overlords: spaces
In a quest to reach pep8, use spaces to indent rather than tabs.
2019-01-17 15:35:39 +01:00
b2ed494655 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.
2019-01-17 10:29:06 +01:00
240d21bf3d 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.
2019-01-17 10:29:06 +01:00
915aa6ea31 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.
2018-12-07 10:24:12 +01:00
17f9b7f070 Remove "/static/" from doc URLs.
This creates a permanent redirect for any doc URL that references the
"static" path (i.e. all doc URLs), which allows a format similar to:

/docs/current/index.html

This is in response to not having "interactive" as an available option,
which should lead to shorter, less confusing URLs.
2018-11-05 10:23:11 -05:00
1d024b261e Retire some legacy URL redirects
Some of this goes back to the old website, and some goes back even
further. Clean some up, leave those that are still clearly in use.
2018-10-12 13:53:59 +02:00
93227c94c0 Remove "Regional Press Contacts" page
Press enquiries are consolidated to the press@postgresql.org mailing
list. This will cut down on the administrative overhead for the
sysadmins team as well as for future work on the press release process
itself.
2018-10-08 12:18:47 -04:00
b26c917096 Disallow minor version numbers in URLs for security page. 2018-09-12 12:44:22 -04:00
79088b19bc Updated "About" pages for modern design and workflow.
This patch also removes a few pages, including:

- Advantages
- Awards
- Case Studies
- Featured Users
- Quotes

The upkeep of and traffic to these pages made them expendable
for the purposes of the new workflow.
2018-04-17 13:43:12 -04:00
f89d0d9b61 Allow "About" page to be render dynamically.
In prep for the new "About" page to serve dynamic (though
periodically cached) content.
2018-04-15 22:05:59 -04:00
6714054c48 Remove temporary API used during pglister migration 2018-03-21 13:16:43 +01:00
06fe58aefd Remove specific url handler for favicon
Only used locally anyway, so we don't care. In production this is
handled by the webserver.
2018-03-10 10:40:30 -05:00
74bb6fbd5a Update URL formats to be compatible with newer django
This format is supported both on the current 1.8 deployment and on newer
versions, so no incompatibilities to worry about.
2018-03-09 15:36:02 -05:00
705bb5600f Mark security archives redirect as permanent
This silences a deprecation warning.
2018-02-08 22:24:04 +01:00
7812369535 Activate new security pages
This also removes the two previous static pages for this information.
Access to the old "security archives" URL is now redirected back to the
main security page, since the archive is replaced with a dynamically
built of per-version security patches.
2018-01-26 11:20:19 +01:00
d0aa8ac119 Remove majordomo2 subscription form
Replace it with a redirect to lists.postgresql.org, where pglister lives.
2018-01-23 21:20:19 +01:00
689f9d9b8b Add view that lists all available tags as json
For external consumption. Only tag and description is viewed, but URLs
to the feeds and pages can easily be constructed using it.
2018-01-22 12:28:46 +01:00
9bd151082e Add tag support for news items
This lets us separate things like project news from other OSS and from
commercial postings, for example, allowing for people to subscribe to
different feeds with just the parts they are interested in.
2017-12-13 20:55:07 +01:00
07b6188954 Publish community recognition guidelines from the PostgreSQL Core Committee.
Publish the community recognition guidelines developed by the PostgreSQL Core
Committee from a navigation off of the "Community" section.  Add URLs from
several other pages on the PostgreSQL website in order to access the guidelines:

  * Donate
  * Events
  * User Groups

Additionally, this patch updates the contact email address for donation questions
to the PostgreSQL Funds Group.
2017-08-01 16:42:58 -04:00
20a0e178c5 Add simple API endpoint to activate and deactivate a list
Access is restricted by IP for the list server. Once the migration is
done, we should probably remove the endpoint again.
2017-07-03 15:35:55 +01:00
0354a5ec0f Remove support for repo updated trigger
This was never actually completed, and we have other ways to deal with
the deployments now that are faster.
2017-06-27 15:14:20 +02:00
8e8903bd48 Make yum download instructions more dyanamic
Using the crawled data, propulate dropdown boxes with versions and
platforms, to be able to show simpler instructions of exactly which
commands to use to install using the yum repository.
2017-06-08 13:06:39 +02:00
d09fde9ba3 Add function to spider reporpms from the yum repo
The ftp server can then submit a list (and structure) of which platforms
are supported for yum downloads, which can then later (in a separate
commit) be used to generate a nicer download for yum repo rpms.
2017-05-24 13:48:04 -04:00
88d6fdc224 Invent the concept of a "numtree" for versions
This property returns a single digit numbers for versions 10 and up (10,
11 etc), and keeps the two digit number for earlier (9.0, 9.1 etc).
2017-05-19 13:42:58 +02:00
0138a64cbe Handle URLS for the PG10 docs. This is a hack for now - we need to properly handle '10' vs. '9.6' formatting before GA. 2017-05-18 12:12:21 +01:00
428f299f48 Generate internal sitemap including devel docs
We'll use this to index some things in our own search engine without
exposing it to external sitemap parsers. Not from a security standpoint
of course, but something that will lead to it being possible to search
the devel docs again.
2017-03-23 12:11:22 +01:00
9b7a44da57 Move /selectable/ into /admin/ to avoid caching issues
Since we only use it for /admin/ for now, we can safely put it there
until we change that.
2016-06-23 18:06:05 +02:00
27e1c73368 Implement auto-complete for /admin/ forms that reference User
We have so many users now that loading these forms take forever.
Instead, implement a textbox with autocomplete using django-selectable,
which will not load the whole list of users at once.
2016-06-23 17:59:45 +02:00
9bcaa6ab33 Remove the "is behind cache" functionality
We're always behind cache now (we may or may not be cached, but that's
not what this check was about)
2016-05-24 21:14:33 +02:00
cd37dac7fd Move submitbug under /account/
In passing make it require ssl, make it no longer csrf-exempt,
and make it require a login so we don't let unauthenticated emails
through.
2016-05-17 17:37:09 -04:00
118b1193b8 Remove pwn module and links
The pwn module has never been used, as the pwn are simply sent to
-announce and nothing else. We've kept the code and model around for
doing it on the site for years now and it's unused, so let's remove it
to cut down on maintenance cost.
2016-05-14 22:17:07 +02:00
79350c87d9 Remove old mirror selection code and data
This has not been used for many years now, so let's get rid of
it to save some maintenance.
2016-05-14 21:42:38 +02:00
f9924efb7b Fix URL namespace changes
1. Prefix all our local modules with "pgweb" as required by the new
   project layout.
2. Change the django core imports to match 1.8
3. redirect_to has been changed to RedirectView

In passing also tabify the urls file which used a horrible mix of tabs
and spaces. The python standard is spaces, but since the rest of the
pgweb projects uses tabs, make the urls.py files do that as well.
2016-05-14 19:49:12 +02:00
8058accee0 Get rid of PgModel, replacing it with simple signals
We were already using signals for everything except delete, and even
in our old version of django the delete signal exists (it didn't exist
when this code was first written).

Django doesn't really like models to be OOP like this, so keeping PgModel
would cause issues with upcoming changes in django 1.8. Using simple functions
is easier, and the actual functionality is replicated straight off.
2016-03-07 21:41:45 +01:00
9c8006364e Add a system_information view available through SSL 2015-12-17 17:34:31 +01:00
31173f5fa6 the wiki is https for a while, make those mappings reflect that as well... 2014-11-03 20:17:07 +01:00
b39a87fa5f Add API url that drops a trigger file for updates
The idea is a git repository hook will send a POST to this URL, which
will drop a trigger file somewhere. A cronjob (or inotify listener if
we want to be really fancy sometiem in the future) will pick up that
cronjob and run the update script. The goal being to shorten the time
required to process an update.
2014-04-13 14:11:19 +02:00
6dfd884f16 Dynamically merge CSSes into a single one
This will make CSS downloading a single request, instead of making
6-7 requests for each page as it is now. It also moves all the definitions
of URLs for CSS into the templates and not in the raw CSS itself, which
will make it possible to enable client side caching in the future.

Fixes #91
2013-12-28 17:24:47 +01:00
8e317528ee Replace /community/lists/ page with a redirect to /list/
This new page is served from the archives backend, and has been enhanced
to contain the combination of the contents of both pages.
2013-09-14 14:13:20 +02:00
fdd1404f37 Get the list of documentation versions out of the database
Instead of having to update this list manually in multiple places when
releasing new versions, just take the information out of the database
where it has to be anyway.

Fixes #90
Closes #93

Also make the code automatically pick up wich PDF files exist in the
static checkout, and auto-detect their size, both A4 and US sizes. This
removes yet one more manual step, yay!

Fixes #163
2013-08-17 17:28:36 +02:00
2ea607b942 Switch to using staticfiles app for serving, well, static files
This is required by the new admin interface
2013-06-16 16:35:21 +02:00
0289cbd439 Switch to using the new feeds framework 2013-06-16 16:35:20 +02:00
ec5b9fa183 Add usergroup listing module
Jonathan Katz
2013-05-08 22:07:30 +02:00
2cad1799ed Actually implement a way to look at older events (events archive)
This also changes the main URL to look at events to be /about/events/
instead of /about/eventsarchive/, and reuses /about/eventsarchive/ to
be the actual achive. Also separates out the training archive to it's
own page at /about/eventsarchive/training/, for easier browsing.
2013-01-30 14:28:16 +01:00
ef711553b9 Add (protected) API to queue varnish purge requests
We want an API for this so they end up in the queue with all the other
requests, and get delivered to all our frontends without needing each node
to know about which frontends exist.
2012-10-03 14:19:28 +02:00
1b3dd76a36 Redirect /downloads/ to /download/
Seems Berkus managed to push a broken link in the press release...
2012-09-10 13:16:18 +02:00