From patchwork Thu Oct 25 05:08:43 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simo Sorce X-Patchwork-Id: 194038 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 1B0422C00DE for ; Thu, 25 Oct 2012 16:08:48 +1100 (EST) Received: from mail.samba.org (fn.samba.org [216.83.154.106]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 661582C00A5 for ; Thu, 25 Oct 2012 16:08:45 +1100 (EST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail.samba.org (Postfix) with ESMTP id 0BA8EAC330 for ; Wed, 24 Oct 2012 23:08:42 -0600 (MDT) Message-ID: <1351141723.2010.55.camel@pico.ipa.ssimo.org> Subject: [PATCH] Add shortcut to admin panel From: simo To: patchwork@lists.ozlabs.org Date: Thu, 25 Oct 2012 01:08:43 -0400 Organization: Samba Team X-Mailer: Evolution 3.4.4 (3.4.4-2.fc17) Mime-Version: 1.0 X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Patchwork" This patch adds a shortcut to the admin panel but only for users that are members of staff. Simo. From 61b060c49471448a5c5b49ef495d552476a093d4 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 25 Oct 2012 01:00:43 -0400 Subject: [PATCH] Add quick link to admin panel if a user is a member of the staff Signed-off-by: Simo Sorce --- templates/base.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/base.html b/templates/base.html index d3b8e67..787433f 100644 --- a/templates/base.html +++ b/templates/base.html @@ -26,6 +26,9 @@ bundles
profile :: +{% if user.is_staff %} + admin :: +{% endif %} logout {% else %} login -- 1.7.12.1