Skip to content

Commit

Permalink
[#3016] Update templates for new helper
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Nov 13, 2012
1 parent 9057a01 commit bfdefdd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
9 changes: 2 additions & 7 deletions ckan/templates/snippets/page_header.html
@@ -1,12 +1,7 @@
<header class="module-content page-header">
<ul class="nav nav-tabs">
{% for label, url, icon, is_active in items %}
<li{%if is_active %} class="active"{% endif %}>
<a href="{{ url }}">
<i class="icon-{{ icon }}"></i>
{{ label }}
</a>
</li>
{% for item in items %}
{{ item }}
{% endfor %}
</ul>
</header>
6 changes: 3 additions & 3 deletions ckan/templates/user/read_base.html
Expand Up @@ -22,9 +22,9 @@
<article class="module profile">
{% block page_header %}
{% snippet 'snippets/page_header.html', items=[
( _('Datasets'), h.url_for(controller='user', action='read', id=user.name), 'sitemap', ( c.action == 'read' or c.action == 'me' ) ),
( _('Activity Stream'), h.url_for(controller='user', action='activity', id=user.name), 'time', c.action == 'activity' ),
( _('Followers'), h.url_for(controller='user', action='followers', id=user.name), 'group', c.action == 'followers' ),
h.build_nav_tab('user_datasets', _('Datasets'), id=user.name),
h.build_nav_tab('user_activity_stream', _('Activity Stream'), id=user.name),
h.build_nav_tab('user_followers', _('Followers'), id=user.name),
] %}
{% endblock %}
<section class="module-content">
Expand Down

1 comment on commit bfdefdd

@johnmartin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I understand the context a little better now. Yes, this is good. Ping me when you have updated the helper and I'll update the CSS.

Please sign in to comment.