Skip to content

Conversation

@sophm256
Copy link
Contributor

@sophm256 sophm256 commented Jan 29, 2026

Screenshot from 2026-01-28 21-57-59

What the results of the PR looks like.

Fixes issue #576

@sophm256
Copy link
Contributor Author

sophm256 commented Jan 29, 2026

Screenshot from 2026-01-28 23-54-34

Made one more change.

I changed it so that the "Learn more details" link only shows up under the topics that have been truncated.

I intentially set wordcount > 90 and truncatewords_html to 80 instead of them being the same. This is because I don't think wordcount treats html the same way as truncatewords_html treats html.

@eevelweezel
Copy link
Contributor

I'd rather we stick with the phrasing "learn more" or "details" vs. "learn more details", but otherwise, this looks great!

Since @JoeJasinski was the last one to work on this page, I tagged him as a reviewer. If he doesn't have any concerns, I'm inclined to approve w/ that change.

<a href="{% url 'meeting' next_meeting.pk %}">Learn more</a>
{% if topic.description|nh3|wordcount > 90 %}
{{ topic.description|nh3|truncatewords_html:80|safe }}
<a href="{% url 'meeting' next_meeting.pk %}">Learn more details</a>
Copy link
Contributor

@eevelweezel eevelweezel Jan 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep the link text as either "learn more" or "details".

@sophm256
Copy link
Contributor Author

@eevelweezel

Thanks for reviewing. Agreed, I prefer a shorter phrasing as well. I've changed it to "Learn more". The change has been made and pushed.

@sophm256 sophm256 merged commit ef3b996 into chicagopython:main Jan 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants