Browse Source
Squashed commit of the following:
Squashed commit of the following:
commitpull/66/head0a80206abb
Author: Jason McBrayer <jmcbray@carcosa.net> Date: Tue Nov 5 19:22:00 2019 -0500 Fix oxford comma in bundled notifications, remove unused dependency commite96bd22bdc
Author: Jason McBrayer <jmcbray@carcosa.net> Date: Tue Nov 5 19:19:42 2019 -0500 Now template works with bundled or un-bundled notifications commit6f46bef7fd
Author: Jason McBrayer <jmcbray@carcosa.net> Date: Tue Nov 5 19:02:51 2019 -0500 Bundled toots work; now fix unbundled case commit07d9de49f9
Author: Jason McBrayer <jmcbray@carcosa.net> Date: Tue Nov 5 14:09:14 2019 -0500 Notifications are now sorted by groups, but not collapsed commitf62666929f
Author: Jason McBrayer <jmcbray@carcosa.net> Date: Tue Nov 5 13:58:41 2019 -0500 Fix saving of bundle_notifications setting commit335d5f985c
Author: Jason McBrayer <jmcbray@carcosa.net> Date: Mon Nov 4 18:57:54 2019 -0500 Forgot to include migration for bundle notifications preference commit0e8232591c
Author: Jason McBrayer <jmcbray@carcosa.net> Date: Mon Nov 4 18:57:35 2019 -0500 Bundle notifications setting front-end commit6e945f1ceb
Author: Jason McBrayer <jmcbray@carcosa.net> Date: Mon Nov 4 18:54:49 2019 -0500 Backend code to group notifications
8 changed files with 174 additions and 69 deletions
-
1Pipfile
-
1brutaldon/forms.py
-
18brutaldon/migrations/0023_preference_bundle_notifications.py
-
6brutaldon/models.py
-
5brutaldon/templates/comma.html
-
160brutaldon/templates/main/notifications.html
-
17brutaldon/templates/setup/settings.html
-
35brutaldon/views.py
@ -0,0 +1,18 @@ |
|||
# Generated by Django 2.2.7 on 2019-11-04 23:53 |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('brutaldon', '0022_auto_20190506_0938'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AddField( |
|||
model_name='preference', |
|||
name='bundle_notifications', |
|||
field=models.BooleanField(default=False, help_text='Collapse together boosts or likes of the same toot in the notifications page.'), |
|||
), |
|||
] |
@ -0,0 +1,5 @@ |
|||
{% if not forloop.first %} |
|||
{% if forloop.last %}, and |
|||
{% else %}, |
|||
{% endif %} |
|||
{% endif %} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue