From patchwork Fri Aug 19 04:16: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: 3525 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 DC42723E54 for ; Fri, 19 Aug 2011 04:16:14 +0000 (UTC) Received: from mail-ew0-f52.google.com (mail-ew0-f52.google.com [209.85.215.52]) by fiordland.canonical.com (Postfix) with ESMTP id CC161A183A8 for ; Fri, 19 Aug 2011 04:16:14 +0000 (UTC) Received: by ewy28 with SMTP id 28so1409608ewy.11 for ; Thu, 18 Aug 2011 21:16:14 -0700 (PDT) Received: by 10.213.29.147 with SMTP id q19mr17970ebc.132.1313727374360; Thu, 18 Aug 2011 21:16:14 -0700 (PDT) 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.213.102.5 with SMTP id e5cs112767ebo; Thu, 18 Aug 2011 21:16:14 -0700 (PDT) Received: by 10.227.179.14 with SMTP id bo14mr1751120wbb.90.1313727373646; Thu, 18 Aug 2011 21:16:13 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com [91.189.90.7]) by mx.google.com with ESMTPS id ge14si7379474wbb.13.2011.08.18.21.16.13 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 18 Aug 2011 21:16:13 -0700 (PDT) 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 1QuGVB-0008NM-6N for ; Fri, 19 Aug 2011 04:16:13 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 27EA7E03D1 for ; Fri, 19 Aug 2011 04:16:13 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-dashboard X-Launchpad-Branch: ~linaro-validation/lava-dashboard/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 254 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dashboard/trunk] Rev 254: Add front page snippet template and advertise it in extension API Message-Id: <20110819041613.15284.76140.launchpad@ackee.canonical.com> Date: Fri, 19 Aug 2011 04:16: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="13697"; Instance="initZopeless config overlay" X-Launchpad-Hash: 107e9ee5786e31e6d1e676054ecaed14edf541ba ------------------------------------------------------------ revno: 254 committer: Zygmunt Krynicki branch nick: pristine timestamp: Thu 2011-08-18 17:04:13 +0200 message: Add front page snippet template and advertise it in extension API added: dashboard_app/templates/dashboard_app/front_page_snippet.html modified: dashboard_app/extension.py --- lp:lava-dashboard https://code.launchpad.net/~linaro-validation/lava-dashboard/trunk You are subscribed to branch lp:lava-dashboard. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dashboard/trunk/+edit-subscription === modified file 'dashboard_app/extension.py' --- dashboard_app/extension.py 2011-08-18 15:03:44 +0000 +++ dashboard_app/extension.py 2011-08-18 15:04:13 +0000 @@ -36,6 +36,10 @@ return "dashboard_app.views.index" @property + def front_page_template(self): + return "dashboard_app/front_page_snippet.html" + + @property def description(self): return "Validation Dashboard" === added file 'dashboard_app/templates/dashboard_app/front_page_snippet.html' --- dashboard_app/templates/dashboard_app/front_page_snippet.html 1970-01-01 00:00:00 +0000 +++ dashboard_app/templates/dashboard_app/front_page_snippet.html 2011-08-18 15:04:13 +0000 @@ -0,0 +1,10 @@ +

Click on image description to see automatic QA report

+{% regroup dashboard.interesting_images by rootfs_type as rootfs_list %} +{% for rootfs in rootfs_list %} +

{{ rootfs.grouper|capfirst }}

+ +{% endfor %}