| |
@@ -26,7 +26,11 @@
|
| |
{% url 'messaging:start' as url %}
|
| |
<a href="{{ url }}"><img src="{% static 'images/logo.png' %}" alt="Open-Source Happiness Packets" class="logo"/></a>
|
| |
<ul class="nav nav-stacked">
|
| |
- <li><a>Packets sent: <b>{{ packets_sent }}</b></a></li>
|
| |
+ {% if packets_sent == 0 %}
|
| |
+ <li><a>Total Happiness Spread: <b>{{ packets_sent }} π</b></a></li>
|
| |
+ {% else %}
|
| |
+ <li><a>Total Happiness Spread: <b>{{ packets_sent }} π</b></a></li>
|
| |
+ {% endif %}
|
| |
{% url 'messaging:send' as url %}
|
| |
<li role="presentation" {% if url in request.path %}class="active"{% endif %}><a href="{{ url }}">Send some happiness!</a></li>
|
| |
{% url 'messaging:start' as url %}
|
| |
My first Pull Request is changing the label in navigation bar for better wording.
This commit commit includes:
1. Changed "Packet Sent" to "Total Happiness Spread" in the navigation bar.
2. Added emoji πto display when no packets are exchanged, and emoji π when there are packets exchanged using if else.
3. Fixed the indentation in the if/else block as needed.
As per issue 145: https://pagure.io/fedora-commops/fedora-happiness-packets/issue/145