aboutsummaryrefslogtreecommitdiffstats
path: root/layerindex/context_processors.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-07-18 09:28:25 +0100
committerPaul Eggleton <paul.eggleton@linux.intel.com>2013-09-05 00:31:23 +0100
commit1643aef67d828ff7ca47f63409f23852f8e75e83 (patch)
tree94383faa89834c8c90042fcc2718733bcb991991 /layerindex/context_processors.py
parent97361ae37ec6bc0491a419d6cd67435511a036be (diff)
downloadopenembedded-core-contrib-1643aef67d828ff7ca47f63409f23852f8e75e83.tar.gz
Navigation improvements
* 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>
Diffstat (limited to 'layerindex/context_processors.py')
-rw-r--r--layerindex/context_processors.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/layerindex/context_processors.py b/layerindex/context_processors.py
index 958081166d..ba0664d205 100644
--- a/layerindex/context_processors.py
+++ b/layerindex/context_processors.py
@@ -7,12 +7,8 @@
from layerindex.models import Branch, LayerItem
def layerindex_context(request):
- current_branch = request.session.get('branch', None)
- if not current_branch:
- current_branch = 'master'
return {
'all_branches': Branch.objects.exclude(name='oe-classic').order_by('sort_priority'),
- 'current_branch': current_branch,
'unpublished_count': LayerItem.objects.filter(status='N').count(),
'oe_classic': Branch.objects.filter(name='oe-classic')
} \ No newline at end of file