#if($TabName == $ResourceBundle.getString('ConfluenceRepositoryConnector.Spaces') && ${SeqNum} == ${SelectedNum})

#set($spacecounter = 0) #foreach($space in $SPACES)
| $Encoder.bodyEscape($space)
#set($spacecounter = $spacecounter + 1) #end #set($nextspace = $spacecounter + 1) #if($spacecounter == 0)
$Encoder.bodyEscape($ResourceBundle.getString('ConfluenceRepositoryConnector.NoSpacesConfigured'))
#end

#else #set($spacecounter = 0) #foreach($space in $SPACES) #set($spacecounter = $spacecounter + 1) #end #end