Added links to the name columns on Computers and Projects dashboard lists for consistency

(DBOINCP-23)
This commit is contained in:
Tristan Olive 2015-07-17 17:43:49 -04:00
parent 82627e5e5f
commit 1350800045
3 changed files with 2 additions and 4 deletions

View File

@ -1615,7 +1615,7 @@ function boincuser_get_projects_table($account = null) {
$output .= '<tbody>' . "\n";
foreach ($projects AS $project) {
$output .= ' <tr>' . "\n";
$output .= " <td>{$project->name}</td>" . "\n";
$output .= ' <td>' . l($project->name, '', array('fragment' => ' ', 'html' => TRUE, 'external' => TRUE)) . '</td>' . "\n";
$output .= ' <td class="numeric">' . boincwork_format_stats((float) $project->expavg_credit) . '</td>' . "\n";
$output .= ' <td class="numeric">' . boincwork_format_stats((float) $project->total_credit) . '</td>' . "\n";
$output .= ' </tr>' . "\n";

View File

@ -666,8 +666,6 @@ a.help.button {
}
table tr.link:hover {
background-color: #e8e8e8;
cursor: pointer;
}
table tr.inactive {
color: #d0d0d0;

View File

@ -23,7 +23,7 @@
<tbody>
<?php foreach ($rows as $row): ?>
<tr class="link <?php print ($row['rpc_time'] < $inactive_threshold) ? 'inactive' : ''; ?>" dest="<?php print $base_path; ?>host/<?php print $row['id']; ?>">
<td><?php print $row['domain_name']; ?>
<td><?php print l($row['domain_name'], "host/{$row['id']}"); ?>
<td class="numeric"><?php print $row['expavg_credit']; ?>
<td class="numeric"><?php print $row['total_credit']; ?>
</tr>