mirror of https://github.com/BOINC/boinc.git
Fixed number formatting of computer and project lists on dashboard
(DBOINCP-158)
This commit is contained in:
parent
b33e7cfa3b
commit
62e8b023e6
|
@ -955,8 +955,10 @@ function user_account_host_list_views_default_views() {
|
|||
'text' => '',
|
||||
'make_link' => 0,
|
||||
'path' => '',
|
||||
'absolute' => 0,
|
||||
'link_class' => '',
|
||||
'alt' => '',
|
||||
'rel' => '',
|
||||
'prefix' => '',
|
||||
'suffix' => '',
|
||||
'target' => '',
|
||||
|
@ -971,10 +973,14 @@ function user_account_host_list_views_default_views() {
|
|||
'empty' => '',
|
||||
'hide_empty' => 0,
|
||||
'empty_zero' => 0,
|
||||
'hide_alter_empty' => 0,
|
||||
'set_precision' => 1,
|
||||
'precision' => '0',
|
||||
'decimal' => '.',
|
||||
'separator' => ',',
|
||||
'format_plural' => 0,
|
||||
'format_plural_singular' => '1',
|
||||
'format_plural_plural' => '@count',
|
||||
'prefix' => '',
|
||||
'suffix' => '',
|
||||
'exclude' => 0,
|
||||
|
@ -993,8 +999,10 @@ function user_account_host_list_views_default_views() {
|
|||
'text' => '',
|
||||
'make_link' => 0,
|
||||
'path' => '',
|
||||
'absolute' => 0,
|
||||
'link_class' => '',
|
||||
'alt' => '',
|
||||
'rel' => '',
|
||||
'prefix' => '',
|
||||
'suffix' => '',
|
||||
'target' => '',
|
||||
|
@ -1009,10 +1017,14 @@ function user_account_host_list_views_default_views() {
|
|||
'empty' => '',
|
||||
'hide_empty' => 0,
|
||||
'empty_zero' => 0,
|
||||
'hide_alter_empty' => 0,
|
||||
'set_precision' => 1,
|
||||
'precision' => '0',
|
||||
'decimal' => '.',
|
||||
'separator' => ',',
|
||||
'format_plural' => 0,
|
||||
'format_plural_singular' => '1',
|
||||
'format_plural_plural' => '@count',
|
||||
'prefix' => '',
|
||||
'suffix' => '',
|
||||
'exclude' => 0,
|
||||
|
@ -1020,6 +1032,9 @@ function user_account_host_list_views_default_views() {
|
|||
'table' => 'host',
|
||||
'field' => 'total_credit',
|
||||
'relationship' => 'none',
|
||||
'override' => array(
|
||||
'button' => 'Use default',
|
||||
),
|
||||
),
|
||||
'rpc_time' => array(
|
||||
'label' => 'Last contact',
|
||||
|
|
|
@ -1483,8 +1483,8 @@ function boincuser_get_projects_table($account = null) {
|
|||
foreach ($projects AS $project) {
|
||||
$output .= ' <tr>' . "\n";
|
||||
$output .= " <td>{$project->name}</td>" . "\n";
|
||||
$output .= " <td class=\"numeric\">{$project->expavg_credit}</td>" . "\n";
|
||||
$output .= " <td class=\"numeric\">{$project->total_credit}</td>" . "\n";
|
||||
$output .= ' <td class="numeric">' . number_format((float) $project->expavg_credit) . '</td>' . "\n";
|
||||
$output .= ' <td class="numeric">' . number_format((float) $project->total_credit) . '</td>' . "\n";
|
||||
$output .= ' </tr>' . "\n";
|
||||
}
|
||||
$output .= '</tbody>' . "\n";
|
||||
|
|
Loading…
Reference in New Issue