Browse Source

Add automatic screenshot support

master
Nils 1 year ago
parent
commit
4012b92503
4 changed files with 9 additions and 7 deletions
  1. +9
    -7
      projectinfo2modulepage.py
  2. BIN
      static/screenshots/fluajho.apng
  3. BIN
      static/screenshots/patroneo.apng
  4. BIN
      static/screenshots/vico.apng

+ 9
- 7
projectinfo2modulepage.py View File

@@ -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 View File

Before After
Width: 1024  |  Height: 768  |  Size: 406KB

BIN
static/screenshots/patroneo.apng View File

Before After
Width: 1024  |  Height: 768  |  Size: 221KB

BIN
static/screenshots/vico.apng View File

Before After
Width: 1024  |  Height: 768  |  Size: 446KB

Loading…
Cancel
Save