Commit 207a6aaf authored by Fabrice Gangler's avatar Fabrice Gangler 🎨
Browse files

FIX(mapping): improve view by adding software link

Refs: #922
parent 1f088478
Pipeline #10160 passed with stage
in 4 minutes and 8 seconds
......@@ -34,8 +34,13 @@ $pageUpdateDate = $this->Time->format($lastUpdate, [IntlDateFormatter::LONG, -1]
// [-1, IntlDateFormatter::FULL] ---> "vendredi 24 avril 2020" | "Friday, April 24, 2020"
$softwareName = $software->softwarename;
$softwareLink = $this->Html->link(
$softwareName,
"/$selectedLanguage/softwares/". $softwareId,
["title" => __d("Softwares", "software.softwareName") . $software->softwarename]
);
$headTitle = __d("Taxonomy", "TaxonomySoftware.UserOf.Software_forOneTaxon.Title", $softwareName, $taxonName);
$h1 = __d("Taxonomy", "TaxonomySoftware.UserOf.Software_forOneTaxon.H1", $softwareName, $taxonName);
$h1 = __d("Taxonomy", "TaxonomySoftware.UserOf.Software_forOneTaxon.H1", $softwareLink, $taxonName);
$subTitle = __d("Taxonomy", "TaxonomySoftware.UserOf.Software_forOneTaxon.subTitle", $softwareName, $taxonName);
$attId = "mappingTaxon$taxonId-UsersOf$softwareId";
......@@ -44,6 +49,7 @@ $this->assign('title', $headTitle);
<section id="<?php echo $attId; ?>" class="mappingTaxonUsersOfPage taxonomyPages clearfix">
<h1> <?php echo $h1; ?> </h1>
<p> <?php echo $subTitle; ?> </p>
<?php echo $this->Lists->block(
$users,
[
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment