mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-07 08:54:36 +02:00
Make tags in part table more pretty. Also added link to tags search.
This commit is contained in:
parent
05d6b0aa93
commit
f5c2a7b728
4 changed files with 78 additions and 4 deletions
|
@ -68,14 +68,14 @@ class PartAttachmentsColumn extends AbstractColumn
|
|||
$count = 5;
|
||||
foreach ($attachments as $attachment) {
|
||||
//Only show the first 5 attachments
|
||||
if (--$count <= 0) {
|
||||
continue;
|
||||
if (--$count < 0) {
|
||||
break;
|
||||
}
|
||||
/** @var Attachment $attachment */
|
||||
$tmp .= sprintf(
|
||||
'<a href="%s" title="%s" class="attach-table-icon" target="_blank" rel="noopener" data-no-ajax>%s</a>',
|
||||
$this->urlGenerator->getViewURL($attachment),
|
||||
$attachment->getName() . ': ' . $attachment->getFilename(),
|
||||
htmlspecialchars($attachment->getName()) . ': ' . htmlspecialchars($attachment->getFilename()),
|
||||
$this->FAIconGenerator->generateIconHTML(
|
||||
$this->FAIconGenerator->fileExtensionToFAType($attachment->getExtension()),
|
||||
'fas',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue