From patchwork Tue Nov 29 09:37:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zygmunt Krynicki X-Patchwork-Id: 5339 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 0C7ED23E17 for ; Tue, 29 Nov 2011 09:37:17 +0000 (UTC) Received: from mail-lpp01m010-f52.google.com (mail-lpp01m010-f52.google.com [209.85.215.52]) by fiordland.canonical.com (Postfix) with ESMTP id E5C7EA18060 for ; Tue, 29 Nov 2011 09:37:16 +0000 (UTC) Received: by mail-lpp01m010-f52.google.com with SMTP id h2so1233343laa.11 for ; Tue, 29 Nov 2011 01:37:16 -0800 (PST) Received: by 10.152.110.130 with SMTP id ia2mr9766631lab.26.1322559436822; Tue, 29 Nov 2011 01:37:16 -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.41.198 with SMTP id h6cs32657lal; Tue, 29 Nov 2011 01:37:15 -0800 (PST) Received: by 10.180.90.195 with SMTP id by3mr39711278wib.30.1322559433913; Tue, 29 Nov 2011 01:37:13 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id j10si18419104wij.70.2011.11.29.01.37.13 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 Nov 2011 01:37:13 -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 1RVK7l-0007Ej-KP for ; Tue, 29 Nov 2011 09:37:13 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 908BEE15CF for ; Tue, 29 Nov 2011 09:37:13 +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: 290 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-server/trunk] Rev 290: Convert "guest" menu to direct link, add a sign-in hint, make menus more readable Message-Id: <20111129093713.13982.82499.launchpad@ackee.canonical.com> Date: Tue, 29 Nov 2011 09:37:13 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="14399"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 392125b82a512e80ff78b96bc59ff7e924543ad2 ------------------------------------------------------------ revno: 290 committer: Zygmunt Krynicki branch nick: lava-server timestamp: Thu 2011-11-10 13:26:47 +0100 message: Convert "guest" menu to direct link, add a sign-in hint, make menus more readable modified: lava_server/htdocs/css/default.css 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/htdocs/css/default.css' --- lava_server/htdocs/css/default.css 2011-11-09 19:19:14 +0000 +++ lava_server/htdocs/css/default.css 2011-11-10 12:26:47 +0000 @@ -148,35 +148,35 @@ #lava-panel ul.lava-panel-menu li { margin: 0; + padding: 0; + text-align: center; + + font-size: 9pt; + font-weight: normal; +} + +#lava-panel ul.lava-panel-menu li a { + display: block; padding: 2pt 1ex; - text-align: center; } #lava-panel ul.lava-panel-menu li a:hover { - color: #fff; - text-decoration: underline; + background-color: #a1cd41; + color: #000; } /* User indicator */ -#lava-user-indicator span.username { - font-weight: bold; +#lava-user-indicator { + text-align: center; } #lava-user-indicator img { vertical-align: top; } -#lava-user-indicator a { - text-decoration: underline; -} - -#lava-user-indicator .sign-in, -#lava-user-indicator .sign-out, -#lava-user-indicator .admin-site { - font-size: smaller; - position: relative; - top: -1pt; +#lava-user-indicator .sign-in-hint { + font-size: 8pt; } /* AJAX indicator */ === modified file 'lava_server/templates/layouts/content.html' --- lava_server/templates/layouts/content.html 2011-11-09 19:31:19 +0000 +++ lava_server/templates/layouts/content.html 2011-11-10 12:26:47 +0000 @@ -54,32 +54,28 @@ -
+
{% if user.is_authenticated %} - {{user.get_full_name|default:user.username}} + {{user.get_full_name|default:user.username}} ▾ {% else %} {% trans "Guest" %} +
+ {% endif %}
+ {% if user.is_authenticated %} + {% endif %}