Added no-image and logic
This commit is contained in:
parent
0fe8b87f6b
commit
c0a7511196
|
@ -515,7 +515,7 @@ for overlay_type in nav_html.keys():
|
||||||
|
|
||||||
if overlay_type == 'board':
|
if overlay_type == 'board':
|
||||||
for x in items:
|
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)
|
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(
|
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 |
Loading…
Reference in New Issue