Skip to content

Commit 57a70ad

Browse files
authored
Merge pull request #3060 from adafruit/final-template-fixes
Final template fixes
2 parents 66e82e7 + ebdcc74 commit 57a70ad

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

Adafruit_IO_Template_Emails/template.liquid

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,70 +3,70 @@ Hi there! Here's how our little superstar did:
33
---
44
<b>🚽 Successful Wees: {{ vars.wee_progress }}</b>
55
{% for i in (1..vars.wee_progress) %}💧{% endfor %}
6-
{% if vars.wee_progress <= 5 %}
7-
Great start! Every success counts, and we're building good habits one wee at a time! 🌱
8-
{% elsif vars.wee_progress <= 15 %}
9-
Fantastic progress! You're really getting the hang of this - keep up the amazing work! 🎯
10-
{% else %}
11-
SUPERSTAR ALERT! 🌟 Absolutely crushing it with those wee successes! You're a potty champion! 🏆
6+
{% if vars.wee_progress <= 5 -%}
7+
Great start! Every success counts, and they're building good habits one wee at a time! 🌱
8+
{% elsif vars.wee_progress <= 15 -%}
9+
Fantastic progress! They're really getting the hang of this - keep up the amazing work! 🎯
10+
{% else -%}
11+
SUPERSTAR ALERT! 🌟 Absolutely crushing it with those wee successes! They're a potty champion! 🏆
1212
{% endif %}---
1313

1414
<b>💩 Successful Poos: {{ vars.poo_progress }}</b>
1515
{% for i in (1..vars.poo_progress) %}🟤{% endfor %}
16-
{% if vars.poo_progress == 0 %}
16+
{% if vars.poo_progress == 0 -%}
1717
Poos can be tricky, but they're being so brave! Every try is a step forward! 💪
18-
{% elsif vars.poo_progress < 2 %}
18+
{% elsif vars.poo_progress < 2 -%}
1919
Look at them go! They're becoming a real poo pro - that's awesome progress! 🎉
20-
{% else %}
20+
{% else -%}
2121
POO CHAMPION! 🏅 They've mastered one of the trickiest parts - so proud! 🎊
2222
{% endif %}---
2323

2424
<b>🤝 Told an Adult: {{ vars.informed_progress }}</b>
2525
{% for i in (1..vars.informed_progress) %}🗣️{% endfor %}
26-
{% if vars.informed_progress <= 5 %}
26+
{% if vars.informed_progress <= 5 -%}
2727
Communication is key! Keep practicing saying when they need to go - They're doing great! 📢
28-
{% elsif vars.informed_progress <= 15 %}
28+
{% elsif vars.informed_progress <= 15 -%}
2929
Wonderful communication skills! They're really good at letting us know - that's so helpful! 👏
30-
{% else %}
30+
{% else -%}
3131
COMMUNICATION SUPERSTAR! 🌟 They're amazing at telling adults - that's such a big kid skill! 🎯
3232
{% endif %}---
3333

3434
<b>👻 Nothing Happened: {{ vars.nothing_progress }}</b>
3535
{% for i in (1..vars.nothing_progress) %}⭕{% endfor %}
36-
{% if vars.nothing_progress <= 3 %}
37-
That's okay! Trying is what matters, and they're body will let them know when it's ready! 🌈
38-
{% else %}
36+
{% if vars.nothing_progress <= 3 -%}
37+
That's okay! Trying is what matters, and their body will let them know when it's ready! 🌈
38+
{% else -%}
3939
So patient and persistent! Even when nothing happens, they keep trying - that's real determination! 💫
4040
{% endif %}---
4141

42-
<b>📊 Week Summary:</b>
42+
<b>📊 Daily Summary:</b>
4343
{% capture total_tries -%}{{ vars.wee_progress | plus: vars.poo_progress | plus: vars.nothing_progress }}{% endcapture -%}
4444
{% capture successes -%}{{ vars.wee_progress | plus: vars.poo_progress }}{% endcapture -%}
45-
{% capture success_rate -%}{% if total_tries != 0 -%}{{ successes | times: 100 | divided_by: total_tries }}{% else -%}0{% endif -%}{% endcapture -%}
45+
{% capture success_rate -%}{% if total_tries != "0" -%}{{ successes | times: 100 | divided_by: total_tries }}{% else -%}100{% endif -%}{% endcapture -%}
4646
{% capture bar_filled -%}{{ success_rate | divided_by: 10 }}{% endcapture -%}
4747
{% capture bar_empty -%}{{ 10 | minus: bar_filled }}{% endcapture -%}
4848
Total potty visits: {{ total_tries }}
4949
Success rate: {{ success_rate }}% [{%- for i in (1..bar_filled) -%}█{%- endfor -%}{%- for i in (1..bar_empty) -%}░{%- endfor -%}]
5050
{%- assign total_events = vars.wee_progress | plus: vars.poo_progress | plus: vars.nothing_progress | plus: vars.informed_progress -%}
51-
({{ total_events }} events this week )
51+
({{ total_events }} events today )
5252
{% if total_events <= 3 %}
53-
💝 <b>This Week:</b> They're doing such a great job learning! Every day gets a little easier...
53+
💝 <b>Today:</b> They're doing such a great job learning! Every day gets a little easier...
5454
{% elsif total_events <= 5 %}
55-
🌟 <b>This Week:</b> Ayee! They're really getting the hang of this potty training thing! Keep it up!
55+
🌟 <b>Today:</b> Ayee! They're really getting the hang of this potty training thing! Keep it up!
5656
{% elsif total_events <= 8 %}
57-
🌟 <b>This Week:</b> WOW! Look at all that practice! They're becoming such a potty expert.
57+
🌟 <b>Today:</b> WOW! Look at all that practice! They're becoming such a potty expert.
5858
{% else %}
59-
🏆 <b>This Week:</b> INCREDIBLE WEEK! They're absolutely rocking this potty training journey! 🎊🎉
60-
{% endif %}
59+
🏆 <b>Today:</b> INCREDIBLE DAY! They're absolutely rocking this potty training journey! 🎊🎉
60+
{%- endif %}
6161

6262
Keep being awesome!
6363
With love and high-fives! 🙌
6464
---
65-
{% assign event_mod = total_events | modulo: 3 %}
66-
{% if event_mod == 0 %}
65+
{%- assign event_mod = total_events | modulo: 3 %}
66+
{% if event_mod == 0 -%}
6767
<i>P.S. Remember: Every expert was once a beginner - they're doing brilliantly! 🌟</i>
68-
{% elsif event_mod == 1 %}
68+
{% elsif event_mod == 1 -%}
6969
<i>P.S. Fun fact: Even superheroes had to learn to use the potty! 🦸</i>
70-
{% else %}
70+
{% else -%}
7171
<i>P.S. Remember: accidents are just practice in disguise! They're doing amazingly! 💕</i>
7272
{% endif %}

0 commit comments

Comments
 (0)