mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 12:49:01 +02:00

* Drop the front page - this just gets in the way. Redirect to the layers list instead. This has meant adding a touch more text to the about page and adding the FAQ link to the footer. * Use a separate navbar to hold the branch selector and the main top-level pages (Layers, Recipes, Machines) instead of tabs * All pages depending on a branch selection are now under branch/<branchname>/ so we don't need to have the branch selection on every page. * Use breadcrumbs on recipe detail and layer detail pages instead of tabs * Add title to recipe detail page Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
14 lines
481 B
Python
14 lines
481 B
Python
# layerindex-web - custom context processor
|
|
#
|
|
# Copyright (C) 2013 Intel Corporation
|
|
#
|
|
# Licensed under the MIT license, see COPYING.MIT for details
|
|
|
|
from layerindex.models import Branch, LayerItem
|
|
|
|
def layerindex_context(request):
|
|
return {
|
|
'all_branches': Branch.objects.exclude(name='oe-classic').order_by('sort_priority'),
|
|
'unpublished_count': LayerItem.objects.filter(status='N').count(),
|
|
'oe_classic': Branch.objects.filter(name='oe-classic')
|
|
} |