Add portal icons for GNU Health, closes #124

This commit is contained in:
Disassembler 2017-12-02 00:53:07 +01:00
parent 64141b61c2
commit a7cb384b16
6 changed files with 24 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

@ -169,6 +169,24 @@
</ul>
</div>
<div class="c" id="gnuhealth">
<h2><a href="#"><img src="img/GNU_Health.png" alt="GNU Health" title="GNU Health">GNU Health</a></h2>
<p>Zdravotní a nemocniční informační systém.</p>
<ul>
<li><strong>URL:</strong> <span class="url"></span></li>
<li><strong>Login:</strong> <span class="login"></span></li>
<li><strong>Heslo:</strong> <span class="password"></span></li>
</ul>
</div>
<div class="c" id="gnuhealth-clients">
<h2><a href="https://downloads.tryton.org/4.2/tryton-last.exe"><img src="img/GNU_Health.png" alt="GNU Health" title="GNU Health">GNU Health klienti</a></h2>
<p>Klientské aplikace platformy Tryton GNU Health pro<br>
<a href="https://downloads.tryton.org/4.2/tryton-last.exe"><img src="img/Windows.png" class="ico" alt="Windows">Windows</a><br>
<a href="https://downloads.tryton.org/4.2/tryton-last.dmg"><img src="img/MacOS.png" class="ico" alt="MacOS">MacOS</a>
</p>
</div>
<div class="c" id="diaspora">
<h2><a href="#"><img src="img/Diaspora.png" alt="diaspora*" title="diaspora*">diaspora*</a></h2>
<p>Autonomní sociání síť s možností propojení do cizích sociálních sítí.</p>

View File

@ -2,8 +2,11 @@ $(function() {
$.getJSON('js/apps.json', function(data) {
$.each(data, function(id, props) {
var div = $('#'+id).show();
if (props.hasOwnProperty('url'))
div.find('h2 a').attr('href', props.url.replace('{host}', window.location.hostname));
if (props.hasOwnProperty('url')) {
var url = props.url.replace('{host}', window.location.hostname);
div.find('h2 a').attr('href', url);
div.find('.url').text(url);
}
if (props.hasOwnProperty('login'))
div.find('.login').text(props.login);
if (props.hasOwnProperty('password'))

View File

@ -44,5 +44,5 @@ systemctl enable gnuhealth
systemctl start gnuhealth
# Add portal application definition
${SOURCE_DIR}/basic/portal-app-manager.py gnuhealth "https://{host}:8006/" admin "${GNUHEALTH_ADMIN_PWD}"
${SOURCE_DIR}/basic/portal-app-manager.py gnuhealth "{host}:8006" admin "${GNUHEALTH_ADMIN_PWD}"
${SOURCE_DIR}/basic/portal-app-manager.py gnuhealth-clients