ソースを参照

Add automatic screenshot support

master
Nils 4年前
コミット
4012b92503
  1. 16
      projectinfo2modulepage.py
  2. バイナリ
      static/screenshots/fluajho.apng
  3. バイナリ
      static/screenshots/patroneo.apng
  4. バイナリ
      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 -->
"""

バイナリ
static/screenshots/fluajho.apng

バイナリファイルは表示されません。

変更後

幅:  |  高さ:  |  サイズ: 406 KiB

バイナリ
static/screenshots/patroneo.apng

バイナリファイルは表示されません。

変更後

幅:  |  高さ:  |  サイズ: 221 KiB

バイナリ
static/screenshots/vico.apng

バイナリファイルは表示されません。

変更後

幅:  |  高さ:  |  サイズ: 446 KiB

読み込み中…
キャンセル
保存