mirror of
https://git.code.sf.net/p/seeddms/code
synced 2026-05-08 21:41:23 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
b5a7310206
|
|
@ -385,6 +385,7 @@
|
|||
- fix calculating password strength when editing user data
|
||||
- add new menu item 'Import/Export' in admin area
|
||||
- move import of users into menu 'User/Group management'
|
||||
- show categories on document details page like in list of documents
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Changes in version 5.1.45
|
||||
|
|
|
|||
|
|
@ -540,9 +540,12 @@ $(document).ready( function() {
|
|||
<td>
|
||||
<?php
|
||||
$ct = array();
|
||||
foreach($cats as $cat)
|
||||
$ct[] = htmlspecialchars($cat->getName());
|
||||
echo implode(', ', $ct);
|
||||
foreach($cats as $cat) {
|
||||
$color = substr(md5($cat->getName()), 0, 6);
|
||||
$ct[] = "<span class=\"badge\" style=\"background-color: #".$color."; color: #".self::getContrastColor($color).";\">".htmlspecialchars($cat->getName())."</span>";
|
||||
// $ct[] = htmlspecialchars($cat->getName());
|
||||
}
|
||||
echo implode(' ', $ct);
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user