Added the display of the author of a commit in the source tree.
This commit is contained in:
parent
c797e6c7c3
commit
c113c11da5
@ -134,9 +134,11 @@ class IDF_Scm_Git
|
||||
$fc = $this->getCommit($matches[1]);
|
||||
$file->date = $fc->date;
|
||||
$file->log = $fc->title;
|
||||
$file->author = $fc->author;
|
||||
} else if ($file->type == 'blob') {
|
||||
$file->date = $co->date;
|
||||
$file->log = $co->title;
|
||||
$file->author = $co->author; // May be wrong in some cases.
|
||||
}
|
||||
$file->fullpath = ($folder) ? $folder.'/'.$file->file : $file->file;
|
||||
$res[] = $file;
|
||||
|
@ -161,9 +161,8 @@ class IDF_Scm_Svn
|
||||
if ($file['type'] == 'blob') {
|
||||
$file['size'] = (string) $entry->size;
|
||||
}
|
||||
|
||||
$file['author'] = $entry->commit->author;
|
||||
$file['perm'] = '';
|
||||
|
||||
$res[] = (object) $file;
|
||||
}
|
||||
|
||||
|
@ -35,7 +35,7 @@
|
||||
{if $file.type == 'blob'}
|
||||
{if isset($file.date)}
|
||||
<td><span class="smaller">{$file.date|dateago:"wihtout"}</span></td>
|
||||
<td><span class="smaller">{$file.log}</span></td>
|
||||
<td><span class="smaller">{$file.author|strip_tags|trim}{trans ':'} {$file.log}</span></td>
|
||||
{else}<td colspan="2"></td>{/if}
|
||||
<td>{$file.size|size}</td>{/if}
|
||||
</tr>
|
||||
|
@ -47,7 +47,7 @@
|
||||
<td><a href="{$url}">{$file.file}</a></td>
|
||||
<td><span class="smaller">{$file.date|dateago:"wihtout"}</span></td>
|
||||
<td>{$file.rev}</td>
|
||||
<td{if $file.type != 'blob'} colspan="2"{/if}><span class="smaller">{$file.log|nl2br}</span></td>
|
||||
<td{if $file.type != 'blob'} colspan="2"{/if}><span class="smaller">{$file.author|strip_tags|trim}{trans ':'} {$file.log|nl2br}</span></td>
|
||||
{if $file.type == 'blob'}
|
||||
<td>{$file.size|size}</td>
|
||||
{/if}
|
||||
|
Loading…
Reference in New Issue
Block a user