changed the commit history view slighty

This commit is contained in:
hyung-hwan 2016-01-07 04:17:34 +00:00
parent 0ccf0428b2
commit 59eb080fc3
2 changed files with 25 additions and 14 deletions

View File

@ -103,7 +103,7 @@ $this->load->view (
<table id="code_history_mainarea_result_table" class="full-width-result-table"> <table id="code_history_mainarea_result_table" class="full-width-result-table">
<tr class='full-width-result-table-header'> <tr class='full-width-result-table-header'>
<th colspan=2><?php print $this->lang->line('Revision')?></th> <th><?php print $this->lang->line('Revision')?></th>
<th><?php print $this->lang->line('Committer')?></th> <th><?php print $this->lang->line('Committer')?></th>
<th><?php print $this->lang->line('Date')?></th> <th><?php print $this->lang->line('Date')?></th>
<th><?php print $this->lang->line('Message')?></th> <th><?php print $this->lang->line('Message')?></th>
@ -121,7 +121,7 @@ $this->load->view (
$rowclass = $rowclasses[($history_count - $i) % 2]; $rowclass = $rowclasses[($history_count - $i) % 2];
print "<tr class='{$rowclass}'>"; print "<tr class='{$rowclass}'>";
print '<td>'; print '<td class="commit-revision-td">';
$xfullpath = $this->converter->AsciiToHex ( $xfullpath = $this->converter->AsciiToHex (
($fullpath == '')? '.': $fullpath); ($fullpath == '')? '.': $fullpath);
@ -136,26 +136,22 @@ $this->load->view (
} }
print '</td>'; print '</td>';
print '<td>'; print '<td class="commit-author-td">';
print anchor ("code/revision/{$project->id}/{$xfullpath}/{$h['rev']}", // Repository migration from googlecode revealed that it did not put
'<i class="fa fa-newspaper-o"></i>');
print '</td>';
print '<td>';
// Repository migration from googlecode reveales that it did not put
// 'author' for initial project creation. So I've added the following check. // 'author' for initial project creation. So I've added the following check.
if (array_key_exists('author', $h)) print htmlspecialchars($h['author']); if (array_key_exists('author', $h)) print htmlspecialchars($h['author']);
print '</td>'; print '</td>';
print '<td><code>'; print '<td class="commit-date-td"><code>';
//print date('r', strtotime($h['date'])); //print date('r', strtotime($h['date']));
print date('Y-m-d', strtotime($h['date'])); print date('Y-m-d', strtotime($h['date']));
print '</code></td>'; print '</code></td>';
print '<td>'; print '<td class="commit-message-td">';
print '<pre class="pre-wrapped">'; print anchor ("code/revision/{$project->id}/{$xfullpath}/{$h['rev']}", htmlspecialchars($h['msg']), "class='commit-message'");
print htmlspecialchars($h['msg']); //print '<pre class="pre-wrapped">';
print '</pre>'; //print htmlspecialchars($h['msg']);
//print '</pre>';
print '</td>'; print '</td>';
print '<td>'; print '<td>';

View File

@ -159,6 +159,21 @@
background-color: #AABBFF; background-color: #AABBFF;
} }
#code_history_mainarea_result_table td.commit-message-td:hover {
background-color: #F0F0F0;
}
#code_history_mainarea_result_table a.commit-message,
#code_history_mainarea_result_table a.commit-message:visited,
#code_history_mainarea_result_table a.commit-message:focus {
color: inherit;
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
font-family: consolas, monaco, "Andale Mono", monospace;
}
/*----------------------------------------------- /*-----------------------------------------------
* project source revision view * project source revision view
*-----------------------------------------------*/ *-----------------------------------------------*/