git
This commit is contained in:
@@ -21,8 +21,11 @@ function getLastTenCommits() {
|
|||||||
echo "</div>";
|
echo "</div>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo "<div class='box'>";
|
||||||
|
echo "<h5>GIT LOG</h5>";
|
||||||
getLatestCommit();
|
getLatestCommit();
|
||||||
getLastTenCommits()
|
getLastTenCommits();
|
||||||
|
echo "</div>";
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
31
resources/views/layout2/git.blade.php
Normal file
31
resources/views/layout2/git.blade.php
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
@extends('profilelayout')
|
||||||
|
@section('novidcontent')
|
||||||
|
<?php
|
||||||
|
|
||||||
|
function getLatestCommit() {
|
||||||
|
$latestCommit = shell_exec('git log -n 1');
|
||||||
|
$getcommitID = substr($latestCommit,0,48);
|
||||||
|
$commitID = substr($getcommitID, 7);
|
||||||
|
echo "<div class='box'>";
|
||||||
|
echo "<span>Latest commit</span>";
|
||||||
|
//echo "<h4><a style='color:white' href='https://git.lat/w0bm/w0bm/commit/$commitID' target='_blank'>$commitID</a></h4>";
|
||||||
|
echo "<pre>$latestCommit</pre>";
|
||||||
|
echo "</div>";
|
||||||
|
}
|
||||||
|
|
||||||
|
function getLastTenCommits() {
|
||||||
|
$lastTenCommits = shell_exec('git log -n 10');
|
||||||
|
echo "<div class='box'>";
|
||||||
|
echo "<span>Last 10 Commits</span>";
|
||||||
|
echo "<pre>$lastTenCommits</pre>";
|
||||||
|
echo "</div>";
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "<div class='box'>";
|
||||||
|
echo "<h5>GIT LOG</h5>";
|
||||||
|
getLatestCommit();
|
||||||
|
getLastTenCommits();
|
||||||
|
echo "</div>";
|
||||||
|
?>
|
||||||
|
|
||||||
|
@endsection
|
Reference in New Issue
Block a user