forked from hestiacp/hestiacp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlist_webapps.php
More file actions
50 lines (47 loc) · 1.84 KB
/
Copy pathlist_webapps.php
File metadata and controls
50 lines (47 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!-- Begin toolbar -->
<div class="toolbar">
<div class="toolbar-inner">
<div class="toolbar-buttons">
<a class="button button-secondary" id="btn-back" href="/edit/web/?domain=<?=htmlentities($v_domain)?>"><i class="fas fa-arrow-left status-icon blue"></i><?=_('Back');?></a>
</div>
<div class="toolbar-buttons">
</div>
</div>
</div>
<!-- End toolbar -->
<div class="l-center animate__animated animate__fadeIn">
<div class="form-container form-container-wide">
<h1 class="form-title"><?=_('Quick Install App');?></h1>
<?php
if (!empty($_SESSION['error_msg'])) {
$msg_icon = 'fa-circle-exclamation status-icon red';
$msg_text = htmlentities($_SESSION['error_msg']);
$msg_class = 'inline-danger';
} else {
if (!empty($_SESSION['ok_msg'])) {
$msg_icon = 'fa-circle-check status-icon green';
$msg_text = $_SESSION['ok_msg'];
$msg_class = 'inline-success';
}
}
if(!empty($msg_class)){
?>
<p class="<?=$msg_class;?> u-mb20"><i class="fas <?=$msg_icon;?>"></i> <?=$msg_text;?></p>
<?php }; ?>
<div class="cards">
<!-- List available web apps -->
<?php foreach($v_web_apps as $webapp):?>
<div class="card <?=($webapp['enabled'] ? '' : 'disable');?>">
<div class="card-thumb">
<img src="/src/app/WebApp/Installers/<?=$webapp['name'];?>/<?=$webapp['thumbnail'];?>" alt="<?=$webapp['name'];?>">
</div>
<div class="card-details">
<p class="card-title"><?=$webapp['name'];?></p>
<p class="u-mb10"><?=_('version');?>: <?=$webapp['version'];?></p>
<a href="/add/webapp/?app=<?=$webapp['name'];?>&domain=<?=htmlentities($v_domain)?>" class="button"><?=_('Setup');?></a>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
</div>