Commit graph

91 commits

Author SHA1 Message Date
Jan Dittberner 8e42cb9c18 Start switch to Bootstrap 5
- drop jQuery and fontawesome dependencies
- add bootstrap5 and bootstrap-icons
- update fonts mfizz
- update base templates and the first set of other templates
- replace blocktrans and trans with blocktranslate and translate to
  prepare for Django 4
- move hostingpakcage templates to hostingpackages/templates
- update translations
2023-04-16 22:11:32 +02:00
Jan Dittberner 5cf7ef7a23 Strip API to required minimum
- disable browseable API
- use IsAdminUser for DEFAULT_PERMISSION_CLASSES
- register explicit API views for HelpUser model
2023-04-16 14:34:45 +02:00
Jan Dittberner 0f91587c60 Remove unneeded users API view
The help-users API view is sufficient
2023-04-16 13:50:01 +02:00
Jan Dittberner a65b1574db Add admin user information REST API 2023-04-16 13:21:57 +02:00
Jan Dittberner f9ea88cd24 Add new app 'help' for user support
This commit adds a new model that enhances the user profile with an
offline support code, a postal address and an email address to allow
users to reset their profile.

The commit adds to Django admin commands 'populate' and
'reset_offline_code' to maintain the help user profiles from the Django
command line.
2023-04-16 12:20:37 +02:00
Jan Dittberner e44bdd7be2 Bump version to 0.13.0 2023-04-15 12:07:12 +02:00
Jan Dittberner d499b781d4 Implement impersonation 2023-04-15 11:48:53 +02:00
Jan Dittberner 472e272305 Remove Twitter login, disable signups 2023-04-14 19:56:41 +02:00
Jan Dittberner dd67ee91da Require login for index view 2023-04-14 19:33:44 +02:00
Jan Dittberner 4af1a39ca4 Upgrade to Django 3.2
- update dependencies
- fix deprecation warnings
- fix tests
- skip some tests that need more work
- reformat changed code with isort and black
2023-02-18 22:46:48 +01:00
Jan Dittberner 0f18e59d67 Fix deprecation warnings 2023-02-18 19:07:33 +01:00
Jan Dittberner a1084ec785 Bump version number 2020-04-13 15:01:37 +02:00
Jan Dittberner 42b6f8d91d Bump version to 0.12.0 2020-04-10 14:19:36 +02:00
Jan Dittberner 47a1e1dc55 Fix settings to work with salt state definitions
- move from assets to static
2020-03-07 18:25:49 +01:00
Jan Dittberner 0bf37d1bea Improve docker setup
Add gvaweb and gvaldap containers to docker-compose.yml. Unify most of
Dockerfile with gvaweb and gvaldap. Add empty directories for mounting
asset and media files into bind mounted docker volumes. Run application
as separate system user.
2020-03-03 13:11:46 +01:00
Jan Dittberner e487dad026 Improve settings
The commit removes the non-existing sys.path import, simplifies the
condition in the show_debug_toolbar function and defines ALLOWED_HOSTS
for the test environment.
2019-07-05 21:25:31 +02:00
Jan Dittberner 3d18392b67 Fix tests for Python 3
- drop Python 2 __future__ imports
- fix tests to handle new Django and Python 3 module names
- reformat changed files with black
2019-01-30 21:27:25 +01:00
Jan Dittberner 10a83d36f7 Fix locale support 2018-12-26 14:51:34 +01:00
Jan Dittberner 24009bff3e Set version to 0.12.0-alpha 2018-12-26 14:51:03 +01:00
Jan Dittberner 6f5c0a1b7c Use custom SHOW_TOOLBAR_CALLBACK 2018-12-26 14:49:56 +01:00
Jan Dittberner 6a982f8db2 Release hotfix 0.11.5 0.11.5
-----BEGIN PGP SIGNATURE-----
 
 iQFIBAABCgAyFiEEKHuXKkUYdvdO9493DXkdyNc3wdkFAlwjdWsUHGphbkBkaXR0
 YmVybmVyLmluZm8ACgkQDXkdyNc3wdlVYAf/Y2AQsMQwp/MYht+xse2tznRVHPid
 XVDj8urrvW/Me7ugcuVdtIoOa1M+sc/8MGhpHWBzp92qAqpkQwkhTZZovaselLzq
 00+cf9HjNdUG+gEOW5eGBP0O0iN7bd/p1HqnmLtGEAx3YoKe4z2YHAl59Nb2jWoV
 9UiohbSK7+4fThC8r2Hj2zPmwnQ3t5QFLEWIp8xyvF+DQ3zuxXOoZlBK+9VR676j
 FxHox9eQ4iJpswlOzYDfS1nGzfVixI0cCvRuZeM1sHWteKVJrqOzNjKAAMi47T+v
 Jqq92EpLUFCsRxH+d5yvhLgNX6BpvWPtTDzd/SO6G+K4l/1whwWU//wG+g==
 =5PHe
 -----END PGP SIGNATURE-----

Merge tag '0.11.5'

