torrent detail show tags

This commit is contained in:
xiaomlove
2022-09-17 20:38:54 +08:00
parent 1a0ad86b32
commit cbd6f2c00d
7 changed files with 40 additions and 21 deletions
+3 -4
View File
@@ -10,8 +10,7 @@ parked();
* tags
*/
$tagRep = new \App\Repositories\TagRepository();
$tagKeyById = $tagRep->createBasicQuery()->get()->keyBy('id');
$renderKeyArr = $tagKeyById->keys()->toArray();
$allTags = $tagRep->listAll();
$elasticsearchEnabled = nexus_env('ELASTICSEARCH_ENABLED');
//check searchbox
@@ -1143,8 +1142,8 @@ if (!$Cache->get_page()){
}
echo $Cache->next_row();
if ($tagKeyById->isNotEmpty()) {
echo '<tr><td colspan="3" class="embedded" style="padding-top: 4px">' . $tagRep->renderSpan($tagKeyById, $renderKeyArr, true) . '</td></tr>';
if ($allTags->isNotEmpty()) {
echo '<tr><td colspan="3" class="embedded" style="padding-top: 4px">' . $tagRep->renderSpan(['*'], true) . '</td></tr>';
}
?>