Commit Graph

157 Commits

Author SHA1 Message Date
7e7bb184ad Carica file su 'calsocial/translations/it/LC_MESSAGES'
Added Italian Translation
2018-09-14 14:48:27 +00:00
d635377d12 i18n: Add Polish translation
Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
2018-07-30 22:28:26 +02:00
eaf71d4ce6 Add an empty profile for anonymous users
It evaluates to `None`, but at least it doesn’t raise an `AttributeError` now.
2018-07-26 21:50:12 +02:00
7cd2156cfc PyLint happiness (again) 2018-07-25 21:19:35 +02:00
b9c037f914 Display the instance admin on the welcome page 2018-07-25 21:07:47 +02:00
029d29ffb1 Make it possible to set the instance admin 2018-07-25 21:03:34 +02:00
4b1fff6544 Add the AppState model
This allows setting application state during run time
2018-07-25 20:27:13 +02:00
490474b2d6 Create a testing configuration
From now on, testing should be done with FLASK_ENV set to testing
2018-07-25 20:26:40 +02:00
bc67e692e0 [Refactor] Move test fixtures to conftest.py
…so they get automatically loaded
2018-07-25 20:25:12 +02:00
1e1e085ba4 [Bugfix] Use FLASK_ENV for the config filename instead of ENV 2018-07-25 20:25:12 +02:00
5996ae7079 Create a macro for profile links and use it on the welcome and profile display pages 2018-07-25 08:36:03 +02:00
3e5d8ee4d5 Make it possible to set one’s avatar
Only built-in avatars are supported yet.
2018-07-25 08:36:03 +02:00
c0c38ccb52 Make it possible to use builtin avatars
Images are from openclipart.org
2018-07-25 08:24:10 +02:00
c40e776036 Fully cover the Gregorian Calendar with tests
Being one of the cornerstones right now, it deserves a lot of tests
2018-07-24 08:28:04 +02:00
3deaa39256 [Test] Add test for disabled registration 2018-07-23 13:22:50 +02:00
c20b302458 Add the alter_config context manager for testing
It can temporarily change an app configuration value.
2018-07-23 13:22:50 +02:00
6f186c3a3f Add coverage related files to .gitignore 2018-07-23 13:22:50 +02:00
a97d884f42 Add pytest-cov as a developer dependency 2018-07-23 13:04:04 +02:00
11bd30e01f [Bugfix] Fix broken tests 2018-07-23 13:04:04 +02:00
4c3ec0564f [Bugfix] Fix registration
Allow POSTing to the registration endpoint
2018-07-23 13:04:04 +02:00
f8e3c748c0 [Bugfix] Fix jumping to first steps page upon initial login
This was missing from when the first steps view got moved to the accounts blueprint.
2018-07-23 13:04:04 +02:00
9e7ea29f5e [Lint] Make PyLint happy again 2018-07-23 12:35:57 +02:00
4935e6394b [Development] Ignore the .env file
It is used by pipenv, and we definitely don’t want to accidentally commit this to the repo.
2018-07-23 11:53:56 +02:00
2c01939ef5 [Docs] Add docstring to User.active_sessions 2018-07-23 11:53:56 +02:00
e45726fd7c [Refactor] Make the session list a list comprehension in account.py 2018-07-23 11:53:56 +02:00
26d58daac4 [Code Cleanup] Wrap a long line in accounts.py 2018-07-23 11:53:56 +02:00
387b7d83ac [Bugfix] Fix the environment name for dev mode
It turns out Flask only considers `development` as the development mode; `dev` (used before) is
not working.
2018-07-23 11:53:56 +02:00
9b27491652 [Bugfix] Import gettext in account.py 2018-07-23 11:53:43 +02:00
6078e6171f [Bugfix] Rework month padding and event fetching routines
Month padding (ie. adding the days of previous/next months) is now working as expected.  Fetching
multi-day events now also displays events correctly.
2018-07-23 08:00:06 +02:00
8eb52ff7f4 Hide time values for all-day events 2018-07-21 06:50:17 +02:00
cb9a62cd88 Make it possible to list and invalidate active sessions 2018-07-19 15:15:49 +02:00
8d71edae5e Save sessions in the cache 2018-07-19 15:15:49 +02:00
6c98c9d7ca Add caching functionality via Flask-Caching 2018-07-19 15:15:49 +02:00
bcb7b524f3 Move account related views to a separate blueprint 2018-07-19 15:15:49 +02:00
8d45611e35 Create the RoutedMixin class
It will be used both in the app, and later blueprint classes.
2018-07-17 15:00:56 +02:00
89dc258a5b [Bugfix] Fix the link of the “Go to your calendar” button on the about page 2018-07-17 12:39:09 +02:00
c90b261de3 [Refactor] Refactor the about page
This makes it available to logged in users, too.
2018-07-17 10:06:46 +02:00
372a1f756a Update the welcome page with actual numbers 2018-07-17 09:52:50 +02:00
43a90a237f Document the EnumField form field type 2018-07-16 13:34:05 +02:00
a763662cd6 Make sure the EnumField gets an Enum subclass as its parameter 2018-07-16 13:34:05 +02:00
41b4b9d7ea Fix the label of the EnumField field type
If there are no translations provided, use the enum name
2018-07-16 13:34:05 +02:00
64c72b1a68 Make PyLint happy 2018-07-16 13:34:05 +02:00
d36817ca44 Make the time zone on the event creation form default to the user’s time zone 2018-07-16 12:37:32 +02:00
a862e6ca5d Add the Event.visibility field
This shows if the event is visible to anyone or just people who are invited.

The calendar view already respects this flag.
2018-07-16 12:12:35 +02:00
f2f7ef72dd Update Hungarian translations 2018-07-16 11:12:56 +02:00
808c6bbdde Update translatable strings
Stop using the `_()` function, and use `{% trans %}` tags instead.
2018-07-16 11:09:09 +02:00
496b638694 [Bugfix] Add a missing closing tag to event-details.html 2018-07-16 10:42:10 +02:00
ff304dc64d Create the contents of the welcome page 2018-07-15 07:31:49 +02:00
13e55e7c68 [Cleanup] Style fix in style.css 2018-07-15 07:18:50 +02:00
b54674c703 Semantic UI version 2018-07-13 16:03:33 +02:00