From 3b3dafe893f60e57184c5307fb30ce0dede57dc2 Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Wed, 18 Oct 2017 16:42:20 +0530 Subject: [PATCH] power: Merge power merge into the user dropdown Closes #1074. Signed-off-by: Joseph Nuthalapati Reviewed-by: Sunil Mohan Adapa --- plinth/templates/base.html | 38 ++++++++++++++++---------------------- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/plinth/templates/base.html b/plinth/templates/base.html index 86a709a60..8a60e46f2 100644 --- a/plinth/templates/base.html +++ b/plinth/templates/base.html @@ -147,6 +147,22 @@ {% trans "Change password" %} +
  • + {% if user_is_admin %} +
  • + + {% trans "Restart" %} + +
  • +
  • + + {% trans "Shut down" %} + +
  • +
  • + {% endif %}
  • @@ -155,28 +171,6 @@
  • - {% else %}