fix sysmod git
This commit is contained in:
parent
fd094afebf
commit
9cc47870b9
@ -41,12 +41,12 @@ class saimod_sys_git extends \SYSTEM\SAI\sai_module {
|
||||
$git = $gits[$i];
|
||||
try{
|
||||
$repo = \GIT\Git::open($git['path']);
|
||||
$git['git_project'] = $repo->run('ls-remote --get-url').'<br><br>';
|
||||
$git['git_project'] .= nl2br(htmlentities($repo->run('log --date=relative --graph -3')));
|
||||
$git['git_url'] = $repo->run('ls-remote --get-url').'<br><br>';
|
||||
$git['git_project'] = nl2br(htmlentities($repo->run('log --date=relative --graph -3')));
|
||||
|
||||
$subs = explode("\n",$repo->run('config --file .gitmodules --get-regexp path'));
|
||||
foreach($subs as $sub){
|
||||
if($sub == ''){
|
||||
if($sub == ''){
|
||||
continue;}
|
||||
$gits[] = array('title' => $git['title'].'/'.explode('.',$sub)[1],
|
||||
'path' => $git['path'].preg_replace('/\s+/', '', explode('path ',$sub)[1]).'/');
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
<div class="col-12 sai_padding_10 bg-primary">
|
||||
<h4 class="sai_margin_off"> <span class="fa fa-git" aria-hidden="true"></span> ${sai_git_title}</h4>
|
||||
</div>
|
||||
<div class="col-md-12 sai_padding_off sai_border_left" id="tab_content">
|
||||
<div class="row-fluid">
|
||||
<div class="col-md-12" id="tab_content">
|
||||
<div class="row">
|
||||
${panels}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -1,10 +1,9 @@
|
||||
<div class="col-md-6">
|
||||
<div id="project" class="panel panel-default sai_gridbox">
|
||||
<div class="panel-heading"><b>${title}</b></div>
|
||||
<div class="panel-body">
|
||||
<div class="inner-page">
|
||||
${git_project}
|
||||
</div>
|
||||
<div class="col-4 p-2">
|
||||
<div id="project" class="card sai_gridbox">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">${title}</h4>
|
||||
<p class="card-text">${git_project}</p>
|
||||
<p class="card-link" href="${git_url}">${git_url}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
x
Reference in New Issue
Block a user