summaryrefslogtreecommitdiff
path: root/template/macros.html
diff options
context:
space:
mode:
Diffstat (limited to 'template/macros.html')
-rw-r--r--template/macros.html14
1 files changed, 11 insertions, 3 deletions
diff --git a/template/macros.html b/template/macros.html
index 619ad2e..09cd7ea 100644
--- a/template/macros.html
+++ b/template/macros.html
@@ -18,7 +18,11 @@
{% if 'label' in segment %}
{{segment['label']}}
{% else %}
- {{segment['round']}}-{{segment['segment']}}
+ {% if per_round > 1 %}
+ {{segment['round']}}-{{segment['segment']}}
+ {% else %}
+ {{segment['round']}}
+ {% endif %}
{% endif %}
</a>
{% endfor %}
@@ -30,7 +34,7 @@
</tr>
{% endmacro %}
-{% macro table_header(segments, segment_limit, prefix) %}
+{% macro table_header(segments, segment_limit, prefix, per_round) %}
<tr>
<td class="bdcc12">{{"HEADER_PLACE"|translate}}</td>
<td class="bdcc2">&nbsp;</td>
@@ -47,7 +51,11 @@
{% if 'label' in segment %}
{{segment['label']}}
{% else %}
- {{segment['round']}}-{{segment['segment']}}
+ {% if per_round > 1 %}
+ {{segment['round']}}-{{segment['segment']}}
+ {% else %}
+ {{segment['round']}}
+ {% endif %}
{% endif %}
</a>
</td>