Skip to content

Commit

Permalink
Only display spacer row when necessary
Browse files Browse the repository at this point in the history
If there are no existing branch mappings, the spacer row is useless

Fixes #244
  • Loading branch information
dregad committed Sep 14, 2017
1 parent 10d69ce commit 39cdcb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/pages/repo_manage_page.php
Expand Up @@ -199,9 +199,9 @@ function convert_to_key_value( $p_array ) {
$t_disabled = 'disabled';
if( is_null( $t_mapping->branch ) ) {
$t_disabled = '';
?>
<tr class="spacer"></tr><tr></tr>
<?php
if( count( $t_mappings ) > 1 ) {
echo '<tr class="spacer"></tr>';
}
}
?>
<tr>
Expand Down

0 comments on commit 39cdcb9

Please sign in to comment.