[TikiWiki-commits] [Git][tikiwiki/tiki][master] [ENH] File Attachments: Prevent attachment table overflow and limit description length
"luci \(@luciash\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <6a272ab453ea2_38194b3c543cc@gitlab-sidekiq-low-urgency-cpu-bound-v2-6cd54d5986-x9wnn.mail> |
luci pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
550f393a by Moïse Nturubika at 2026-06-08T20:31:39+00:00
[ENH] File Attachments: Prevent attachment table overflow and limit description length
---
* Clean: revert changes to list_file_gallery_content.tpl to match MR scope
* [UX] Remove redundant text-break class from filename anchor tags
* Fix: Prevent attachment table overflow and limit description length
See merge request tikiwiki/tiki!10204
- - - - -
2 changed files:
- templates/attachments.tpl
- templates/attachments_tracker.tpl
Changes:
=====================================
templates/attachments.tpl
=====================================
@@ -54,11 +54,11 @@
{section name=ix loop=$atts}
<tr>
<td class="id">{$atts[ix].attId}</td>
- <td class="text">
+ <td class="text text-break">
{$atts[ix].filename|iconify}
<a class="tablename" href="tiki-download_wiki_attachment.php?attId={$atts[ix].attId}&page={$page|escape:"url"}&download=y">{$atts[ix].filename}</a>
</td>
- <td class="text"><small>{$atts[ix].comment|escape}</small></td>
+ <td class="text"><small title="{$atts[ix].comment|escape}">{$atts[ix].comment|truncate:200:"...":true|escape}</small></td>
<td class="date">
<small>{if $atts[ix].user}{$atts[ix].user|userlink}{/if} {$atts[ix].created|tiki_short_datetime}</small>
</td>
=====================================
templates/attachments_tracker.tpl
=====================================
@@ -77,7 +77,7 @@
{elseif $x eq 'filetype'}
<td>{$atts[ix].filename|iconify}</td>
{else}
- <td>{$atts[ix].$x}</td>
+ <td class="text-break">{if $x eq 'comment' or $x eq 'longdesc'}<small title="{$atts[ix].$x|escape}">{$atts[ix].$x|truncate:200:"...":true|escape}</small>{else}{$atts[ix].$x}{/if}</td>
{/if}
{/foreach}
<td>
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/550f393a4fa6cfc005f8bbd36d453cadc8b92927
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/550f393a4fa6cfc005f8bbd36d453cadc8b92927
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs