From 3cbecb3a54fac2708774158ae65dafec6d098937 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Wed, 26 Dec 2018 19:35:19 +0100 Subject: feature: invite editors --- app/view/templates/edit.php | 2 +- app/view/templates/editrightbar.php | 30 +++++++++++++++++++++++++++++- app/view/templates/navart.php | 2 +- app/view/templates/read.php | 2 +- 4 files changed, 32 insertions(+), 4 deletions(-) (limited to 'app/view/templates') diff --git a/app/view/templates/edit.php b/app/view/templates/edit.php index 32de517..415fcce 100644 --- a/app/view/templates/edit.php +++ b/app/view/templates/edit.php @@ -20,7 +20,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]) ?> + insert('editrightbar', ['art' => $art, 'artlist' => $artlist, 'showrightpanel' => $showrightpanel, 'templates' => $art->template(), 'tagartlist' => $tagartlist, 'lasteditedartlist' => $lasteditedartlist, 'inviteuserlist' => $inviteuserlist, 'user' => $user]) ?> diff --git a/app/view/templates/editrightbar.php b/app/view/templates/editrightbar.php index 8ee402d..e42cdf1 100644 --- a/app/view/templates/editrightbar.php +++ b/app/view/templates/editrightbar.php @@ -73,7 +73,35 @@ ?> - + + level() >= 4) { ?> + +

Invites editors

+ + + + invites()); + foreach ($validateinviteusers as $invite) { + ?> +
+ + +
+ + + + \ No newline at end of file diff --git a/app/view/templates/navart.php b/app/view/templates/navart.php index 9d9f3ed..be3b248 100644 --- a/app/view/templates/navart.php +++ b/app/view/templates/navart.php @@ -89,7 +89,7 @@ -iseditor() && $artexist) { ?> +
  • display diff --git a/app/view/templates/read.php b/app/view/templates/read.php index 42fba7b..f8201cc 100644 --- a/app/view/templates/read.php +++ b/app/view/templates/read.php @@ -34,7 +34,7 @@ $this->stop(); insert('navart', ['user' => $user, 'art' => $art, 'artexist' => $artexist]); + $this->insert('navart', ['user' => $user, 'art' => $art, 'artexist' => $artexist, 'canedit' => $canedit]); } ?> -- cgit v1.2.3