From b44d86dc546f2d2736f2cdc040771dafc15d77bc Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Mon, 18 Jan 2016 04:32:32 +0000 Subject: [PATCH] showed a committer icon in the code history view --- codepot/src/codepot/views/code_history.php | 10 ++++++++-- codepot/src/css/common.css | 11 +++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/codepot/src/codepot/views/code_history.php b/codepot/src/codepot/views/code_history.php index 280a7859..68c7947f 100644 --- a/codepot/src/codepot/views/code_history.php +++ b/codepot/src/codepot/views/code_history.php @@ -108,7 +108,7 @@ $this->load->view (
- + @@ -144,7 +144,13 @@ $this->load->view ( print ''; print '
lang->line('Revision')?>lang->line('Revision')*/ ?> lang->line('Committer')?> lang->line('Date')?> lang->line('Message')?>'; // Repository migration from googlecode revealed that it did not put // '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 ""; + + print htmlspecialchars($h['author']); + } print ''; diff --git a/codepot/src/css/common.css b/codepot/src/css/common.css index 533fbe43..31916fd7 100644 --- a/codepot/src/css/common.css +++ b/codepot/src/css/common.css @@ -1000,6 +1000,17 @@ pre.codepot-line-numbered span.codepot-line-number-clear { 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 === */ .codepot-footer-pusher { clear: both;