Skip to content

Commit

Permalink
Added Organizations to main nav
Browse files Browse the repository at this point in the history
  • Loading branch information
rossjones committed Sep 10, 2012
1 parent a184873 commit 8719a6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion ckan/lib/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,12 @@ def default_group_type():
'search' : dict(controller='package',
action='search',
highlight_actions = 'index search'),
'default_group': dict(name='%s_index' % default_group_type(),
'default_group': dict(name='group_index',
controller='group',
highlight_actions='index search'),
'default_organization': dict(name='organization_index',
controller='organization',
highlight_actions='index search'),
'about' : dict(controller='home', action='about'),
'login' : dict(controller='user', action='login'),
'register' : dict(controller='user', action='register'),
Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h1>
</form>
<nav class="first section navigation">
<ul class="unstyled">
{{ h.build_nav_main(('add dataset', _('Add Dataset'), 'package_create'), ('search', _('Datasets')), ('default_group', _('Groups')), ('about', _('About'))) }}
{{ h.build_nav_main(('add dataset', _('Add Dataset'), 'package_create'), ('search', _('Datasets')), ('default_organization', _('Organizations')), ('about', _('About'))) }}
</ul>
</nav>
</div>
Expand Down

0 comments on commit 8719a6a

Please sign in to comment.