Able to get at repo URL from a repo popup if in authoring mode

This commit is contained in:
Squidly271 2021-05-29 16:33:25 -04:00
parent e7cbd4a6c4
commit c31f03667a
3 changed files with 5 additions and 3 deletions

View File

@ -17,7 +17,7 @@ c31d41a1f7e894c835c2323d4a2b223f ./include/exec.php
3758b1cb84123ea534ce8fb68f92879e ./javascript/libraries.js
4a613e9480d7b3d9aa85741bd683b52f ./skins/Narrow/css.php
a65de3019ba259fb7855fac67ea28770 ./skins/Narrow/skin.html
69971e5535985823d712677e059b4aa5 ./skins/Narrow/skin.php
75191b3c6a84b2f0e608509bd0a788ed ./skins/Narrow/skin.php
38d1f40cbc64eed32cdb3292e1ec1f6e ./scripts/PluginAPI.php
bbd9dec6c5df486d75c46388c14f09ce ./scripts/installMulti.php
ce2c904b6a40c4677a3ff3484776959e ./scripts/installMultiPlugin.sh

View File

@ -869,6 +869,7 @@ function getPopupDescriptionSkin($appNumber) {
function getRepoDescriptionSkin($repository) {
global $caSettings, $caPaths, $language;
$dockerVars = parse_ini_file($caPaths['docker_cfg']);
$repositories = readJsonFile($caPaths['repositoryList']);
$templates = readJsonFile($caPaths['community-templates-info']);
$repo = $repositories[$repository];
@ -893,7 +894,6 @@ function getRepoDescriptionSkin($repository) {
else
$t .= "<div id='favMsg' class='ca_center'><span class='ca_non_favouriteRepo appIconsPopUp favPopup' data-repository='".htmlentities($repository,ENT_QUOTES)."'> ".tr("Set as favourite repository")."</span></div>";
$installLine = "<div style='display:flex;flex-wrap:wrap;justify-content:center;width:90%;margin-left:5%;'>";
$installLine .= "<div><a class='appIconsPopUp ca_repoSearchPopUp ca_showRepo' data-repository='".htmlentities($repository,ENT_QUOTES)."'> Search Apps</a></div>";
if ( $repo['WebPage'] )
@ -952,7 +952,9 @@ function getRepoDescriptionSkin($repository) {
$t .= "<tr><td style='width:50%;'>".tr("Total Plugin Applications")."</td><td style='width:30%;text-align:right;'>$totalPlugins</td></tr>";
if ( $totalLanguage )
$t .= "<tr><td style='width:50%;'>".tr("Total Languages")."</td><td style='width:30%;text-align:right;'>$totalLanguage</td></tr>";
if ($dockerVars['DOCKER_AUTHORING_MODE'] == "yes")
$t .= "<tr><td style='width:50%;'><a href='{$repo['url']}' target='_blank'>".tr("Repository URL")."</a></td></tr>";
$t .= "<tr><td style='width:50%;'>".tr("Total Applications")."</td><td style='width:30%;text-align:right;'>$totalApps</td></tr>";
if ( $downloadDockerCount && $totalDownloads ) {