src/php/lib/class.LinfoOutput.php
/**
	 * Create a progress bar looking thingy. Put into a function here
	 * as its being increasingly used elsewhere. TODO refactor linfo and
	 * stop leaving functions in global namespace
	 */
Create a progress bar looking thingy. Put into a function here
as its being increasingly used elsewhere. TODO refactor linfo and
stop leaving functions in global namespace
Create a progress bar looking thingy . Put into a function here as its being increasingly used elsewhere . TODO refactor linfo and stop leaving functions in global namespace
public static function generateBarChart($percent, $text = false) {
		return '
			<div class="new_bar_outer">
				<div class="new_bar_bg" style="width: '.$percent.'%; "></div>
				<div class="new_bar_text">'.($text ?: $percent.'%').'</div>
			</div>
		';
	}
public static function generateBarChart ( $ percent , $ text = false ) { return '
			<div class="new_bar_outer">
				<div class="new_bar_bg" style="width: ' . $ percent . '%; "></div>
				<div class="new_bar_text">' . ( $ text ? : $ percent . '%' ) . '</div>
			</div>
		' ; }
Create a progress bar looking thingy.
Create a progress bar looking thingy .