Commit graph

134 commits

Author SHA1 Message Date
Thomas Steen Rasmussen 1c4a4dd259 change irc channel stuff so each team can have both a private and a public irc channel, introduce the concept of a volunteer channel which all teammembers of all teams get access to 2018-04-13 20:22:19 +02:00
Víðir Valberg Guðmundsson 4d6caf6947
Merge branch 'master' into django-and-channels-upgrade 2018-04-13 11:19:48 +02:00
Thomas Steen Rasmussen edcf363027
Merge teamcomms branch. Refactor team app and add events app.
* Primary commit towards improved team communications. Add new events app to handle team notifications when various events happen, with a Type model which contain event types and a Routing model which controls routing of events to teams. Add shortslug for Camp and Team models. events.handler.py contains the code for sending irc and email notifications for teams. The first two eventtypes have been added in datamigrations, 'ticket_created' and 'public_credit_name_changed', and the tickets and profile apps have been adjusted accordingly. Team IRC channels can be marked as managed and if so the IRC bot will register the team channel with ChanServ if possible. Team IRC channels can be marked as private and the bot will set invite only and maintain an ACL with team members. Users can set their NickServ username in their profile to get on the ACL. Rework all team views and templates. Remove TeamArea model and make Team have an FK to Camp directly. Add docstrings a whole bunch of places. Move signal handlers to apps.py and signal_handlers.py in a few apps. Add basic team mailing list handling, more work to be done. Update bootstrap-devsite script to add more teammembers and add some team event routing for the two eventtypes we have.

* default to the console backend for email unless we specifically ask for realworld email

* fix signal for public_credit_name approval irc message

* fix name display on /people/ page

* fix the text on people pages when all non-responsible team members are anonymous

* handle cases where we fallback to the area responsible properly

* readd removed property, it is used in team_detail view

* make it possible to filter profiles by public_credit_name_approved

* add method for sending IRC messages in ircbot.utils.add_irc_message(), extend periodic bot method to do more than check for outgoing messages so rename it, refactor chanserv and nickserv handling code, create methods to check and join/part IRC channels as needed, maintain channel ACLs for private channels, do not autojoin any channels when instatiating the bot instead rely on the new check_irc_channels() method to join them, rename profile presave signal, add checking for changed nickserv usernames for acl handling, add teammember.irc_channel_acl_ok boolean to track ACL state, add missing help_text properties to TeamMember fields, rename teammember postsave signal, add teammember deleted signal, readd wrongly deleted EnsureTeamMemberResponsibleMixin

