mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-30 04:42:19 -05:00
[add] message in install screen to prevent user when wallabag is already installed
This commit is contained in:
parent
d0a599bbae
commit
d09a5674e9
@ -172,7 +172,7 @@ else if ($_POST['install']) {
|
|||||||
<li><a href="http://www.wallabag.org/">wallabag.org</a></li>
|
<li><a href="http://www.wallabag.org/">wallabag.org</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<?php if (!empty($errors)) : ?>
|
<?php if (!empty($errors)) : ?>
|
||||||
<div class='install messages error'>
|
<div class='messages error install'>
|
||||||
<p>Errors during installation:</p>
|
<p>Errors during installation:</p>
|
||||||
<p>
|
<p>
|
||||||
<ul>
|
<ul>
|
||||||
@ -185,7 +185,7 @@ else if ($_POST['install']) {
|
|||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if (!empty($successes)) : ?>
|
<?php if (!empty($successes)) : ?>
|
||||||
<div class='install messages success'>
|
<div class='messages success install'>
|
||||||
<p>
|
<p>
|
||||||
<ul>
|
<ul>
|
||||||
<?php foreach($successes as $success) :?>
|
<?php foreach($successes as $success) :?>
|
||||||
@ -194,6 +194,14 @@ else if ($_POST['install']) {
|
|||||||
</ul>
|
</ul>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</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; ?>
|
<?php endif; ?>
|
||||||
<p>To install wallabag, you just have to fill the following fields. That's all.</p>
|
<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>
|
<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>
|
<fieldset>
|
||||||
<legend><strong>Technical settings</strong></legend>
|
<legend><strong>Technical settings</strong></legend>
|
||||||
<?php if (!is_dir('vendor')) : ?>
|
<?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>
|
<ul>
|
||||||
<li>automatically download and extract vendor.zip into your wallabag folder.
|
<li>automatically download and extract vendor.zip into your wallabag folder.
|
||||||
<p><input type="submit" name="download" value="Download vendor.zip" /></p>
|
<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;
|
border: 1px solid #c42608;
|
||||||
color: #c00 !important;
|
color: #c00 !important;
|
||||||
background: #fff0ef;
|
background: #fff0ef;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.install .messages.notice {
|
.messages.notice.install {
|
||||||
border: 1px solid #ebcd41;
|
border: 1px solid #ebcd41;
|
||||||
color: #000;
|
color: #000;
|
||||||
background: #fffcd3;
|
background: #fffcd3;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.install .messages.success {
|
.messages.success.install {
|
||||||
border: 1px solid #6dc70c;
|
border: 1px solid #6dc70c;
|
||||||
background: #e0fbcc;
|
background: #e0fbcc !important;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user