Skip to content

Commit

Permalink
[#3016] Changes to package/read_base.py for new tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Nov 15, 2012
1 parent 1c47a94 commit 1d4cde5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions ckan/config/routing.py
Expand Up @@ -194,7 +194,7 @@ def make_map():
action='edit')
m.connect('related_delete', '/dataset/{id}/related/delete/{related_id}',
action='delete')
m.connect('related_list', '/dataset/{id}/related', action='list')
m.connect('related_list', '/dataset/{id}/related', action='list', ckan_icon='picture')
m.connect('related_read', '/apps/{id}', action='read')
m.connect('related_dashboard', '/apps', action='dashboard')

Expand Down Expand Up @@ -226,15 +226,16 @@ def make_map():
'history',
'read_ajax',
'history_ajax',
'followers',
'follow',
'unfollow',
'delete',
'api_data',
]))
)
m.connect('dataset_followers', '/dataset/followers/{id}', action='followers', ckan_icon='group')

m.connect('/dataset/{id}.{format}', action='read')
m.connect('/dataset/{id}', action='read')
m.connect('dataset_read', '/dataset/{id}', action='read', ckan_icon='sitemap')
m.connect('/dataset/{id}/resource/{resource_id}',
action='resource_read')
m.connect('/dataset/{id}/resource_delete/{resource_id}',
Expand Down
6 changes: 3 additions & 3 deletions ckan/templates/package/read_base.html
Expand Up @@ -41,9 +41,9 @@

{% block page_header %}
{% snippet 'snippets/page_header.html', items=[
( _('Dataset'), h.url_for(controller='package', action='read', id=pkg.name), 'sitemap', c.action == 'read' ),
( _('Followers'), h.url_for(controller='package', action='followers', id=pkg.name), 'group', c.action == 'followers' ),
( _('Related'), h.url_for(controller='related', action='list', id=pkg.name), 'picture', c.action == 'related' ),
h.build_nav_icon('dataset_read', _('Dataset'), id=pkg.name),
h.build_nav_icon('dataset_followers', _('Followers'), id=pkg.name),
h.build_nav_icon('related_list', _('Related'), id=pkg.name),
] %}
{% endblock %}

Expand Down

0 comments on commit 1d4cde5

Please sign in to comment.