File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed
Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change 7575 < div class ="actions-panel clearfix ">
7676 < div class ="actions-panel__col actions-panel__edit shortcut-enter " key-action ="href "> < a href ="/edit/package/?package=<?=$key?>&token=<?=$_SESSION['token']?> " title ="<?=_('Editing Package')?> "> < i class ="fas fa-pencil-alt status-icon orange status-icon dim "> </ i > </ a > </ div >
7777 < div class ="actions-panel__col actions-panel__edit " key-action ="href "> < a href ="/copy/package/?package=<?=$key?>&token=<?=$_SESSION['token']?> " title ="<?=_('Copy')?> "> < i class ="fas fa-clone status-icon teal status-icon dim "> </ i > </ a > </ div >
78- < div class ="actions-panel__col actions-panel__delete shortcut-delete " key-action ="js ">
79- < a id ="delete_link_<?=$i?> " class ="data-controls do_delete " title ="<?=_('Delete')?> ">
80- < i class ="fas fa-trash status-icon red status-icon dim do_delete "> </ i >
81- < input type ="hidden " name ="delete_url " value ="/delete/package/?package=<?=$key?>&token=<?=$_SESSION['token']?> " />
82- < div id ="delete_dialog_<?=$i?> " class ="confirmation-text-delete hidden " title ="<?=_('Confirmation')?> ">
83- < p class ="confirmation "> < ?=sprintf(_('DELETE_PACKAGE_CONFIRMATION'),$key)?> </ p >
84- </ div >
85- </ a >
86- </ div >
78+ < ? if ($key == 'default') {?>
79+ <!-- Hide option to delete the default package -->
80+ < ? } else {?>
81+ < div class ="actions-panel__col actions-panel__delete shortcut-delete " key-action ="js ">
82+ < a id ="delete_link_<?=$i?> " class ="data-controls do_delete " title ="<?=_('Delete')?> ">
83+ < i class ="fas fa-trash status-icon red status-icon dim do_delete "> </ i >
84+ < input type ="hidden " name ="delete_url " value ="/delete/package/?package=<?=$key?>&token=<?=$_SESSION['token']?> " />
85+ < div id ="delete_dialog_<?=$i?> " class ="confirmation-text-delete hidden " title ="<?=_('Confirmation')?> ">
86+ < p class ="confirmation "> < ?=sprintf(_('DELETE_PACKAGE_CONFIRMATION'),$key)?> </ p >
87+ </ div >
88+ </ a >
89+ </ div >
90+ < ? } ?>
8791 </ div >
8892 </ div >
8993 </ div >
You can’t perform that action at this time.
0 commit comments