added the user home links in the code blame view

This commit is contained in:
hyung-hwan 2016-12-29 16:23:57 +00:00
parent 6e7208ded7
commit 27db06ba63
2 changed files with 7 additions and 4 deletions

View File

@ -350,7 +350,10 @@ $this->load->view (
$author = $line['author'];
//$author_to_show = str_pad ($author, 9, ' ', STR_PAD_RIGHT);
//$author_to_show = substr($author_to_show, 0, 9);
$author_to_show = $author;
//$author_to_show = $author;
$author_home_url = codepot_merge_path (site_url(), '/user/home/' . $this->converter->AsciiToHex($author));
$author_to_show = "<a href='{$author_home_url}'>" . htmlspecialchars($author) . "</a>";
}
else
{

View File

@ -255,7 +255,7 @@
#code_history_result_table td.commit-revision-td {
display: flex;
flex-wrap: wrap;
flex-wrap: nowrap;
justify-content: space-between;
vertical-align: middle;
line-height: 1.2em;
@ -271,7 +271,7 @@
#code_history_result_table .commit-revision-and-datetime {
display: flex;
flex-wrap: wrap;
flex-wrap: nowrap;
justify-content: flex-start;
vertical-align: middle;
}
@ -299,7 +299,7 @@
#code_history_result_table .commit-actions {
display: flex;
flex-wrap: wrap;
flex-wrap: nowrap;
justify-content: flex-end;
vertical-align: middle;
}