diff options
author | Michael Große <grosse@cosmocode.de> | 2018-06-06 17:03:23 +0200 |
---|---|---|
committer | Michael Große <grosse@cosmocode.de> | 2018-06-08 09:41:32 +0200 |
commit | c49e647b68fc2302dc54e17b3685823e4512a10f (patch) | |
tree | 9634589f33577eafdf36b8635a880b18df656f9b | |
parent | 0aabe6f83fad7d8ce23367ad642b6979fc65b4f0 (diff) | |
download | dokuwiki-c49e647b68fc2302dc54e17b3685823e4512a10f.tar.gz dokuwiki-c49e647b68fc2302dc54e17b3685823e4512a10f.zip |
💄 (editor) draft status is semantically not part of the toolbar
This change is useful for plugins that may want to implement their own toolbar (and thus hide the
default toolbar), but still would like to let the locktimer set the draft status.
-rw-r--r-- | inc/html.php | 16 | ||||
-rw-r--r-- | lib/tpl/dokuwiki/css/_edit.css | 1 |
2 files changed, 9 insertions, 8 deletions
diff --git a/inc/html.php b/inc/html.php index 1f5033302..2e50f1443 100644 --- a/inc/html.php +++ b/inc/html.php @@ -1833,17 +1833,17 @@ function html_edit(){ <div class="editBox" role="application"> <div class="toolbar group"> - <div id="draft__status" class="draft__status"> - <?php - $draft = new \dokuwiki\Draft($ID, $INFO['client']); - if ($draft->isDraftAvailable()) { - echo $draft->getDraftMessage(); - } - ?> - </div> <div id="tool__bar" class="tool__bar"><?php if ($wr && $data['media_manager']){?><a href="<?php echo DOKU_BASE?>lib/exe/mediamanager.php?ns=<?php echo $INFO['namespace']?>" target="_blank"><?php echo $lang['mediaselect'] ?></a><?php }?></div> </div> + <div id="draft__status" class="draft__status"> + <?php + $draft = new \dokuwiki\Draft($ID, $INFO['client']); + if ($draft->isDraftAvailable()) { + echo $draft->getDraftMessage(); + } + ?> + </div> <?php html_form('edit', $form); diff --git a/lib/tpl/dokuwiki/css/_edit.css b/lib/tpl/dokuwiki/css/_edit.css index 526d49b99..30926bed1 100644 --- a/lib/tpl/dokuwiki/css/_edit.css +++ b/lib/tpl/dokuwiki/css/_edit.css @@ -12,6 +12,7 @@ /*____________ toolbar ____________*/ .dokuwiki div.toolbar { + display: inline-block; margin-bottom: .5em; } #draft__status { |