From c0751b3615d50ddf62d055870386384767e503b4 Mon Sep 17 00:00:00 2001 From: x Date: Mon, 10 Jun 2024 15:14:42 +0200 Subject: [PATCH] git --- resources/views/layout1/git.blade.php | 5 ++++- resources/views/layout2/git.blade.php | 31 +++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 resources/views/layout2/git.blade.php diff --git a/resources/views/layout1/git.blade.php b/resources/views/layout1/git.blade.php index 29d0cae..feef14d 100644 --- a/resources/views/layout1/git.blade.php +++ b/resources/views/layout1/git.blade.php @@ -21,8 +21,11 @@ function getLastTenCommits() { echo ""; } +echo "
"; +echo "
GIT LOG
"; getLatestCommit(); -getLastTenCommits() +getLastTenCommits(); +echo "
"; ?> @endsection diff --git a/resources/views/layout2/git.blade.php b/resources/views/layout2/git.blade.php new file mode 100644 index 0000000..d7e5519 --- /dev/null +++ b/resources/views/layout2/git.blade.php @@ -0,0 +1,31 @@ +@extends('profilelayout') +@section('novidcontent') +"; + echo "Latest commit"; + //echo "

$commitID

"; + echo "
$latestCommit
"; + echo ""; +} + +function getLastTenCommits() { + $lastTenCommits = shell_exec('git log -n 10'); + echo "
"; + echo "Last 10 Commits"; + echo "
$lastTenCommits
"; + echo "
"; +} + +echo "
"; +echo "
GIT LOG
"; +getLatestCommit(); +getLastTenCommits(); +echo "
"; +?> + +@endsection \ No newline at end of file