From 3309bd722454fa8696ce2415075f401e444c9910 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Wed, 30 Jan 2019 14:29:05 +0100 Subject: author and user management --- app/view/templates/edit.php | 2 +- app/view/templates/editrightbar.php | 53 +++++++++++++++++-------------------- app/view/templates/navart.php | 2 +- 3 files changed, 26 insertions(+), 31 deletions(-) (limited to 'app/view') diff --git a/app/view/templates/edit.php b/app/view/templates/edit.php index e01846e..7c6610a 100644 --- a/app/view/templates/edit.php +++ b/app/view/templates/edit.php @@ -16,7 +16,7 @@ insert('editleftbar', ['art' => $art, 'tablist' => $tablist, 'artlist' => $artlist, 'showleftpanel' => $showleftpanel, 'faviconlist' => $faviconlist]) ?> insert('edittabs', ['tablist' => $tablist, 'opentab' => $art->interface(), 'templates' => $art->template()]) ?> - insert('editrightbar', ['art' => $art, 'artlist' => $artlist, 'showrightpanel' => $showrightpanel, 'templates' => $art->template(), 'tagartlist' => $tagartlist, 'lasteditedartlist' => $lasteditedartlist, 'inviteuserlist' => $inviteuserlist, 'user' => $user]) ?> + insert('editrightbar', ['art' => $art, 'artlist' => $artlist, 'showrightpanel' => $showrightpanel, 'templates' => $art->template(), 'tagartlist' => $tagartlist, 'lasteditedartlist' => $lasteditedartlist, 'editorlist' => $editorlist, 'user' => $user]) ?> diff --git a/app/view/templates/editrightbar.php b/app/view/templates/editrightbar.php index a081aac..15cef7f 100644 --- a/app/view/templates/editrightbar.php +++ b/app/view/templates/editrightbar.php @@ -65,42 +65,37 @@

Authors

- + level() >= 4) { ?> -

Invites editors

- - + + authors()); + foreach ($notyetauthorlist as $author) { + echo ''; + } + } + ?> + + + authors()); + foreach ($alreadyauthorlist as $author) { + ?> +
+ level() >= 4) { ?> + + + +
+ - - invites()); - foreach ($validateinviteusers as $invite) { - ?> -
- - -
- - diff --git a/app/view/templates/navart.php b/app/view/templates/navart.php index 1e6b551..0e690c2 100644 --- a/app/view/templates/navart.php +++ b/app/view/templates/navart.php @@ -60,7 +60,7 @@