From 55ce9675b9c24eb5abdc8638a18e3a288a11bd65 Mon Sep 17 00:00:00 2001 From: Sophan Mien <53249319+sophm256@users.noreply.github.com> Date: Wed, 28 Jan 2026 21:40:41 -0600 Subject: [PATCH 1/5] Remove 'details' link. Change 'Learn more' link to 'Learn more details' --- chipy_org/apps/main/templates/main/homepage.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chipy_org/apps/main/templates/main/homepage.html b/chipy_org/apps/main/templates/main/homepage.html index 79d3cb83..b688948b 100644 --- a/chipy_org/apps/main/templates/main/homepage.html +++ b/chipy_org/apps/main/templates/main/homepage.html @@ -98,7 +98,7 @@ {% endif %} {% include "shiny/_rsvp.html" with curr_meeting=next_meeting %} -

details

+ {% endif %} @@ -132,7 +132,7 @@
{{ topic.title }}
{% endif %}

{{ topic.description|nh3|truncatewords_html:80|safe }} - Learn more + Learn more details

{% endfor %} From 5a1ca4035ff3c92f35555af80229486621accecb Mon Sep 17 00:00:00 2001 From: Sophan Mien <53249319+sophm256@users.noreply.github.com> Date: Wed, 28 Jan 2026 23:41:20 -0600 Subject: [PATCH 2/5] Add conditional that truncates in certain situations and show 'Learn more details' only when topic is truncated --- chipy_org/apps/main/templates/main/homepage.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chipy_org/apps/main/templates/main/homepage.html b/chipy_org/apps/main/templates/main/homepage.html index b688948b..94354553 100644 --- a/chipy_org/apps/main/templates/main/homepage.html +++ b/chipy_org/apps/main/templates/main/homepage.html @@ -131,8 +131,12 @@
{{ topic.title }}
{% endif %}

+ {% if topic.description|nh3|wordcount > 85 %} {{ topic.description|nh3|truncatewords_html:80|safe }} Learn more details + {% else %} + {{ topic.description|nh3|safe }} + {% endif %}

{% endfor %} From 72f32e34c7b4226393485bd03d5c0d56aee7666e Mon Sep 17 00:00:00 2001 From: Sophan Mien <53249319+sophm256@users.noreply.github.com> Date: Wed, 28 Jan 2026 23:45:59 -0600 Subject: [PATCH 3/5] Fix indentation of the template code --- chipy_org/apps/main/templates/main/homepage.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/chipy_org/apps/main/templates/main/homepage.html b/chipy_org/apps/main/templates/main/homepage.html index 94354553..6eeb57b3 100644 --- a/chipy_org/apps/main/templates/main/homepage.html +++ b/chipy_org/apps/main/templates/main/homepage.html @@ -131,12 +131,12 @@
{{ topic.title }}
{% endif %}

- {% if topic.description|nh3|wordcount > 85 %} - {{ topic.description|nh3|truncatewords_html:80|safe }} + {% if topic.description|nh3|wordcount > 85 %} + {{ topic.description|nh3|truncatewords_html:80|safe }} Learn more details - {% else %} + {% else %} {{ topic.description|nh3|safe }} - {% endif %} + {% endif %}

{% endfor %} From 5f6d2c2c09426fbfa0e061faeed64fa56df3349b Mon Sep 17 00:00:00 2001 From: Sophan Mien <53249319+sophm256@users.noreply.github.com> Date: Thu, 29 Jan 2026 00:07:55 -0600 Subject: [PATCH 4/5] Change 85 to 90 --- chipy_org/apps/main/templates/main/homepage.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chipy_org/apps/main/templates/main/homepage.html b/chipy_org/apps/main/templates/main/homepage.html index 6eeb57b3..d7f8da96 100644 --- a/chipy_org/apps/main/templates/main/homepage.html +++ b/chipy_org/apps/main/templates/main/homepage.html @@ -131,7 +131,7 @@
{{ topic.title }}
{% endif %}

- {% if topic.description|nh3|wordcount > 85 %} + {% if topic.description|nh3|wordcount > 90 %} {{ topic.description|nh3|truncatewords_html:80|safe }} Learn more details {% else %} From 1f25437451b96d1d38879aa7ce17000c848e2269 Mon Sep 17 00:00:00 2001 From: Sophan Mien <53249319+sophm256@users.noreply.github.com> Date: Thu, 29 Jan 2026 22:37:05 -0600 Subject: [PATCH 5/5] Change 'Learn more details' to 'Learn more' --- chipy_org/apps/main/templates/main/homepage.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chipy_org/apps/main/templates/main/homepage.html b/chipy_org/apps/main/templates/main/homepage.html index d7f8da96..d651d1e1 100644 --- a/chipy_org/apps/main/templates/main/homepage.html +++ b/chipy_org/apps/main/templates/main/homepage.html @@ -133,7 +133,7 @@

{{ topic.title }}

{% if topic.description|nh3|wordcount > 90 %} {{ topic.description|nh3|truncatewords_html:80|safe }} - Learn more details + Learn more {% else %} {{ topic.description|nh3|safe }} {% endif %}