always show links and stats at the bottom

This commit is contained in:
quenousimporte 2024-10-07 09:01:05 +02:00
parent fb84c7f4ea
commit cd8d52249c
3 changed files with 5 additions and 14 deletions

View File

@ -130,7 +130,7 @@
{ {
downloadall(); downloadall();
} }
else if (isset($_POST['save']) || isset($_POST['home']) || isset($_POST['links']) || isset($_POST['stats']) || isset($_POST['download'])) else if (isset($_POST['save']) || isset($_POST['home']) || isset($_POST['download']))
{ {
$title = $_POST['title']; $title = $_POST['title'];
$content = $_POST['content']; $content = $_POST['content'];

View File

@ -3,24 +3,17 @@
<input type="submit" name="home" value="home" accesskey="h"> <input type="submit" name="home" value="home" accesskey="h">
<input type="submit" name="save" value="save" accesskey="s"> <input type="submit" name="save" value="save" accesskey="s">
<input type="submit" name="preview" value="preview" accesskey="p" formtarget="_blank"> <input type="submit" name="preview" value="preview" accesskey="p" formtarget="_blank">
<input type="submit" name="links" value="links" accesskey="l">
<input type="submit" name="stats" value="stats" accesskey="i">
<input type="submit" name="download" value="download" accesskey="d"> <input type="submit" name="download" value="download" accesskey="d">
<input type="submit" name="delete" value="delete"> <input type="submit" name="delete" value="delete">
<input hidden name="lastchanged" value="<? echo $lastchanged; ?>"> <input hidden name="lastchanged" value="<? echo $lastchanged; ?>">
<?php
if (isset($_POST['stats']))
{
echo '<div class="grey">' . $lines . '&nbsp;' . $words . '&nbsp;' . $chars . '&nbsp;' . $title . '.md</div>';
}
else if (isset($_POST['links']))
{
echo linksdiv($content);
}?>
<div><input autocomplete="off" class="title" name="title" value="<? echo $title; ?>"></div> <div><input autocomplete="off" class="title" name="title" value="<? echo $title; ?>"></div>
</div> </div>
<div class="editor"> <div class="editor">
<textarea rows="<? echo $rows; ?>" autofocus name="content" spellcheck="false"><? echo $content; ?></textarea> <textarea rows="<? echo $rows; ?>" autofocus name="content" spellcheck="false"><? echo $content; ?></textarea>
</div> </div>
<input hidden name="previoustitle" value="<? echo $title; ?>"> <input hidden name="previoustitle" value="<? echo $title; ?>">
<?php
echo '<div class="grey">' . $lines . '&nbsp;' . $words . '&nbsp;' . $chars . '&nbsp;' . $title . '.md</div>';
echo linksdiv($content);
?>
</form> </form>

View File

@ -21,8 +21,6 @@ No javascript.
| home (default action) | save and back to home | alt-h | | home (default action) | save and back to home | alt-h |
| save | save | alt-s | | save | save | alt-s |
| preview | save and show markdown preview | alt-p | | preview | save and show markdown preview | alt-p |
| links | save and show links | alt-l |
| stats | save and show stats | alt-i |
| delete | delete (rename as .del) | alt-d | | delete | delete (rename as .del) | alt-d |
| Url params | action | | Url params | action |