Project

General

Profile

« Previous | Next » 

Revision f78bbe16

Added by Phil Davis over 9 years ago

Redmine #5759 print_info_box style

Define the 'success' 'info' etc style of calls to print_info_box()

View differences:

src/usr/local/www/head.inc
499 499
/* if upgrade in progress, alert user */
500 500
if (is_subsystem_dirty('packagelock') || file_exists('/conf/needs_package_sync' && platform_booting())) {
501 501
	if (file_exists('/conf/needs_package_sync') && platform_booting()) {
502
		$info_text = sprintf(gettext("%s is booting then packages will be reinstalled in the background.<p>Do not make changes in the GUI until this is complete."), $g['product_name']);
502
		$warning_text = sprintf(gettext("%s is booting then packages will be reinstalled in the background.<p>Do not make changes in the GUI until this is complete."), $g['product_name']);
503 503
	} else {
504 504
		$pgtitle = array(gettext("System"), gettext("Package Manager"));
505
		$info_text = gettext("Packages are currently being reinstalled in the background.<p>Do not make changes in the GUI until this is complete.");
506
		$info_text .= gettext("<p>If the above message is still displayed after a couple of hours, use the 'Clear Package Lock' button on the <a href='diag_backup.php' title='Backup/Restore'>Backup/Restore page</a> and reinstall packages manually.");
505
		$warning_text = gettext("Packages are currently being reinstalled in the background.<p>Do not make changes in the GUI until this is complete.");
506
		$warning_text .= gettext("<p>If the above message is still displayed after a couple of hours, use the 'Clear Package Lock' button on the <a href='diag_backup.php' title='Backup/Restore'>Backup/Restore page</a> and reinstall packages manually.");
507 507
	}
508 508

  
509
	print_info_box($info_text);
509
	print_info_box($warning_text);
510 510
}
511 511

  
512 512
$pgtitle_output = true;

Also available in: Unified diff