Return-Path: X-Original-To: apmail-incubator-bloodhound-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-bloodhound-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D9347D039 for ; Wed, 19 Dec 2012 20:00:24 +0000 (UTC) Received: (qmail 32208 invoked by uid 500); 19 Dec 2012 20:00:24 -0000 Delivered-To: apmail-incubator-bloodhound-dev-archive@incubator.apache.org Received: (qmail 32142 invoked by uid 500); 19 Dec 2012 20:00:24 -0000 Mailing-List: contact bloodhound-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bloodhound-dev@incubator.apache.org Delivered-To: mailing list bloodhound-dev@incubator.apache.org Received: (qmail 32127 invoked by uid 99); 19 Dec 2012 20:00:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Dec 2012 20:00:24 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of matevzb@gmail.com designates 209.85.219.48 as permitted sender) Received: from [209.85.219.48] (HELO mail-oa0-f48.google.com) (209.85.219.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Dec 2012 20:00:18 +0000 Received: by mail-oa0-f48.google.com with SMTP id h2so2516241oag.21 for ; Wed, 19 Dec 2012 11:59:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=d7VRFbagTaO15cNHOTTrsijM/Xipj3LfNcCtfeyuIZo=; b=yKC7/fPYXfP2uEXpFvr+rW8ive+9DyLTdQHefMfuVEVTk0zko4wvHQ1gj1EJRrk7kc Avk9fag7bXIUCTc/z0MhomkZF+/H5ftmj5ND4a634iQPNPhhf8nu3cgAOGvoBISJYHPR 7WaJvdWeh9Z97B3SPOpcv9FTSMRNR8yV7rb6vrvdZvvUj3+7+D60x1L1PJE8pzWZ5TUg yxFGoVsH0ZbTSB+K9o9q/KbUJ+LXwfTtSDoByYuH3jL/sg7Ow9XVLX3Cv3JFuJ60cchJ vslttP8j1eIVuJMUUQUnorFvY7ND4AHnyDIUCuz3e9AFVxrOhFIHdJMEgwvKMLgWnh4Y A6GQ== Received: by 10.182.228.69 with SMTP id sg5mr6011146obc.2.1355947197559; Wed, 19 Dec 2012 11:59:57 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.31.238 with HTTP; Wed, 19 Dec 2012 11:59:17 -0800 (PST) From: Matevz Bradac Date: Wed, 19 Dec 2012 20:59:17 +0100 Message-ID: Subject: #217 - Make Bloodhound's layout responsive To: bloodhound-dev@incubator.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Hi, I started implementing the responsive layout functionality, for which Joe had created a mockup in #240. There are a couple of issues to be resolved, any suggestions are appreciated: 1. In the ticket there's a proposal for being able to turn this feature on/off, as it will impose significant changes on the layout, so some things may not work as expected right from the start. I've currently implemented this by having two types of templates (responsive- and old-style), and BloodhoundTheme's __init__ then checks for a specific trac.ini setting and switches to whatever is set. The problem I see here is that template content changes will have to be synced back and forth between both template types, i.e. any functional changes done to one template will have to be implemented in the other as well. I suppose that this is something we'd like to avoid, perhaps someone has a better solution proposal? 2. Handling of widget macros: when using widget macros, each widget is a more or less self-contained entity. Due to that certain layouts may be difficult to implement without changing other functionality. For example in the mockup ticket view in #240, the ticket header and the activity header are both placed in the same sticky div. But due to the activity feed being inserted as a Timeline widget, the separation of its header and data is not possible (without hacks). (Or perhaps I've interpreted the widget code incorrectly?) Cheers, matevz