Fix dashboard project list alignment

Added "numeric" class to credit columns for consistent alignment

(DBOINCP-42)
This commit is contained in:
Tristan Olive 2014-01-27 17:14:06 -05:00
parent 57bab039cd
commit c64463e1c9
1 changed files with 4 additions and 4 deletions

View File

@ -1112,16 +1112,16 @@ function boincuser_get_projects_table($account = null) {
$output .= '<thead>' . "\n";
$output .= ' <tr>' . "\n";
$output .= ' <th>' . t('Name') . '</th>' . "\n";
$output .= ' <th>' . t('Avg credit') . '</th>' . "\n";
$output .= ' <th>' . t('Total credit') . '</th>' . "\n";
$output .= ' <th class="numeric">' . t('Avg credit') . '</th>' . "\n";
$output .= ' <th class="numeric">' . t('Total credit') . '</th>' . "\n";
$output .= ' </tr>' . "\n";
$output .= '</thead>' . "\n";
$output .= '<tbody>' . "\n";
foreach ($projects AS $project) {
$output .= ' <tr>' . "\n";
$output .= " <td>{$project->name}</td>" . "\n";
$output .= " <td>{$project->expavg_credit}</td>" . "\n";
$output .= " <td>{$project->total_credit}</td>" . "\n";
$output .= " <td class=\"numeric\">{$project->expavg_credit}</td>" . "\n";
$output .= " <td class=\"numeric\">{$project->total_credit}</td>" . "\n";
$output .= ' </tr>' . "\n";
}
$output .= '</tbody>' . "\n";