Fixed: display aberration on Repositories

This commit is contained in:
Squidly271 2022-11-18 12:26:20 -05:00
parent 25d3aafa0b
commit f0d6a5b52b
3 changed files with 4 additions and 10 deletions

View File

@ -22,4 +22,4 @@ da3b4f9b73c5c3bf65be6c42d68b51f9 ./scripts/showStatistics.php
34554a56611dfe625889c82afd5138de ./scripts/updatePluginSupport.php
25bdaed6f62ac73f9ef7c3ce0c125ef7 ./skins/Narrow/css.php
7eb021a105e2f7a15675ec8a14e6f05e ./skins/Narrow/skin.html
a015575aa7fce19563472924155242f6 ./skins/Narrow/skin.php
ed36cec95942703531b40378d1e6b563 ./skins/Narrow/skin.php

View File

@ -1088,11 +1088,6 @@ function displayCard($template) {
else
$author = $Author;
/* if ( $Plugin )
$author = $Author;
if ( $Language )
$author = "Unraid"; */
if ( $author == $RepoName ) {
if (strpos($author,"' Repository") )
$author = sprintf(tr("%s's Repository"),str_replace("' Repository","",$author));
@ -1132,13 +1127,12 @@ function displayCard($template) {
if ( $WebPage )
$supportContext[] = array("icon"=>"ca_webpage","link"=>$WebPage,"text"=>tr("Web Page"));
$Name = str_replace("' Repository","",str_replace("'s Repository","",$author));
$Name = str_replace(" Repository","",$Name);
$Name = str_replace(["' Repository","'s Repository"," Repository"],"",html_entity_decode($author,ENT_QUOTES));
$Name = str_replace(["'s","'s"],"",$Name);
$author = "";
}
// $display_repoName = str_replace("' Repository","",str_replace("'s Repository","",$display_repoName));
$bottomClass = "ca_bottomLineSpotLight";
if ( $DockerHub ) {
$backgroundClickable = "dockerCardBackground";