showed a committer icon in the code history view
This commit is contained in:
		| @ -108,7 +108,7 @@ $this->load->view ( | |||||||
| <div id="code_history_result" class="codepot-relative-container-view"> | <div id="code_history_result" class="codepot-relative-container-view"> | ||||||
| 	<table id="code_history_result_table" class="codepot-full-width-table codepot-spacious-table"> | 	<table id="code_history_result_table" class="codepot-full-width-table codepot-spacious-table"> | ||||||
| 	<tr class='codepot-full-width-table-header'> | 	<tr class='codepot-full-width-table-header'> | ||||||
| 		<th><?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> | ||||||
| @ -144,7 +144,13 @@ $this->load->view ( | |||||||
| 			print '<td class="commit-author-td">'; | 			print '<td class="commit-author-td">'; | ||||||
| 			// Repository migration from googlecode revealed that it did not put  | 			// Repository migration from googlecode revealed 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))  | ||||||
|  | 			{ | ||||||
|  | 				$user_icon_url = codepot_merge_path (site_url(), '/user/icon/' . $this->converter->AsciiToHex($h['author'])); | ||||||
|  |                 		print "<img src='{$user_icon_url}' class='codepot-committer-icon-24x24' />"; | ||||||
|  |  | ||||||
|  | 				print htmlspecialchars($h['author']); | ||||||
|  | 			} | ||||||
| 			print '</td>'; | 			print '</td>'; | ||||||
|  |  | ||||||
| 			print '<td class="commit-date-td"><tt>'; | 			print '<td class="commit-date-td"><tt>'; | ||||||
|  | |||||||
| @ -1000,6 +1000,17 @@ pre.codepot-line-numbered span.codepot-line-number-clear { | |||||||
| 	width: 100%; | 	width: 100%; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | .codepot-committer-icon-24x24 { | ||||||
|  |         width: 24px; | ||||||
|  | 	height: 24px; | ||||||
|  |         vertical-align: middle; | ||||||
|  |         margin-right: 2px; | ||||||
|  |  | ||||||
|  |         -moz-border-radius: 3px; | ||||||
|  |         -webkit-border-radius: 3px; | ||||||
|  |         border-radius: 3px; | ||||||
|  | } | ||||||
|  |  | ||||||
| /* === footer === */ | /* === footer === */ | ||||||
| .codepot-footer-pusher { | .codepot-footer-pusher { | ||||||
| 	clear: both; | 	clear: both; | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user