Skip to content

Commit

Permalink
[2375] Move create dataset breadcrumb into snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
aron committed May 24, 2012
1 parent bfdc16f commit 20574ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ckan/templates/package/new.html
Expand Up @@ -13,12 +13,8 @@
</head>
<body>
<div class="toolbar">
<ol class="breadcrumb">
<li>${h.nav_link(_('Datasets'), controller='package', action='search', highlight_actions = 'new index')}</li>
<li class="active">${h.nav_link(_('Create Dataset'), controller='package', action='new')}</li>
</ol>
${h.snippet('package/new_breadcrumb.html')}
</div>

<div class="primary">
<section class="module">
<div class="content">
Expand All @@ -35,6 +31,7 @@ <h2>Errors in form</h2>
<li py:for="key, error in error_summary.items()">${"%s: %s" % (key if not key=='Name' else 'URL', error)}</li>
</ul>
</div>

<div class="control-group control-large control-full" py:with="error = errors.get('title', '')">
<label class="control-label" for="field-title">Title</label>
<div class="controls">
Expand Down
4 changes: 4 additions & 0 deletions ckan/templates/package/new_breadcrumb.html
@@ -0,0 +1,4 @@
<ol class="breadcrumb" xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://genshi.edgewall.org/">
<li>${h.nav_link(_('Datasets'), controller='package', action='search', highlight_actions = 'new index')}</li>
<li class="active">${h.nav_link(_('Create Dataset'), controller='package', action='new')}</li>
</ol>

0 comments on commit 20574ea

Please sign in to comment.