68 Commits

Author SHA1 Message Date
Greg Kaleka
e0fe6d61e1 Integrate Wagtail CMS and set up landing page structure (#2014) 2025-11-21 18:56:59 -05:00
daveoconnor
5f022aca0a Upgrade django to 5.2, python to 3.13 (#1915) 2025-10-22 13:24:26 -07:00
daveoconnor
c7571ae569 News article automated summaries generation (#1906) 2025-09-25 17:28:45 -07:00
Greg Kaleka
21cea102ed Fix bug with stale news moderation link and add tests 2025-08-05 12:37:27 -04:00
Greg Kaleka
e47ced34dc Add buttons for newer/older news entries within category (#1718) 2025-03-27 20:04:26 -04:00
Foo Bar
a55111ca74 Use display_name for "username" instead of first_name, last_name (#1640) (#1638) 2025-03-03 11:03:49 -08:00
Greg Kaleka
21e38f11d3 Gmail display fix for news moderation email (#1622) 2025-02-06 10:12:35 -05:00
Greg Kaleka
7468f54199 News moderation email magic links (#1600) 2025-01-15 14:54:28 -05:00
Greg Kaleka
c57d905594 Support release report pdf attachment to news (#1543) 2024-12-11 17:22:49 -05:00
Greg Kaleka
db51e54bed Send individual emails to each notified user (#1429)
Fixes #1428

Previously, we sent a single email with all recipients in the `bcc`
field, and no one in the `to` field. Mailgun does not support this.

This PR changes that behavior to send an email to each user using
Django's `send_messages` (plural) method.

Note: I wasn't able to confirm this in the Mailgun documentation, but I
assume this should not have any cost implications. Sending a "single"
email with 100 `bcc` recipients should cost the same as sending 100
emails each with a single `to` recipient.

Another note: I did not test performance of this with many recipients.
Probably all of our notification emails should be getting sent in a
Celery task... probably a future optimization.

---------

Co-authored-by: Greg Kaleka <gkaleka@energy-solution.com>
2024-11-11 12:53:36 -05:00
Brian Perrett
45a3fa7870 Create an avatar tag to be usable anywhere we need an avatar. (#1298)
- fixes https://github.com/boostorg/website-v2/issues/1285
- Use a django tag to render an avatar component.
2024-09-27 15:30:46 -07:00
Kenneth Reitz
2fceb36767 Remove unnecessary linebreaks in RSSNewsFeed class 2024-04-03 16:50:06 -04:00
Kenneth Reitz
0978fa0777 Refactor content formatting in RSSNewsFeed class 2024-04-03 16:50:06 -04:00
Kenneth Reitz
86304684fa Add linebreaks and URLize to item content in RSSNewsFeed 2024-04-03 16:50:06 -04:00
Kenneth Reitz
4348444119 Refactor external link formatting in RSSNewsFeed 2024-04-03 16:24:30 -04:00
Kenneth Reitz
7d48d0a364 Add support for external URLs in item description for RSS feeds 2024-04-03 16:24:30 -04:00
Kenneth Reitz
9d8a8a5ae6 Add migration to alter news options 2024-04-01 16:00:49 -04:00
Kenneth Reitz
1ec6516372 Update verbose_name_plural in News model 2024-03-25 18:05:12 -04:00
Lacey Williams Henschel
eeebcaefb8 Require first or last name to post news
- Adds logic to require the user to have a first or last name to post news
- Adds a test for that
- Removes the "skip" for news tests and skips only the ones that are failing
2024-01-16 14:09:26 -08:00
Lacey Williams Henschel
73e154c1c0 Add Newss RSS and Atom feeds 2023-12-19 11:58:29 -08:00
Lacey Williams Henschel
c25401a6b5 Mark special chars safe in emails 2023-12-05 12:53:57 -08:00
Greg Newman
e9ab342c19 🐛 Skip news view tests 2023-12-05 09:35:09 -05:00
Greg Newman
c528b32f34 revert 2023-12-05 09:35:09 -05:00
Greg Newman
245f9d834e skip test with note 2023-12-05 09:35:09 -05:00
Greg Newman
d55ce761ae revert 2023-12-05 09:35:09 -05:00
Greg Newman
07124bd2ca skip test with note 2023-12-05 09:35:09 -05:00
Lacey Williams Henschel
49c0ec90f8 Make current-boost-version dynamic for boost-gecko in site header
- Add context processor to return most recent version to base template
- Add property for the stripped slug
- Add context processor to settings and retrieve val in template header
- Fix some news tests that test for specific query counts

fix tests
2023-11-30 13:48:39 -08:00
Spencer Strickland
6732add8f1 Commenting out test which assumes user content could contain HTML links 2023-11-28 07:55:40 -06:00
Lacey Williams Henschel
2648ddeb8f Require profile photo before users can post news 2023-11-15 11:41:30 -08:00
Greg Newman
39211a469b 🐛 fix build 2023-11-03 19:25:10 -04:00
Lacey Williams Henschel
7507fa50b3 Limit file types of user and news images
- Add file type validator
- Apply validator to user image
- Save validator class to variable
- Add image validator to news image model field
- Add file size validator
- Enable file size validator on news and user model image fields
- Fix test
2023-11-03 10:21:36 -07:00
Greg Newman
5f4146cbdf 🐛 fix test for queries 2023-11-03 12:29:30 -04:00
Greg Newman
c64923b3de 🐛 fixing tests 2023-11-03 12:22:48 -04:00
Greg Newman
e740147ba6 🚧 cleaning up news list
* Added templatetag for can edit conditional
* Adding edit icons
* Rearranged top text area so title matches alignment of other sections of the site.
2023-11-03 11:53:16 -04:00
Greg Newman
069cd603bc 🚧 stubs out linkpreview service
Holding on this until after news is cleaned up

Issue: #437
2023-11-03 11:53:16 -04:00
Frank Wiles
bb8966810a Add cancel button to news forms
Fixes #764
2023-11-02 06:19:59 -05:00
Frank Wiles
13261ba6b5 Link up moderation views 2023-11-02 06:15:33 -05:00
Frank Wiles
ad119f0e70 Adjust slug and external_url from Django defaults
These fields were just using the default max lengths of 50 and 200
respectively.  Since `title`s can be up to 255 characters, adjusted
slug to be 300.

Increased external URL to be huge as it's not impactful to performance
really and avoids possible future creation issues.

Fixes #773
2023-11-02 06:00:11 -05:00
Lacey Williams Henschel
b7f6ae5dd7 - Add a published() method on the Entry manager
- Return the most recent 3 news articles on the main homepage and most recent 2 on the beta homepage, as I wasn't sure which one we were using
- Updated both homepage templates
- Updated tests
2023-08-21 09:39:42 -07:00
Lacey Williams Henschel
69565648b0 Remove preferences url, old profile templates 2023-08-08 12:19:46 -07:00
Greg Newman
e0f1d0f250 test 2023-07-05 14:46:09 -04:00
Greg Newman
149dec57cb 🐛 make tests pass 2023-07-05 14:46:09 -04:00
Greg Newman
6a6cb3b013 📝 fixing form labels 2023-07-05 14:46:09 -04:00
Natalia
7a687d0f63 Format news display date as requested in issue #435. 2023-06-26 08:20:47 -03:00
Natalia
36a61d064a Send emails when a news is posted (using notification preferences accordingly). 2023-06-22 19:23:16 -03:00
Natalia
5480b133dd Make news form creation display a longer text entry (#458). 2023-06-22 19:22:17 -03:00
Natalia
d83778bf91 Do not embed creation forms for all news types, only show links. 2023-06-21 23:00:38 -03:00
Natalia
635fb2e63c Group news creation forms into a single view (UI needs improvement, #436). 2023-06-21 23:00:38 -03:00
Natalia
2d7a566420 Test fixes. 2023-06-20 15:14:51 -04:00
Natalia
06cd04f263 Expose view for user preferences (email notifications so far).
Added tests for the new form and view for updating user preferences.
2023-06-20 12:24:40 -03:00