Show image underneath the settings
just before the long description (if there is one)
This commit is contained in:
parent
c065e154be
commit
ce90f06e1e
|
@ -263,6 +263,13 @@ class BServer:
|
|||
<div class="clear"></div>
|
||||
<hr />
|
||||
""")
|
||||
no_img_msg = _('There is no image yet. Please donate an image of your project on <a href="https://github.com/florianfesti/boxes/issues/140">GitHub</a>!')
|
||||
|
||||
result.append(f'''<div>
|
||||
<img src="static/samples/{box.__class__.__name__}.jpg" width="100%" onerror="this.parentElement.innerHTML = '{no_img_msg}';"/>
|
||||
</div>
|
||||
''')
|
||||
|
||||
if box.description:
|
||||
result.append(markdown.markdown(_(box.description)))
|
||||
result.append("""
|
||||
|
|
|
@ -76,6 +76,7 @@ table {
|
|||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
padding: 10px;
|
||||
padding-bottom: 15px;
|
||||
width: 996px;
|
||||
-webkit-border-radius: 30px;
|
||||
border-radius: 30px;
|
||||
|
|
Loading…
Reference in New Issue