Skip to main content

max / makenotwork

298 B · 10 lines History Blame Raw
1 {% if let Some(url) = discussion_url %}
2 <div class="discussion-section">
3 <h3>Discussion</h3>
4 {% if let Some(count) = discussion_count %}
5 <p>{{ count }} {% if *count == 1 %}post{% else %}posts{% endif %}</p>
6 {% endif %}
7 <a href="{{ url }}">View discussion</a>
8 </div>
9 {% endif %}
10