WesternFriend / westernfriend.org

A website for Western Friend (westernfriend.org), a Quaker publication that provides resources and support for Quaker communities and individuals seeking to live out their faith in the world. Western Friend is part of the Religious Society of Friends.
https://westernfriend.org
GNU Affero General Public License v3.0
53 stars 41 forks source link

Standardize search result templates #1092

Closed brylie closed 1 month ago

brylie commented 1 month ago

Closes #1066

Updates search result templates to follow a standardized format across the site.


For more details, open the Copilot Workspace session.

Summary by Sourcery

This pull request standardizes the search result templates across the site by updating the HTML structure to use a Bootstrap card body format, ensuring consistent appearance and layout. It also removes the content type in parentheses next to the title for a cleaner display and maintains the core search functionality.

sourcery-ai[bot] commented 1 month ago

Reviewer's Guide by Sourcery

This pull request standardizes the HTML structure of search result templates across the site to use a Bootstrap card body format. It ensures a consistent appearance and layout by updating titles to use an H2 element with Bootstrap classes and wrapping titles in a card title link. Additionally, it removes the content type in parentheses next to the title across all search templates and adjusts the fallback display for search results without a specific template. The core search functionality in search/views.py remains unchanged.

File-Level Changes

Files Changes
search/templates/search/online_worship.html
search/templates/search/magazine_article.html
search/templates/search/community_directory.html
search/templates/search/event.html
search/templates/search/magazine_issue.html
search/templates/search/meeting.html
search/templates/search/organization.html
Standardized the HTML structure to use a Bootstrap card body format, updated titles to H2 elements with Bootstrap classes, and wrapped titles in card title links.
search/templates/search/search.html Adjusted fallback display to use Bootstrap card body format and removed content type in parentheses next to the title.
search/views.py Maintained core search functionality with a minor comment change.

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.
sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud