Do not display pairing action buttons when pairing is empty

This commit is contained in:
Claude Brisson
2025-07-25 05:19:19 +02:00
parent c3cb5826a3
commit 0cc34a1f84
2 changed files with 6 additions and 3 deletions

View File

@@ -377,6 +377,9 @@
width: 6em; width: 6em;
} }
} }
&:empty + .pairing-post-actions {
display: none;
}
} }
#print-pairables { #print-pairables {
width: 100%; width: 100%;

View File

@@ -69,7 +69,7 @@
</button> </button>
</div> </div>
<div> <div>
<div id="paired" class="multi-select" title="white vs. black"> <div id="paired" class="multi-select" title="white vs. black">##
#foreach($game in $games) #foreach($game in $games)
#set($white = $pmap[$game.w]) #set($white = $pmap[$game.w])
#set($black = $pmap[$game.b]) #set($black = $pmap[$game.b])
@@ -80,8 +80,8 @@
<div class="black" data-id="$game.b">#if($black)$black.name#if($black.firstname) $black.firstname#end#{else}BIP#end</div> <div class="black" data-id="$game.b">#if($black)$black.name#if($black.firstname) $black.firstname#end#{else}BIP#end</div>
<div class="handicap" data-value="$game.h">#if($game.h)h$game.h#{else}&nbsp;#end</div> <div class="handicap" data-value="$game.h">#if($game.h)h$game.h#{else}&nbsp;#end</div>
</div> </div>
#end #end##
</div> #* *#</div>
#if(!$tour.type.startsWith('TEAM')) #if(!$tour.type.startsWith('TEAM'))
<div class="pairing-post-actions"> <div class="pairing-post-actions">
<a href="result-sheets?id=${tour.id}&round=${round}" target="_blank" class="ui mini floating icon button">result sheets <i class="fa fa-external-link"></i></a> <a href="result-sheets?id=${tour.id}&round=${round}" target="_blank" class="ui mini floating icon button">result sheets <i class="fa fa-external-link"></i></a>