mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Merge pull request #9504 from appwrite/fix-github-comment
Fix github comment
This commit is contained in:
commit
bfdd2b65dc
1 changed files with 2 additions and 2 deletions
|
|
@ -111,7 +111,7 @@ class Comment
|
||||||
};
|
};
|
||||||
|
|
||||||
if ($site['action']['type'] === 'logs') {
|
if ($site['action']['type'] === 'logs') {
|
||||||
$action = '[View Logs](' . $protocol . '://' . $hostname . '/console/project-' . $projectId . '/sites/site-' . $siteId . '/deployment-' . $site['deploymentId'] . ')';
|
$action = '[View Logs](' . $protocol . '://' . $hostname . '/console/project-' . $projectId . '/sites/site-' . $siteId . '/deployments/deployment-' . $site['deploymentId'] . ')';
|
||||||
} else {
|
} else {
|
||||||
$action = '[Authorize](' . $site['action']['url'] . ')';
|
$action = '[Authorize](' . $site['action']['url'] . ')';
|
||||||
}
|
}
|
||||||
|
|
@ -132,7 +132,7 @@ class Comment
|
||||||
foreach ($project['function'] as $functionId => $function) {
|
foreach ($project['function'] as $functionId => $function) {
|
||||||
$generateImage = function (string $status) use ($protocol, $hostname) {
|
$generateImage = function (string $status) use ($protocol, $hostname) {
|
||||||
$extention = $status === 'building' ? 'gif' : 'png';
|
$extention = $status === 'building' ? 'gif' : 'png';
|
||||||
$imagesUrl = $protocol . '://' . $hostname . '/images/vcs/';
|
$imagesUrl = $protocol . '://' . $hostname . '/console/images/vcs/';
|
||||||
$imageUrl = '<picture><source media="(prefers-color-scheme: dark)" srcset="' . $imagesUrl . 'status-' . $status . '-dark.' . $extention . '"><img alt="' . $status . '" height="25" align="center" src="' . $imagesUrl . 'status-' . $status . '-light.' . $extention . '"></picture>';
|
$imageUrl = '<picture><source media="(prefers-color-scheme: dark)" srcset="' . $imagesUrl . 'status-' . $status . '-dark.' . $extention . '"><img alt="' . $status . '" height="25" align="center" src="' . $imagesUrl . 'status-' . $status . '-light.' . $extention . '"></picture>';
|
||||||
return $imageUrl;
|
return $imageUrl;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue