1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

final adjustments

This commit is contained in:
Thomas Citharel 2015-02-01 00:44:13 +01:00
parent 89e8812494
commit 9834d87e97

View file

@ -294,6 +294,8 @@ cursor: pointer;
min-height: 50px; min-height: 50px;
line-height: 50px; line-height: 50px;
text-align: center; text-align: center;
margin-bottom: 30px;
border-radius: 3px;
} }
h2, legend { h2, legend {
@ -309,6 +311,18 @@ legend:after {
background-color: #000; background-color: #000;
display: block; display: block;
} }
#reloadpage {
cursor: pointer;
background-color: #000;
color: #FFF;
padding: 0.5em 1em;
display: inline-block;
border: 1px solid #000;
}
#reloadpage:hover {
background-color: #FFF;
color: #000;
}
</style> </style>
@ -511,17 +525,21 @@ legend:after {
<?php } else { ?> <?php } else { ?>
<h3>Bottom Line: We're sorry…</h3> <h3>Bottom Line: We're sorry…</h3>
<p><em>Your webhost does not support the minimum requirements for <?php echo $status['app_name']; ?>.</em> It may be a good idea to contact your webhost and point them to the results of this test. They may be able to enable/install the required components.</p> <p><em>Your webhost does not support the minimum requirements for <?php echo $status['app_name']; ?>.</em> It may be a good idea to contact your webhost and point them to the results of this test. They may be able to enable/install the required components.</p>
<p>If this is your own server and you think you have all the requirements installed, please get in touch with us.</p>
<?php } ?> <?php } ?>
</div> </div>
<div class="chunk"> <div class="chunk">
<p class="footnote">This compatibility test has been borrowed (and slightly adapted by <a href="http://fivefilters.org/content-only/">fivefilters.org</a>) from the one supplied by <a href="http://simplepie.org/">SimplePie.org</a>.</a></p> <p class="footnote">This compatibility test has been borrowed (and slightly adapted by <a href="http://fivefilters.org/content-only/">fivefilters.org</a>) from the one supplied by <a href="http://simplepie.org/">SimplePie.org</a>.</a></p>
</div> </div>
<hr>
</div> </div>
<form method="post" class="technical"> <form method="post" class="technical">
<hr>
<div class='twig'>
<h2>Twig installation</h2>
<?php if (!is_dir('vendor')) : ?> <?php if (!is_dir('vendor')) : ?>
<div class='messages notice install'>wallabag needs twig, a template engine (<a href="http://twig.sensiolabs.org/">?</a>). Two ways to install it:<br />
<p>wallabag needs twig, a template engine (<a href="http://twig.sensiolabs.org/">?</a>). Two ways to install it:</p>
<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>
@ -530,11 +548,17 @@ legend:after {
<?php endif; ?> <?php endif; ?>
<em>This method is mainly recommended if you don't have a dedicated server.</em></li> <em>This method is mainly recommended if you don't have a dedicated server.</em></li>
<li>use <a href="http://getcomposer.org/">Composer</a> in your wallabag folder :<pre><code>curl -s http://getcomposer.org/installer | php <li>use <a href="http://getcomposer.org/">Composer</a> in your wallabag folder :<pre><code>curl -s http://getcomposer.org/installer | php
php composer.phar install</code></pre></li> php composer.phar install</code></pre>
<span id="reloadpage">Reload to check</span>
</li>
</ul> </ul>
</div>
<?php else : ?>
Twig is properly installed.
<?php endif; ?> <?php endif; ?>
</div>
<div class="database_info"> <div class="database_info">
<hr>
<fieldset class="database_inputs"> <fieldset class="database_inputs">
<legend><strong>Database settings</strong></legend> <legend><strong>Database settings</strong></legend>
<p> <p>
@ -580,11 +604,12 @@ php composer.phar install</code></pre></li>
MySQL is one of the most popular database systems. It comes with most shared hosting plans. MySQL is one of the most popular database systems. It comes with most shared hosting plans.
</div> </div>
<div id="postgres_description"> <div id="postgres_description">
PostgreSQL. If you want it, you already know why you want it. PostgreSQL. Because some people prefer it to MySQL.
</div> </div>
</div> </div>
</div> </div>
<hr> <hr>
<div class="usersettings">
<fieldset style="clear: both"> <fieldset style="clear: both">
<legend><strong>User settings</strong></legend> <legend><strong>User settings</strong></legend>
<p> <p>
@ -601,22 +626,32 @@ php composer.phar install</code></pre></li>
<input type="email" id="email" name="email" /> <input type="email" id="email" name="email" />
</p> </p>
</fieldset> </fieldset>
<input type="submit" id="install_button" value="Install wallabag" name="install" /> <input type="submit" id="install_button" value="Install wallabag" name="install" />
</div>
</form> </form>
</div> </div>
<script> <script>
<?php if (!is_dir('vendor')) : ?>
$(".database_info").hide();
$(".usersettings").hide();
<?php endif ?>
/*
* Database showing/hiding
*/
$("#mysql_infos").hide(); $("#mysql_infos").hide();
$("#mysql_description").hide(); $("#mysql_description").hide();
$("#pg_infos").hide(); $("#pg_infos").hide();
$("#postgres_description").hide(); $("#postgres_description").hide();
$("#sqlite_description").show(); $("#sqlite_description").show();
$(".details").hide();
$("#pdo_postgres").hide(); $("#pdo_postgres").hide();
$("#pdo_mysql").hide(); $("#pdo_mysql").hide();
/*
* Details hiding
*/
$(".details").hide();
<?php <?php
if (!isPassing()) : ?> if (!isPassing()) : ?>
$('.technical').hide(); $('.technical').hide();
@ -687,6 +722,10 @@ php composer.phar install</code></pre></li>
{ {
$('.details').toggle(); $('.details').toggle();
}); });
$("#reloadpage").click(function()
{
location.reload();
});
</script> </script>
</body> </body>