* add a few missing early returns
2018-04-09 23:11:05 +02:00
Víðir Valberg Guðmundsson aae3d7e3c9 Got channels2 working. 2018-04-03 20:52:39 +02:00
Víðir Valberg Guðmundsson ff758b15ff Initial work on uprading. 2018-04-03 18:44:10 +02:00
Thomas Steen Rasmussen 9e82013ca0 remove unneeded imports from bornhack app 2018-03-04 14:31:46 +01:00
Jeppe Ernst 69f0c8aabd explain why we decorate /admin login 2017-12-31 00:16:07 +01:00
Jeppe Ernst 456ffa1bea useless/redundant file
forgot to remove it in the previous commit
2017-12-28 21:50:48 +01:00
Jeppe Ernst 7c5c8f6ac7 require 2fa for /admin pages
if the user has enabled 2fa
2017-12-28 21:37:34 +01:00
Jeppe Ernst f313935e6f initial setup of 2fa
issues:
* middleware temporarily removed, prevents login
* generated QR code has wrong issuer
* require OTP for /admin login not working (yet)
2017-12-28 16:22:26 +01:00
Benjamin Bach ecdc62df7c Add IBAN/SWIFT to custom invoices, bank name in settings - fixes #172 (#187) 2017-12-12 22:16:06 +01:00
Víðir Valberg Guðmundsson 6a082e6b58 Lower the percentage for camp redirect. 2017-11-25 14:54:34 +01:00
Víðir Valberg Guðmundsson d8e7ad2d17 Loewr the percentage for camp redirect. 2017-11-25 14:48:46 +01:00
Thomas Steen Rasmussen 142afa5ead add teamtask support 2017-11-23 23:09:14 +01:00
Víðir Valberg Guðmundsson d4265edaa0 Remove docker compose setup, not working optimal. Might return later. 2017-11-23 21:47:10 +01:00
Víðir Valberg Guðmundsson c3ebb6ebd3 Make sure that the enviroment_setting.py file is there. 2017-11-05 17:41:37 +01:00
Víðir Valberg Guðmundsson 44d2ce22ab Got the site up running using docker-compose. Also added a Makefile for convenience. 2017-11-05 17:26:20 +01:00
Thomas Steen Rasmussen e957942181 remove old has_tickets context_processors 2017-10-04 00:25:19 +02:00
Thomas Steen Rasmussen 803c8c7ff3 Backoffice first steps + add 403.html (#173)
* start working on backoffice

* add 403.html
2017-10-03 21:14:07 +02:00
Benjamin Bach a93a66b8ac Should set mapping to empty dict, not empty string
asgi_layer = backend_class(**config)
TypeError: type object argument after ** must be a mapping, not str
2017-08-28 21:56:58 +02:00
Vidir Valberg Gudmundsson a9f1e4553b Initial bar app. 2017-08-26 03:49:30 +02:00
Vidir Valberg Gudmundsson 0edcaeb11e Adding inital version of program control center. 2017-08-22 11:48:51 +02:00
Stephan Telling 984b82ba11
update tickets app with list and detail views
Also this commit allows users to download their ticket as PDF.
2017-08-19 22:06:32 +02:00
Stephan Telling e828bc9c4a Merge pull request #150 from bornhack/tickets
Tickets
2017-08-17 18:51:56 +02:00
Stephan Telling 5eedb8ff03
update INSTALLED_APPS. add ticket_type and re-add old Ticket model
also updates bootstrap script with ticket_type
2017-08-17 17:52:22 +02:00
Vidir Valberg Gudmundsson 93300f3b30 Change midnight offset from 6 to 9. 2017-08-16 23:05:26 +02:00
Vidir Valberg Gudmundsson 3411aee34a Make a noscript fallback version of the schedule. 2017-08-16 18:27:28 +02:00
Vidir Valberg Gudmundsson 23d94145b7 Detail pages are for events. We now also load event data when accessing a detailpage directly. 2017-08-16 18:27:28 +02:00
Stephan Telling ad9e93d692
fix #141 2017-08-13 15:42:42 +02:00
Vidir Valberg Gudmundsson d6a07110b7 "Just" use static files for logos. 2017-07-15 15:21:12 +02:00
Vidir Valberg Gudmundsson 7cd82ea3bb Adding models to the sponsor. 2017-07-15 15:21:12 +02:00
Thomas Steen Rasmussen 533c1b3efa add initial people stuff 2017-07-11 22:50:31 +02:00
Thomas Steen Rasmussen 124b8a6afd add a default for coinify_callback_hostname 2017-07-11 11:08:53 +02:00
Thomas Steen Rasmussen 974b90676e make coinify callback hostname configurable, so we can workaround old openssl in their callback engine 2017-07-11 11:06:46 +02:00
Thomas Steen Rasmussen b542853217 lower message check interval a bit 2017-07-03 22:46:47 +02:00
Thomas Steen Rasmussen 205e112718 add nickserv functionality 2017-07-03 21:08:47 +02:00
Thomas Steen Rasmussen a527e0dd0f a few more changes to irc worker stuff 2017-07-03 19:46:49 +02:00
Thomas Steen Rasmussen 11fff93c41 use secure cookies 2017-06-05 23:22:12 +02:00
Thomas Steen Rasmussen 0007e5424c split team management into seperate page, fix a few small things 2017-05-24 07:49:32 +02:00
Stephan Telling 93fdfd5712 add approve action 2017-05-23 22:02:36 +02:00
Thomas Steen Rasmussen 916dba52c1 add member remove button 2017-05-23 21:21:47 +02:00
Stephan Telling 06a24c5899 make manage page part of detail page 2017-05-21 16:06:34 +02:00
Stephan Telling 3395fe8bd5 start work on #123 2017-05-21 16:06:34 +02:00
Víðir Valberg Guðmundsson 70b853b669 Remove channel panel. 2017-04-19 23:53:43 +02:00
Thomas Steen Rasmussen b0890fd7d8 add channel layers to environment_settings.py.dist, remember to update your local dev environment_settings.py or nothing will work 2017-04-19 09:30:01 +02:00
Thomas Steen Rasmussen dad1c6a352 remove channel layer from settings.py 2017-04-19 09:29:19 +02:00
Thomas Steen Rasmussen 9f18d94ee1 add asgi.py file 2017-04-15 20:01:24 +02:00
Víðir Valberg Guðmundsson 8000896f3d Adding channels with the schedule as first app using them. 2017-04-15 19:35:18 +02:00
Víðir Valberg Guðmundsson 5e322472e2 Refactored ics code and added filtering. 2017-04-13 11:48:55 +02:00
Thomas Steen Rasmussen 0dc1ca9704 rework team stuff 2017-04-02 18:04:57 +02:00
Thomas Steen Rasmussen 33689c5270 fix a few ics related things, move ics functions to seperate file 2017-03-31 19:33:19 +02:00
Thomas Steen Rasmussen 3cc2f21bfb hand merge and commit PR #76 2017-03-31 19:25:48 +02:00
Víðir Valberg Guðmundsson 5d4c4952d5 Teams (#100)
* Initial model for volunteers app.

* Rename Volunteers to Teams. Add view and templates.

* Adding detail page.
2017-03-31 17:29:28 +02:00
Thomas Steen Rasmussen c11979083c fix ansible variable for invoice letterhead pdf 2017-03-30 00:19:34 +02:00
Thomas Steen Rasmussen dba34531ba quoting 2017-03-28 10:13:15 +02:00
Thomas Steen Rasmussen 4e865d146e add wkhtmltopdf path to environment_settings.py.dist 2017-03-28 10:10:27 +02:00
Thomas Steen Rasmussen 70b6a51c5c fix comment 2017-03-28 09:17:08 +02:00
Thomas Steen Rasmussen 529be396f4 fixup the shop to work in the new multicamp world, fix pdf generation, add new letterhead templates, rework invoiceworker into a generic worker runner 2017-03-28 00:12:11 +02:00
Thomas Steen Rasmussen 171553677c fixup logging 2017-03-23 18:32:13 +01:00
Thomas Steen Rasmussen bd93e0c2ea remove PDF_LETTERHEAD_FILENAME from environment_settings.py.dist 2017-03-20 18:39:44 +01:00
Thomas Steen Rasmussen 181a0e43b0 add some more speaker and event proposal submission stuff 2017-03-12 20:54:33 +01:00
Thomas Steen Rasmussen a51b795bce rename models and views from submission to proposal 2017-03-12 19:06:03 +01:00
Thomas Steen Rasmussen ad3b826844 rework speaker and talk proposal stuff 2017-03-12 15:43:41 +01:00
Thomas Steen Rasmussen c7571ed9a3 add django-extensions 2017-03-10 00:07:13 +01:00
Thomas Steen Rasmussen 9a8b552915 add name for the redirect urls 2017-03-10 00:01:14 +01:00
Thomas Steen Rasmussen 950ae4f2dc redirect to frontpage after login 2017-03-10 00:01:02 +01:00
Thomas Steen Rasmussen e233d15de3 use include for this 2017-03-08 02:01:38 +01:00
Thomas Steen Rasmussen 334f0477fe start work on speaker and talk submissions 2017-03-08 00:00:17 +01:00
Thomas Steen Rasmussen 98bb51941e add camp redirect views 2017-02-19 21:20:19 +01:00
Thomas Steen Rasmussen 56d8a9765d add view to show speaker pictures without exposing all of MEDIA_ROOT 2017-02-19 13:15:55 +01:00
Víðir Valberg Guðmundsson 59bb0f8e3a Rewrite bits of the program scheduling to work better on mobile. 2017-02-17 17:17:32 +01:00
Thomas Steen Rasmussen 8af7adc943 add DEBUG 2017-02-11 17:22:02 +01:00
Thomas Steen Rasmussen 9fc7d77834 add some missing quoting 2017-02-11 17:11:40 +01:00
Thomas Steen Rasmussen a915662689 adapt environment_settings.py.dist to jinja format 2017-02-11 16:50:29 +01:00
Thomas Steen Rasmussen 5bc728a2e8 ircbot and notification worker basic functionality works 2017-02-02 14:37:17 +01:00
Thomas Steen Rasmussen 3715d00701 Revert "remove __init__.py files"
This reverts commit c3a4994d35.
2017-02-02 00:18:23 +01:00
Thomas Steen Rasmussen c3a4994d35 remove __init__.py files 2017-02-01 21:41:00 +01:00
Thomas Steen Rasmussen dcbf9b6992 readd middleware with the 1.10 setting 2017-01-31 23:26:45 +01:00
Thomas Steen Rasmussen c047506d26 better example values for .dist 2017-01-31 23:02:27 +01:00
Thomas Steen Rasmussen 593b40ea6a remove accidental committed file 2017-01-31 22:59:29 +01:00
Thomas Steen Rasmussen 2a41b03e56 Merge branch 'master' of github.com:bornhack/bornhack-website 2017-01-31 22:50:49 +01:00
Thomas Steen Rasmussen ea14ae5e38 remove django-environ and more work on irc bot 2017-01-31 22:50:28 +01:00
Stephan Telling 2fa98cb02e
add command to create dirs and html files for a new camp 2017-01-31 22:03:03 +01:00
Thomas Steen Rasmussen 0ff37bbca5 move code to src/ folder 2017-01-30 12:06:49 +01:00