Release hotfix 0.11.5 0.11.5
2018-12-26 13:35:55 +01:00
Jan Dittberner 271421cdf8 Set version number 2018-12-26 13:33:36 +01:00
Jan Dittberner 71aad5e078 Remove Xing from settings and templates
Xing canceled API access for us.
2018-12-26 13:28:25 +01:00
Jan Dittberner 6cebd80c89 Started port to Django 2.1, Python 3, Docker
This commit is a rough port to Django 2.1, Python 3 and a Docker based local
development setup. Tests fail/error but migrations and the web frontend are
already runnable. Task queue functionality is untested and translations seem to
have trouble.
2018-11-19 23:28:40 +01:00
Jan Dittberner 3c5d02776a Update Django and gvacommon dependencies
This commit updates the Django dependency version to 1.9.2 and gvacommon
to 0.3.0 that provides gvacommon.settings_utils.get_env_variable. The
gnuviechadmin.settings.base module now uses this implementation instead
of an own copy and the corresponding test has been removed too.
2016-02-01 22:27:05 +00:00
Jan Dittberner 6c606034b3 Add docstrings from gvaldap settings 2016-01-31 23:22:07 +01:00
Jan Dittberner 3d95a9f61a Switch result backend to redis
The AMQP result backend proved as impractical, this commit switches to
redis instead. The redis server is setup on the webinterface host but
can be configured on another host.
2016-01-31 21:50:49 +01:00
Jan Dittberner 9d843c920a Add docstring to gnuviechadmin.settings.base 2016-01-31 21:50:11 +01:00
Jan Dittberner eda20937dc Use separate test vhost for celery queues 2016-01-31 21:46:14 +01:00
Jan Dittberner 2018520646 Start changelog for next release
This commit updates the changelog, switches to git code browsing for the
release links and uses correct semantic versioning.
2016-01-29 14:21:43 +00:00
Jan Dittberner 085b126416 Update to Django 1.9
- update all dependencies
- fix deprecation warnings and errors for Django 1.9 compatibility
2015-12-19 20:11:23 +01:00
Jan Dittberner 1b30b1a38c Define logging for tests 2015-12-07 00:24:23 +00:00
Jan Dittberner fb1f31a9bc Fix flake8 warnings
This commit fixes all warnings created by flake8 by removing unused
imports and variable assignments. Some wrongly indented lines are now
indented correctly.
2015-12-05 13:47:41 +00:00
Jan Dittberner f2c3f64a87 Use MD5PasswordHasher for tests
This commit changes the password hasher for test runs to the
MD5PasswordHasher to speed up password hashing during test runs.
2015-11-28 19:00:03 +00:00
Jan Dittberner b11055807f Clean PEP8 violations 2015-11-22 14:03:47 +00:00
Jan Dittberner be0531ec30 Add test for gnuviechadmin.celery
This commit adds a refactoring for gnuviechadmin.celery to make the
installed apps detection testable. The test is added in
gnuviechadmin.tests.test_celery. Debug code in gnuviechadmin.urls is no
excluded from coverage reporting.
2015-11-22 14:31:04 +01:00
Jan Dittberner 7bcb0d3100 Add tests for gnuviechadmin.context_processors
This commit adds new tests for the gnuviechadmin.context_processors
module. The module gnuviechadmin.tests has been moved into a separate
directory for a more clear structure.
2015-11-22 13:13:42 +00:00
Jan Dittberner 660ffa9de9 bump version to new development version 2015-10-12 18:42:14 +00:00
Jan Dittberner d5bba7a22d asynchronous refactoring
- don't execute celery tasks directly
- introduce optional parameters to fileserver tasks to allow chaining
- handle user/group/key create and delete tasks in new osusers.signals
  class
- adapt unit tests
- change TaskResults model to store the task signatures
- generalize the local settings' logging configuration
2015-10-12 00:23:31 +02:00
Jan Dittberner 4c81502b8e bump version number, add release version to changelog 2015-02-21 20:59:09 +01:00
Jan Dittberner 9cab636351 bump version number, add release to changelog 2015-02-06 11:20:47 +01:00
Jan Dittberner b5714f2af3 bump version number, add release to changelog 2015-02-01 22:19:18 +01:00
Jan Dittberner 251e8a54f6 add version number to gnuviechadmin
- add __version__ to gnuviechadmin/__init__.py
- change docs/conf.py to use version number from gnuviechadmin
- add gnuviechadmin.context_processors.version_info to add
  gnuviechadmin_version to template context
- add version and technology links to templates/base.html footer
- add CSS styles for footer formatting
2015-02-01 22:15:40 +01:00
Jan Dittberner 1bee80044c enable translations for contact form 2015-02-01 20:58:53 +01:00
Jan Dittberner 52b6dd5845 add contact_form link in top navigation
- add contact_form URLs to gnuviechadmin.urls
- set href of contact link to 'contact_form'
2015-02-01 19:37:13 +01:00
Jan Dittberner f9e4e67cf6 add context processing for contact_form views 2015-02-01 19:34:41 +01:00
Jan Dittberner 42f3ed7f06 define DEFAULT_FROM_EMAIL in production settings 2015-02-01 19:34:12 +01:00
Jan Dittberner 2b0f1f9f89 add imprint as flatpage
- add flatpages app to gnuviechadmin.settings.base.DJANGO_APPS
- add imprint handling to gnuviechadmin.context_processors.navigation, remove
  unused about page handling
- add URL 'imprint' to gnuviechadmin.urls
- replace link 'about' in template base.html with 'imprint'
- add templates for flatpages
- add german translation for imprint and contact navigation links
2015-02-01 16:39:01 +01:00
Jan Dittberner 3f07ddb062 configure local logging
- add log formatters 'verbose' and 'simple' to gnuviechadmin.settings.base
- add loggers and handler in gnuviechadmin.settings.local
2015-02-01 14:59:36 +01:00
Jan Dittberner 81b9bc163b mark active menu item as active 2015-02-01 14:58:32 +01:00