diff options
author | emkael <emkael@tlen.pl> | 2017-01-17 01:26:10 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-01-17 01:26:10 +0100 |
commit | 9adc34fa8039d34a6b88e28e7be36feb1f3c93b8 (patch) | |
tree | 35990b89d36004afd42c68b5a1b2b16098d936a5 /template/macros.html | |
parent | d0ba0cbae2726abc32b638a12d3b176c939c6857 (diff) |
Previous butler from old database is carried over
Diffstat (limited to 'template/macros.html')
-rw-r--r-- | template/macros.html | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/template/macros.html b/template/macros.html index 84ae27c..619ad2e 100644 --- a/template/macros.html +++ b/template/macros.html @@ -9,8 +9,17 @@ <td class="bdnl12" colspan="{{segment_limit+5}}"> {{"HEADER_PREV_ROUNDS"|translate}} {% for segment in segments[0:-segment_limit] %} - |<a href="{{prefix}}normbutler{{segment['round']}}-{{segment['segment']}}.htm"> + | + {% if 'link' in segment %} + <a href="{{segment['link']}}"> + {% else %} + <a href="{{prefix}}normbutler{{segment['round']}}-{{segment['segment']}}.htm"> + {% endif %} + {% if 'label' in segment %} + {{segment['label']}} + {% else %} {{segment['round']}}-{{segment['segment']}} + {% endif %} </a> {% endfor %} | @@ -30,8 +39,16 @@ <td class="bdcc2">{{"HEADER_BOARDS"|translate}}</td> {% for segment in segments[-segment_limit:] %} <td class="bdcc2"> + {% if 'link' in segment %} + <a href="{{segment['link']}}"> + {% else %} <a href="{{prefix}}normbutler{{segment['round']}}-{{segment['segment']}}.htm"> + {% endif %} + {% if 'label' in segment %} + {{segment['label']}} + {% else %} {{segment['round']}}-{{segment['segment']}} + {% endif %} </a> </td> {% endfor %} |