mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-23 09:31:04 +00:00
[add] message in install screen to prevent user when wallabag is already installed
This commit is contained in:
parent
d0a599bbae
commit
d09a5674e9
2 changed files with 15 additions and 7 deletions
|
@ -172,7 +172,7 @@ else if ($_POST['install']) {
|
|||
<li><a href="http://www.wallabag.org/">wallabag.org</a></li>
|
||||
</ul>
|
||||
<?php if (!empty($errors)) : ?>
|
||||
<div class='install messages error'>
|
||||
<div class='messages error install'>
|
||||
<p>Errors during installation:</p>
|
||||
<p>
|
||||
<ul>
|
||||
|
@ -185,7 +185,7 @@ else if ($_POST['install']) {
|
|||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($successes)) : ?>
|
||||
<div class='install messages success'>
|
||||
<div class='messages success install'>
|
||||
<p>
|
||||
<ul>
|
||||
<?php foreach($successes as $success) :?>
|
||||
|
@ -194,6 +194,14 @@ else if ($_POST['install']) {
|
|||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<?php if (file_exists('inc/poche/config.inc.php') && is_dir('vendor')) : ?>
|
||||
<div class='messages success install'>
|
||||
<p>
|
||||
wallabag seems already installed. If you want to update it, you only have to delete install folder.
|
||||
</p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<p>To install wallabag, you just have to fill the following fields. That's all.</p>
|
||||
<p>Don't forget to check your server compatibility <a href="wallabag_compatibility_test.php">here</a>.</p>
|
||||
|
@ -201,7 +209,7 @@ else if ($_POST['install']) {
|
|||
<fieldset>
|
||||
<legend><strong>Technical settings</strong></legend>
|
||||
<?php if (!is_dir('vendor')) : ?>
|
||||
<div class='install messages notice'>wallabag needs twig, a template engine (<a href="http://twig.sensiolabs.org/">?</a>). Two ways to install it:
|
||||
<div class='messages notice install'>wallabag needs twig, a template engine (<a href="http://twig.sensiolabs.org/">?</a>). Two ways to install it:
|
||||
<ul>
|
||||
<li>automatically download and extract vendor.zip into your wallabag folder.
|
||||
<p><input type="submit" name="download" value="Download vendor.zip" /></p>
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
.install .messages.error {
|
||||
.messages.error.install {
|
||||
border: 1px solid #c42608;
|
||||
color: #c00 !important;
|
||||
background: #fff0ef;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.install .messages.notice {
|
||||
.messages.notice.install {
|
||||
border: 1px solid #ebcd41;
|
||||
color: #000;
|
||||
background: #fffcd3;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.install .messages.success {
|
||||
.messages.success.install {
|
||||
border: 1px solid #6dc70c;
|
||||
background: #e0fbcc;
|
||||
background: #e0fbcc !important;
|
||||
text-align: left;
|
||||
}
|
Loading…
Reference in a new issue