Browse Source

Add automatic screenshot support

master
Nils 4 years ago
parent
commit
4012b92503
  1. 16
      projectinfo2modulepage.py
  2. BIN
      static/screenshots/fluajho.apng
  3. BIN
      static/screenshots/patroneo.apng
  4. BIN
      static/screenshots/vico.apng

16
projectinfo2modulepage.py

@ -32,20 +32,22 @@ htmlDescription = META["description"].replace("\n\n", "</p>\n\n<p>")
template = f"""<div id="main">
<div class="header">
<h1><img class="pure-img-responsive" src="/images/{META["shortName"]}.png" alt="{META["name"]}"></h1>
<h1><img class="pure-img-responsive" src="/images/{META["shortName"]}.png" alt="{META["name"]}"></h1>
</div> <!-- header -->
<div class="content">
<p>{htmlDescription}</p>
<div class="content">
<p><img class="pure-img" src="/screenshots/{META["shortName"]}.apng"></p>
<p>{htmlDescription}</p>
<ul>
<li>Current Version: {META["version"]} ({META["year"]})</li>
<li>Multi-Language <a href="/documentation/{META["shortName"]}/">Manual</a></li> <!-- The trailing slash is very important. Otherwise it won't find the images-->
<li>Download: <a href="/downloads/{META["shortName"]}-{META["version"]}.tar.gz">Sourcecode</a> or <a href="/downloads">All Downloads</a></li>
<li>Download: <a href="/downloads/{META["shortName"]}-{META["version"]}.tar.gz">Sourcecode</a> or <a href="/downloads">All Downloads</a></li>
<li>Bugs and Issues: <a href="https://www.laborejo.org/bugs">https://www.laborejo.org/bugs/</a>
<li>Git and Developers README: <a href="http://git.laborejo.org/lss/{META["shortName"]}.git">https://git.laborejo.org/lss/{META["shortName"]}.git</a></li>
</ul>
</div> <!-- content -->
</div> <!-- main -->
"""

BIN
static/screenshots/fluajho.apng

Binary file not shown.

After

Width:  |  Height:  |  Size: 406 KiB

BIN
static/screenshots/patroneo.apng

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 KiB

BIN
static/screenshots/vico.apng

Binary file not shown.

After

Width:  |  Height:  |  Size: 446 KiB

Loading…
Cancel
Save