Skip to content

Commit

Permalink
Only show Global and Default cols for User Profiles
Browse files Browse the repository at this point in the history
These columns do not make sense when managing Global Profiles.

Fixes #27256
  • Loading branch information
dregad committed Sep 18, 2020
1 parent 5c7a153 commit 53d584d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion account_prof_menu_page.php
Expand Up @@ -113,8 +113,14 @@
<th><?php echo lang_get( 'platform' ) ?></th>
<th><?php echo lang_get( 'os' ) ?></th>
<th><?php echo lang_get( 'os_build' ) ?></th>
<?php
if( !$g_global_profiles ) {
?>
<th><?php echo lang_get( 'global_profile' ) ?></th>
<th><?php echo lang_get( 'default_profile' ) ?></th>
<?php
}
?>
<th class="center"><?php echo lang_get( 'actions' ) ?></th>
</tr>
</thead>
Expand All @@ -140,6 +146,9 @@
<td><?php echo string_display_line( $v_platform ); ?></td>
<td><?php echo string_display_line( $v_os ); ?></td>
<td><?php echo string_display_line( $v_os_build ); ?></td>
<?php
if( !$g_global_profiles ) {
?>
<td class="center">
<?php if( $t_is_global_profile ) { ?>
<i class="ace-icon fa fa-check fa-lg"></i>
Expand All @@ -150,7 +159,9 @@
<i class="ace-icon fa fa-check fa-lg"></i>
<?php } ?>
</td>

<?php
}
?>
<td class="center">
<div class="btn-group inline">
<?php
Expand Down

0 comments on commit 53d584d

Please sign in to comment.