summaryrefslogtreecommitdiff
path: root/postgresqleu/util/docsviews.py
AgeCommit message (Collapse)Author
2022-01-08Fix docs page links for the index pageMagnus Hagander
When clicking the "help" button directly from /admin/, don't throw an exception -- instead show the index page which was clearly always the intention.
2020-01-26Fix permissions checks for documentation pagesMagnus Hagander
Always require a login for viewing pages. This was already "meta-enforced" by crashing when the user wasn't logged in, but should do a proper redirect. We always want to enforce this login so we don't end up with google indexing the help pages of every site for example. Second, allow talk voters and any members of any of the global permission groups to view the documentation. The comment already covered the talkvoters, just not the implementation, but since we have documentation for things outside of confreg now, also include permissions on those parts of the system. Partial work on #19
2020-01-08Style and minor fixes pointed out by newer version of pep8Magnus Hagander
2019-08-21Major overhaul of Twitter integrationMagnus Hagander
* Add backend editor for queued conference tweets. This way manual tweets can be added, and auto-generated ones edited. * Don't delete tweets when posted, just mark them as sent. This together with the fact that the backend editors adds a field of who created it gives an audit trail for posts. * Support posting images in tweets. * Support twitter campaigns * Generic support for multiple campaigns, which are about generating a set of tweets based on other data in the database. * Specifically add support for "session campaigns", which generates tweets to market approved sessions. * More campaign types can be added in the future. * Each campaign gets to define a jinja2 template that is rendered across the objects to create tweets, which are then spread out across time. * Breakout the "post conference news as tweets" into it's own managed job, to keep the separation clear. This job now just adds entries to the queue of tweets.
2019-02-10Fix double escaping in documentation <title> tagMagnus Hagander
2019-01-28Restructure documentation URLs and locationMagnus Hagander
Instead of only supporting docs of /confreg/, support docs of the other parts of the system as well. To make this clena, move all the docs to /admin/docs/. Remove the conference specific header, as it complicates things a lot for no real gain.