Compute border colours on album indices, too.

This commit is contained in:
2016-09-04 17:17:51 +02:00
parent 1fe2e5057f
commit 90ed084783
2 changed files with 6 additions and 6 deletions

View File

@@ -35,8 +35,12 @@ class AlbumIndex extends SubTemplate
foreach ($photos as $album)
{
$color = isset($album['thumbnail']) ? $album['thumbnail']->bestColor() : 'ccc';
if ($color == 'FFFFFF')
$color = 'ccc';
echo '
<div class="landscape">';
<div class="landscape" style="border-color: #', $color, '">';
if ($this->show_edit_buttons)
echo '