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]);
|
$fc = $this->getCommit($matches[1]);
|
||||||
$file->date = $fc->date;
|
$file->date = $fc->date;
|
||||||
$file->log = $fc->title;
|
$file->log = $fc->title;
|
||||||
|
$file->author = $fc->author;
|
||||||
} else if ($file->type == 'blob') {
|
} else if ($file->type == 'blob') {
|
||||||
$file->date = $co->date;
|
$file->date = $co->date;
|
||||||
$file->log = $co->title;
|
$file->log = $co->title;
|
||||||
|
$file->author = $co->author; // May be wrong in some cases.
|
||||||
}
|
}
|
||||||
$file->fullpath = ($folder) ? $folder.'/'.$file->file : $file->file;
|
$file->fullpath = ($folder) ? $folder.'/'.$file->file : $file->file;
|
||||||
$res[] = $file;
|
$res[] = $file;
|
||||||
|
@ -161,9 +161,8 @@ class IDF_Scm_Svn
|
|||||||
if ($file['type'] == 'blob') {
|
if ($file['type'] == 'blob') {
|
||||||
$file['size'] = (string) $entry->size;
|
$file['size'] = (string) $entry->size;
|
||||||
}
|
}
|
||||||
|
$file['author'] = $entry->commit->author;
|
||||||
$file['perm'] = '';
|
$file['perm'] = '';
|
||||||
|
|
||||||
$res[] = (object) $file;
|
$res[] = (object) $file;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
{if $file.type == 'blob'}
|
{if $file.type == 'blob'}
|
||||||
{if isset($file.date)}
|
{if isset($file.date)}
|
||||||
<td><span class="smaller">{$file.date|dateago:"wihtout"}</span></td>
|
<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}
|
{else}<td colspan="2"></td>{/if}
|
||||||
<td>{$file.size|size}</td>{/if}
|
<td>{$file.size|size}</td>{/if}
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
<td><a href="{$url}">{$file.file}</a></td>
|
<td><a href="{$url}">{$file.file}</a></td>
|
||||||
<td><span class="smaller">{$file.date|dateago:"wihtout"}</span></td>
|
<td><span class="smaller">{$file.date|dateago:"wihtout"}</span></td>
|
||||||
<td>{$file.rev}</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'}
|
{if $file.type == 'blob'}
|
||||||
<td>{$file.size|size}</td>
|
<td>{$file.size|size}</td>
|
||||||
{/if}
|
{/if}
|
||||||
|
Loading…
Reference in New Issue
Block a user