This commit is contained in:
5
templates/Maketank/misc/alert.html.twig
Normal file
5
templates/Maketank/misc/alert.html.twig
Normal file
@@ -0,0 +1,5 @@
|
||||
{% extends "Froxlor/userarea.html.twig" %}
|
||||
|
||||
{% block content %}
|
||||
{% include 'Froxlor/misc/alertbox.html.twig' %}
|
||||
{% endblock %}
|
||||
5
templates/Maketank/misc/alert_nosession.html.twig
Normal file
5
templates/Maketank/misc/alert_nosession.html.twig
Normal file
@@ -0,0 +1,5 @@
|
||||
{% extends "Froxlor/base.html.twig" %}
|
||||
|
||||
{% block content %}
|
||||
{% include 'Froxlor/misc/alertbox.html.twig' %}
|
||||
{% endblock %}
|
||||
27
templates/Maketank/misc/alertbox.html.twig
Normal file
27
templates/Maketank/misc/alertbox.html.twig
Normal file
@@ -0,0 +1,27 @@
|
||||
<div class="alert alert-{{ type|default("info") }} fade show" role="alert">
|
||||
{% if heading is defined and heading is not empty %}
|
||||
<h4 class="alert-heading">
|
||||
{{ heading }}
|
||||
</h4>
|
||||
{% endif %}
|
||||
<p>
|
||||
{{ alert_msg|raw }}
|
||||
</p>
|
||||
{% if alert_info %}
|
||||
<hr>
|
||||
<p class="mb-0">
|
||||
<pre>{{ alert_info|raw }}</pre>
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if redirect_link %}
|
||||
<p>
|
||||
<a href="{{ redirect_link|raw }}" class="btn btn-{{ btntype }}">
|
||||
{% if type == 'danger' %}
|
||||
{{ lng('panel.back') }}
|
||||
{% else %}
|
||||
{{ lng('success.clickheretocontinue') }}
|
||||
{% endif %}
|
||||
</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
@@ -1,39 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="Default-Style" content="text/css" />
|
||||
<link rel="stylesheet" href="../templates/Sparkle/assets/css/main.css" />
|
||||
<!--[if IE]><link rel="stylesheet" href="../templates/Sparkle/assets/css/main_ie.css" /><![endif]-->
|
||||
<!--[if lt IE 9]><script src="js/html5shiv.min.js"></script><![endif]-->
|
||||
<link href="../templates/{$theme}/assets/img/favicon.ico" rel="icon" type="image/x-icon" />
|
||||
<title>Froxlor Server Management Panel - Installation</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="loginpage">
|
||||
|
||||
<article class="login bradius">
|
||||
<header class="dark">
|
||||
<img src="templates/{$theme}/assets/img/logo.svg" alt="Froxlor Server Management Panel" />
|
||||
</header>
|
||||
|
||||
<section class="loginsec">
|
||||
<h2>Welcome to Froxlor</h2>
|
||||
<p>It seems that Froxlor has already been configured.</p>
|
||||
<p>Click on the link below to go to the login page.</p>
|
||||
<p> </p>
|
||||
<aside class="right">
|
||||
<a href="../index.php" title="Click to go to the login page">Go to login</a>
|
||||
</aside>
|
||||
</section>
|
||||
|
||||
</article>
|
||||
|
||||
</div>
|
||||
<footer>
|
||||
<span>
|
||||
Froxlor © 2009-<CURRENT_YEAR> by <a href="http://www.froxlor.org/" rel="external">the Froxlor Team</a>
|
||||
</span>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
22
templates/Maketank/misc/configurehint.html.twig
Normal file
22
templates/Maketank/misc/configurehint.html.twig
Normal file
@@ -0,0 +1,22 @@
|
||||
{% extends "Froxlor/base.html.twig" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container max-w-lg flex align-content-center mt-5">
|
||||
<img src="templates/Froxlor/assets/img/logo.png" alt="Froxlor Server Management Panel" />
|
||||
|
||||
<div class="row gx-0 rounded shadow bg-primary text-white mt-5">
|
||||
<div class="col p-5 rounded-start">
|
||||
<h2 class="card-title">Welcome to Froxlor</h2>
|
||||
<p class="lead mt-5">It seems that Froxlor has not been installed yet.</p>
|
||||
<p class="lead">Click on the button below to start the installation.</p>
|
||||
</div>
|
||||
|
||||
<div class="col text-white position-relative">
|
||||
<img class="h-75 position-absolute bottom-0 end-0 rounded-tl-bl" src="{{ basehref }}templates/Froxlor/assets/img/preview.jpg">
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-5 text-end">
|
||||
<a class="btn btn-lg btn-primary" href="./install/install.php" title="Click to start the install process">Start install</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -1,37 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="Default-Style" content="text/css" />
|
||||
<link rel="stylesheet" href="templates/Sparkle/assets/css/main.css" />
|
||||
<!--[if IE]><link rel="stylesheet" href="templates/Sparkle/assets/css/main_ie.css" /><![endif]-->
|
||||
<!--[if lt IE 9]><script src="js/html5shiv.min.js"></script><![endif]-->
|
||||
<link href="templates/{$theme}/assets/img/favicon.ico" rel="icon" type="image/x-icon" />
|
||||
<title>Froxlor Server Management Panel - Installation</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="loginpage">
|
||||
<article class="login bradius">
|
||||
<header class="dark">
|
||||
<img src="templates/{$theme}/assets/img/logo.svg" alt="Froxlor Server Management Panel" />
|
||||
</header>
|
||||
|
||||
<section class="loginsec">
|
||||
<h2>Welcome to Froxlor</h2>
|
||||
<p>It seems that Froxlor has not been installed yet.</p>
|
||||
<p>Click on the link below to start the installation.</p>
|
||||
<p> </p>
|
||||
<aside class="right">
|
||||
<a href="./install/install.php" title="Click to start the install process">Start install</a>
|
||||
</aside>
|
||||
</section>
|
||||
|
||||
</article>
|
||||
</div>
|
||||
<footer>
|
||||
<span>
|
||||
Froxlor © 2009-<CURRENT_YEAR> by <a href="http://www.froxlor.org/" rel="external">the Froxlor Team</a>
|
||||
</span>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
26
templates/Maketank/misc/dberrornice.html.twig
Normal file
26
templates/Maketank/misc/dberrornice.html.twig
Normal file
@@ -0,0 +1,26 @@
|
||||
{% extends "Froxlor/base.html.twig" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container my-auto">
|
||||
<div class="alert alert-danger fade show" role="alert">
|
||||
<h4 class="alert-heading">
|
||||
A database error occurred
|
||||
</h4>
|
||||
<p>
|
||||
{{ message }}
|
||||
</p>
|
||||
{% if debug is not empty %}
|
||||
<hr>
|
||||
<p class="mb-0">
|
||||
<pre>{{ debug }}</pre>
|
||||
</p>
|
||||
{% endif %}
|
||||
<p class="mt-1 text-center">
|
||||
<a href="#" class="btn btn-primary" title="Click here to go back" id="historyback">Go back</a>
|
||||
{% if report is not empty %}
|
||||
<a href="{{ report|raw }}" class="btn btn-warning" title="Click here to report error">Report error</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -1,50 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="Default-Style" content="text/css" />
|
||||
<link rel="stylesheet" href="templates/Sparkle/assets/css/main.css" />
|
||||
<!--[if IE]><link rel="stylesheet" href="templates/Sparkle/assets/css/main_ie.css" /><![endif]-->
|
||||
<!--[if lt IE 9]><script src="js/html5shiv.min.js"></script><![endif]-->
|
||||
<link href="templates/{$theme}/assets/img/favicon.ico" rel="icon" type="image/x-icon" />
|
||||
<title>Froxlor Server Management Panel - Database error</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="loginpage">
|
||||
|
||||
<article class="errorbox bradius">
|
||||
<header class="dark">
|
||||
<img src="templates/{$theme}/assets/img/logo.svg" alt="Froxlor Server Management Panel" />
|
||||
</header>
|
||||
|
||||
<section class="errorsec">
|
||||
<div class="errorcontainer bradius">
|
||||
<div class="errortitle">A database error occurred</div>
|
||||
<div class="error">
|
||||
<p><TEXT></p>
|
||||
<p> </p>
|
||||
<pre class="overflow"><DEBUG></pre>
|
||||
<p> </p>
|
||||
</div>
|
||||
</div>
|
||||
<aside>
|
||||
<div class="left">
|
||||
<a href="#" title="Click here to go back" id="historyback">Go back</a>
|
||||
</div>
|
||||
<div class="right">
|
||||
<REPORT>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</aside>
|
||||
</section>
|
||||
|
||||
</article>
|
||||
|
||||
</div>
|
||||
<footer>
|
||||
<span>
|
||||
Froxlor © 2009-<CURRENT_YEAR> by <a href="http://www.froxlor.org/" rel="external">the Froxlor Team</a>
|
||||
</span>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,9 +0,0 @@
|
||||
$header
|
||||
<div class="messagewrapper">
|
||||
<div class="errorcontainer bradius">
|
||||
<div class="errortitle">{$lng['error']['error']}</div>
|
||||
<div class="error">$error</div>
|
||||
$link
|
||||
</div>
|
||||
</div>
|
||||
$footer
|
||||
@@ -1 +0,0 @@
|
||||
<input type="file" name="{$fieldname}" id="{$fieldname}" class="file" />
|
||||
@@ -1 +0,0 @@
|
||||
<input type="{$type}" name="{$fieldname}" id="{$fieldname}" value="{$value}"{$extras} />{$ulfield}
|
||||
@@ -1 +0,0 @@
|
||||
<textarea name="{$fieldname}" id="{$fieldname}" {$extras}>{$value}</textarea>
|
||||
@@ -1,8 +0,0 @@
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2" class="right">
|
||||
<input type="reset" value="{$lng['panel']['cancel']}" class="historyback" />
|
||||
<input type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
@@ -1,12 +0,0 @@
|
||||
<tr>
|
||||
<td class="formlabeltd">
|
||||
<label for="{$fieldname}"><strong>{$label}</strong>{$mandatory}:
|
||||
<if $desc != ''>
|
||||
<br /><small>{$desc}</small>
|
||||
</if>
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
{$data_field}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -1,9 +0,0 @@
|
||||
<tr class="section">
|
||||
<th>
|
||||
{$title}
|
||||
</th>
|
||||
<th class="right nolbr">
|
||||
<input type="reset" value="{$lng['panel']['cancel']}" class="historyback" />
|
||||
<input type="submit" value="{$lng['panel']['save']}" />
|
||||
</th>
|
||||
</tr>
|
||||
@@ -1,6 +0,0 @@
|
||||
<a href="{$baseurl}&sortfield={$fieldname}&sortorder=desc">
|
||||
<img src="templates/{$theme}/assets/img/icons/up.png" alt="" />
|
||||
</a>
|
||||
<a href="{$baseurl}&sortfield={$fieldname}&sortorder=asc">
|
||||
<img src="templates/{$theme}/assets/img/icons/down.png" alt="" />
|
||||
</a>
|
||||
@@ -1,7 +0,0 @@
|
||||
{$lng['panel']['search']}:
|
||||
<select name="searchfield">
|
||||
{$fieldoptions}
|
||||
</select>
|
||||
<input type="text" name="searchtext" class="searchtext" value="{$searchtext}" />
|
||||
<input type="submit" name="Go" value="Go" class="submitsearch" />
|
||||
<input type="reset" name="Reset" value="Reset" class="resetsearch" />
|
||||
@@ -1,7 +0,0 @@
|
||||
<select name="sortfield">
|
||||
{$fieldoptions}
|
||||
</select>
|
||||
{$breakorws}
|
||||
<select name="sortorder">
|
||||
{$orderoptions}
|
||||
</select> <input type="submit" name="Go" value="Go" />
|
||||
0
templates/Maketank/misc/index.html
Normal file
0
templates/Maketank/misc/index.html
Normal file
18
templates/Maketank/misc/ownershiphint.html.twig
Normal file
18
templates/Maketank/misc/ownershiphint.html.twig
Normal file
@@ -0,0 +1,18 @@
|
||||
{% extends "Froxlor/base.html.twig" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container my-auto">
|
||||
<div class="alert alert-warning fade show" role="alert">
|
||||
<h4 class="alert-heading">
|
||||
Whoops!
|
||||
</h4>
|
||||
<p>The configuration file <b>lib/userdata.inc.php</b> cannot be read from the webserver.</p>
|
||||
<p>This mostly happens due to wrong ownership.<br />Try the following command to correct the ownership:</p>
|
||||
<pre>chown -R {{ user }}:{{ group }} {{ installdir }}</pre>
|
||||
<hr>
|
||||
<p class="mt-1 text-center">
|
||||
<a href="" class="btn btn-primary" title="Reload page">Reload</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -1,45 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="Default-Style" content="text/css" />
|
||||
<link rel="stylesheet" href="templates/Sparkle/assets/css/main.css" />
|
||||
<!--[if IE]><link rel="stylesheet" href="templates/Sparkle/assets/css/main_ie.css" /><![endif]-->
|
||||
<!--[if lt IE 9]><script src="js/html5shiv.min.js"></script><![endif]-->
|
||||
<link href="templates/Sparkle/assets/img/favicon.ico" rel="icon" type="image/x-icon" />
|
||||
<title>Froxlor Server Management Panel - Installation</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="loginpage">
|
||||
|
||||
<article class="errorbox bradius">
|
||||
<header class="dark">
|
||||
<img src="templates/{$theme}/assets/img/logo.svg" alt="Froxlor Server Management Panel" />
|
||||
</header>
|
||||
|
||||
<section class="errorsec">
|
||||
<div class="errorcontainer bradius">
|
||||
<div class="errortitle">Whoops!</div>
|
||||
<div class="error">
|
||||
<p>The configuration file <b>lib/userdata.inc.php</b> cannot be read from the webserver.</p>
|
||||
<p> </p>
|
||||
<p>This mostly happens due to wrong ownership.<br />Try the following command to correct the ownership:</p>
|
||||
<p> </p>
|
||||
<p><pre>chown -R <USER>:<GROUP> <FROXLOR_INSTALL_DIR></pre></p>
|
||||
</div>
|
||||
</div>
|
||||
<aside class="right">
|
||||
<a href="index.php" title="Click to refresh">Refresh</a>
|
||||
</aside>
|
||||
</section>
|
||||
|
||||
</article>
|
||||
|
||||
</div>
|
||||
<footer>
|
||||
<span>
|
||||
Froxlor © 2009-<CURRENT_YEAR> by <a href="http://www.froxlor.org/" rel="external">the Froxlor Team</a>
|
||||
</span>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,11 +0,0 @@
|
||||
<div class="messagewrapperfull" class="phperror">
|
||||
<div class="warningcontainer bradius">
|
||||
<div class="warningtitle">PHP warning/error</div>
|
||||
<div class="warning">
|
||||
<p><TEXT></p>
|
||||
<p> </p>
|
||||
<pre class="overflow"><DEBUG></pre>
|
||||
<p> </p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
43
templates/Maketank/misc/phprequirementfailed.html.twig
Normal file
43
templates/Maketank/misc/phprequirementfailed.html.twig
Normal file
@@ -0,0 +1,43 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="robots" content="noindex, nofollow, noarchive" />
|
||||
<meta name="googlebot" content="nosnippet" />
|
||||
|
||||
<!-- CSS -->
|
||||
<link href="{{ basehref }}templates/Froxlor/assets/css/main.css" rel="stylesheet">
|
||||
|
||||
<!-- Scripts -->
|
||||
<script src="{{ basehref }}templates/Froxlor/assets/js/main.js"></script>
|
||||
|
||||
<title>Froxlor - Error</title>
|
||||
</head>
|
||||
<body class="min-vh-100 d-flex align-items-center">
|
||||
<div class="container-fluid">
|
||||
<div class="container max-w-lg">
|
||||
<div class="card bg-danger text-white">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">
|
||||
Whoops!
|
||||
</h4>
|
||||
<p>It seems you are using an older version of PHP</p>
|
||||
<p>Froxlor requires at least PHP version {{ froxlor_min_version }}</p>
|
||||
<p>The installed version is: {{ current_version }}</p>
|
||||
</div>
|
||||
<div class="card-footer text-end">
|
||||
<a href="" class="btn btn-primary" title="Click to refresh">Refresh</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="pý-5 text-center">
|
||||
<span>
|
||||
<img src="{{ basehref }}templates/Froxlor/assets/img/logo_grey.png" alt="Froxlor" />
|
||||
© 2009-{{ current_year }} by <a href="https://www.froxlor.org/" rel="external">the Froxlor Team</a>
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,19 +0,0 @@
|
||||
$header
|
||||
<div class="messagewrapper">
|
||||
<form action="$yesfile" method="post">
|
||||
<div class="warningcontainer bradius">
|
||||
<div class="warningtitle">{$lng['question']['question']}</div>
|
||||
<div class="warning">
|
||||
$text
|
||||
<div>
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="send" value="send" />
|
||||
{$hiddenparams}
|
||||
<input type="submit" name="submitbutton" value="{$lng['panel']['yes']}" />
|
||||
<input type="button" class="nobutton" value="{$lng['panel']['no']}" id="historyback" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
$footer
|
||||
@@ -1,20 +0,0 @@
|
||||
$header
|
||||
<div class="messagewrapper">
|
||||
<form action="$yesfile" method="post">
|
||||
<div class="warningcontainer bradius">
|
||||
<div class="warningtitle">{$lng['question']['question']}</div>
|
||||
<div class="warning">
|
||||
$text
|
||||
<div class="messagecheckbox">$checkbox</div>
|
||||
<div>
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="send" value="send" />
|
||||
{$hiddenparams}
|
||||
<input type="submit" name="submitbutton" value="{$lng['panel']['yes']}" />
|
||||
<input type="button" class="nobutton" value="{$lng['panel']['no']}" id="historyback" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
$footer
|
||||
17
templates/Maketank/misc/ratelimithint.html.twig
Normal file
17
templates/Maketank/misc/ratelimithint.html.twig
Normal file
@@ -0,0 +1,17 @@
|
||||
{% extends "Froxlor/base.html.twig" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container my-auto">
|
||||
<div class="alert alert-warning fade show" role="alert">
|
||||
<h4 class="alert-heading">
|
||||
Whoops!
|
||||
</h4>
|
||||
<p>It seems like you've hit the rate limit.</p>
|
||||
<p>Please slow down your requests and retry after {{ retry|date('d.m.Y H:i:s') }}</p>
|
||||
<hr>
|
||||
<p class="mt-1 text-center">
|
||||
<a href="" class="btn btn-primary" title="Reload page">Reload</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -1,13 +0,0 @@
|
||||
$header
|
||||
<div class="messagewrapper">
|
||||
<div class="successcontainer bradius">
|
||||
<div class="successtitle">{$lng['success']['success']}</div>
|
||||
<div class="success">
|
||||
$success_message
|
||||
<if $redirect_url != ''>
|
||||
<br /><br /><a href="{$redirect_url}">{$lng['success']['clickheretocontinue']}</a>
|
||||
</if>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
$footer
|
||||
43
templates/Maketank/misc/vendormissinghint.html.twig
Normal file
43
templates/Maketank/misc/vendormissinghint.html.twig
Normal file
@@ -0,0 +1,43 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="robots" content="noindex, nofollow, noarchive" />
|
||||
<meta name="googlebot" content="nosnippet" />
|
||||
|
||||
<!-- CSS -->
|
||||
<link href="{{ basehref }}templates/Froxlor/assets/css/main.css" rel="stylesheet">
|
||||
|
||||
<!-- Scripts -->
|
||||
<script src="{{ basehref }}templates/Froxlor/assets/js/main.js"></script>
|
||||
|
||||
<title>Froxlor - Error</title>
|
||||
</head>
|
||||
<body class="min-vh-100 d-flex align-items-center">
|
||||
<div class="container-fluid">
|
||||
<div class="container max-w-lg">
|
||||
<div class="card bg-danger text-white">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">
|
||||
Whoops!
|
||||
</h4>
|
||||
<p>It seems you are missing some required files.</p>
|
||||
<p>Froxlor uses composer for its external requirements. Try the following command to install them:</p>
|
||||
<pre>cd {{ froxlor_install_dir }} && composer install --no-dev</pre>
|
||||
</div>
|
||||
<div class="card-footer text-end">
|
||||
<a href="" class="btn btn-primary" title="Click to refresh">Refresh</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="py-5 text-center">
|
||||
<span>
|
||||
<img src="{{ basehref }}templates/Froxlor/assets/img/logo_grey.png" alt="Froxlor" />
|
||||
© 2009-{{ current_year }} by <a href="https://www.froxlor.org/" rel="external">the Froxlor Team</a>
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
26
templates/Maketank/misc/version_popover.html.twig
Normal file
26
templates/Maketank/misc/version_popover.html.twig
Normal file
@@ -0,0 +1,26 @@
|
||||
{% macro vpopover(isnewerversion, additional_info, full_version, dbversion, channel, last_update_check, message) %}
|
||||
{% if isnewerversion == 0 %}
|
||||
<p>{{ additional_info }}</p>
|
||||
<div class='d-flex justify-content-between'>
|
||||
<div class='fw-bold'>Version:</div>
|
||||
<div>{{ full_version }}</div>
|
||||
</div>
|
||||
<div class='d-flex justify-content-between'>
|
||||
<div class='fw-bold'>Database version:</div>
|
||||
<div>{{ dbversion }}</div>
|
||||
</div>
|
||||
<div class='d-flex justify-content-between'>
|
||||
<div class='fw-bold'>Channel:</div>
|
||||
<div>{{ channel }}</div>
|
||||
</div>
|
||||
<div class='d-flex justify-content-between'>
|
||||
<div class='fw-bold'>Last checked:</div>
|
||||
<div>{{ last_update_check|date('d.m.Y H:i') }}</div>
|
||||
</div>
|
||||
{% else %}
|
||||
<p>{{ message }}</p>
|
||||
{% if get_config('enable_webupdate') %}
|
||||
<a class='btn d-block btn-outline-warning' href='admin_autoupdate.php?page=overview'>Open updater</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
12
templates/Maketank/misc/version_top.html.twig
Normal file
12
templates/Maketank/misc/version_top.html.twig
Normal file
@@ -0,0 +1,12 @@
|
||||
{% import "Froxlor/misc/version_popover.html.twig" as vc %}
|
||||
<span id="ucheck" class="nav-link {% if isnewerversion == 0 and aucheck < 0 %}text-muted{% elseif isnewerversion == 0 %}text-success{% else %}text-warning{% endif %}"
|
||||
data-bs-container="body" data-bs-toggle="popover" data-bs-placement="bottom" data-bs-trigger="hover focus click" data-bs-html="true"
|
||||
data-bs-content="{{ vc.vpopover(isnewerversion, additional_info, full_version, dbversion, channel, last_update_check, message) }}"
|
||||
>
|
||||
{% if isnewerversion == 0 and aucheck == 0 %}
|
||||
<i class="fa-solid fa-circle-check me-1"></i>
|
||||
{% else %}
|
||||
<i class="fa-solid fa-circle-exclamation me-1"></i>
|
||||
{% endif %}
|
||||
<span class="d-none d-xl-inline">{{ version }}</span>
|
||||
</span>
|
||||
Reference in New Issue
Block a user