Skip to content

Commit

Permalink
2375 Share -> Add Dataset in header
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed May 29, 2012
1 parent 410e067 commit edb9cd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ckan/lib/helpers.py
Expand Up @@ -406,9 +406,10 @@ def default_group_type():


_menu_items = {
'add dataset' : dict(controller='package', action='new'),
'search' : dict(controller='package',
action='search',
highlight_actions = 'new index search'),
highlight_actions = 'index search'),
'default_group': dict(name='%s_index' % default_group_type()),
'about' : dict(controller='home', action='about'),
'login' : dict(controller='user', action='login'),
Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/header.html
Expand Up @@ -27,7 +27,7 @@ <h1><a href="${h.url('home')}">${g.site_title}</a></h1>
</nav>
<nav>
<ul class="unstyled">
${h.build_nav_main(('search', _('Search')),('default_group', _('Groups')), ('share', _('Share')), ('about', _('About')))}
${h.build_nav_main(('search', _('Search')),('default_group', _('Groups')), ('add dataset', _('Add Dataset')), ('about', _('About')))}
</ul>
</nav>
</div>
Expand Down

0 comments on commit edb9cd9

Please sign in to comment.