From bb0362bcbc22cbfb6af2bcb7dcf7170e1985d1a7 Mon Sep 17 00:00:00 2001 From: dingguodong Date: Tue, 23 Apr 2024 17:32:15 +0800 Subject: [PATCH] * Show unsupported feature tip for Gogs. --- module/mr/control.php | 1 + module/mr/ui/commitlogs.html.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/module/mr/control.php b/module/mr/control.php index 436952fee3..12346970c3 100644 --- a/module/mr/control.php +++ b/module/mr/control.php @@ -840,6 +840,7 @@ class mr extends control } $this->view->commitLogs = $commitLogs; + $this->view->repo = $repo; $this->display(); } diff --git a/module/mr/ui/commitlogs.html.php b/module/mr/ui/commitlogs.html.php index 1ce271f008..fec3c51f2d 100644 --- a/module/mr/ui/commitlogs.html.php +++ b/module/mr/ui/commitlogs.html.php @@ -114,7 +114,7 @@ panel ) ) ), - empty($commitLogs) ? p(setClass('detail-content'), $lang->mr->noChanges) : div( + empty($commitLogs) ? p(setClass('detail-content'), in_array(strtolower($repo->SCM), array('gogs')) ? $lang->mr->unsupportedFeature : $lang->mr->noChanges) : div( dtable ( set::cols($config->mr->commitLogs->dtable->fieldList),