Added no-image and logic

This commit is contained in:
Phil Howard 2016-06-25 00:11:33 +01:00
parent 0fe8b87f6b
commit c0a7511196
2 changed files with 1 additions and 1 deletions

View File

@ -515,7 +515,7 @@ for overlay_type in nav_html.keys():
if overlay_type == 'board':
for x in items:
image = x['image'] if 'image' in x else ''
image = x['image'] if 'image' in x else 'no-image.png'
print(x)
boards_page.append({'name': x['name'], 'html': '<li class="board"><a href="{base_url}{page_url}"><img src="{resource_url}boards/{image}" /><strong>{name}</strong></a></li>'.format(

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB