mirror of
https://github.com/zamentur/libreto.git
synced 2025-11-17 11:08:38 +05:30
work now with instances without markdown export
This commit is contained in:
parent
527695a3e5
commit
9f9482a0bb
10 changed files with 115 additions and 22 deletions
|
|
@ -3,6 +3,7 @@
|
|||
<ul class="helpers">
|
||||
<li class='switcher_button <?= $_SESSION['mode'] == 'read' ? 'active' : ''; ?>'><a href="?mode=read"><?= l("read", false) ?></a></li>
|
||||
<li class='switcher_button <?= $_SESSION['mode'] == 'write' ? 'active' : ''; ?>'><a href="?mode=write"><?= l("write", false) ?></a></li>
|
||||
<li class='' style="flex: 0;"><a href='' class="refresh" data-name-encoded='' alt='<?= l("update", false) ?>'>↻</a></li>
|
||||
</ul>
|
||||
<ul class="menu">
|
||||
|
||||
|
|
@ -19,7 +20,6 @@
|
|||
<ul class="helpers">
|
||||
<li class=""><a href='/bindery/<?= $libreto->name() ?>' class="" data-name-encoded=''><?= l("export", false) ?></a></li>
|
||||
<li class=""><a href='/export/<?= $libreto->name() ?>' class="" data-name-encoded='' download><?= l("download", false) ?></a></li>
|
||||
<li class='' style="flex: 0;"><a href='' class="refresh" data-name-encoded='' alt='<?= l("update", false) ?>'>↻</a></li>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</nav>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<?php
|
||||
if(isset($_POST['new_name'])):
|
||||
if($new_name = $_POST['new_name']) :
|
||||
header('Location: ' . $libreto->options('url') . '/' . urlencode($new_name) );
|
||||
header('Location:' . $libreto->options('url') . '/' . urlencode($new_name) );
|
||||
endif;
|
||||
endif;
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue