From patchwork Wed Nov 9 19:26:17 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zygmunt Krynicki X-Patchwork-Id: 5002 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 0FD7723E0F for ; Wed, 9 Nov 2011 19:26:25 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id 05250A1810C for ; Wed, 9 Nov 2011 19:26:25 +0000 (UTC) Received: by mail-fx0-f52.google.com with SMTP id n26so2870852faa.11 for ; Wed, 09 Nov 2011 11:26:24 -0800 (PST) Received: by 10.152.102.138 with SMTP id fo10mr2476316lab.44.1320866784485; Wed, 09 Nov 2011 11:26:24 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.10.72 with SMTP id g8cs183744lab; Wed, 9 Nov 2011 11:26:24 -0800 (PST) Received: by 10.180.99.225 with SMTP id et1mr4369428wib.14.1320866778383; Wed, 09 Nov 2011 11:26:18 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id l71si927121weq.43.2011.11.09.11.26.18 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 09 Nov 2011 11:26:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1RODmr-0000e7-T2 for ; Wed, 09 Nov 2011 19:26:17 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id D45BEE027C for ; Wed, 9 Nov 2011 19:26:17 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-server X-Launchpad-Branch: ~linaro-validation/lava-server/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 288 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-server/trunk] Rev 288: Use user nickname when real name is empty Message-Id: <20111109192617.3833.55990.launchpad@ackee.canonical.com> Date: Wed, 09 Nov 2011 19:26:17 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="14263"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 952ed33182f6b56d6cf3195ed7bb17a9e9f10ebb ------------------------------------------------------------ revno: 288 committer: Zygmunt Krynicki branch nick: lava-server timestamp: Wed 2011-11-09 20:21:19 +0100 message: Use user nickname when real name is empty modified: lava_server/templates/layouts/content.html --- lp:lava-server https://code.launchpad.net/~linaro-validation/lava-server/trunk You are subscribed to branch lp:lava-server. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-server/trunk/+edit-subscription === modified file 'lava_server/templates/layouts/content.html' --- lava_server/templates/layouts/content.html 2011-11-09 00:23:07 +0000 +++ lava_server/templates/layouts/content.html 2011-11-09 19:21:19 +0000 @@ -59,7 +59,7 @@ src="{{ STATIC_URL }}lava-server/images/avatar-default-symbolic.svg" width="18" height="18"/> {% if user.is_authenticated %} - {{user.get_full_name}} + {{user.get_full_name|default:user.username}} {% else %} {% trans "Guest" %}