Use page_heading helper consistently with the main CKAN templates.

This commit is contained in:
Tom Rees 2013-05-17 15:58:11 +01:00
parent d0bc52f2d8
commit edfc49719b
4 changed files with 5 additions and 6 deletions

View File

@ -5,8 +5,8 @@
<py:def function="page_title">Harvesting Sources</py:def>
<py:def function="body_class">harvest</py:def>
<py:def function="body_class">${h.literal('no-sidebar')}</py:def>
<py:def function="body_class">harvest no-sidebar</py:def>
<py:def function="page_heading">Harvesting Sources</py:def>
<py:def function="optional_head">
<link type="text/css" rel="stylesheet" media="all" href="/ckanext/harvest/style.css" />
@ -17,7 +17,6 @@
<div py:match="content">
<div class="harvest-content">
<h1>Harvesting Sources</h1>
<div py:if="c.status" class="status">
<h3>Status:</h3>

View File

@ -4,6 +4,7 @@
py:strip="">
<py:def function="page_title">Edit - Harvest Source</py:def>
<py:def function="page_heading">Edit harvest source </py:def>
<py:def function="body_class">hide-sidebar</py:def>
<py:def function="optional_head">
@ -13,7 +14,6 @@
<div py:match="content">
<div class="harvest-content">
<h2>Edit harvest source </h2>
${h.literal(c.form)}

View File

@ -4,6 +4,7 @@
py:strip="">
<py:def function="page_title">New - Harvest Source</py:def>
<py:def function="page_heading">New harvest source </py:def>
<py:def function="body_class">hide-sidebar</py:def>
<py:def function="optional_head">
@ -13,7 +14,6 @@
<div py:match="content">
<div class="harvest-content">
<h2>New harvest source </h2>
${h.literal(c.form)}

View File

@ -4,6 +4,7 @@
py:strip="">
<py:def function="page_title">Harvest Source Details</py:def>
<py:def function="page_heading">Harvest Source Details</py:def>
<py:def function="optional_head">
<link type="text/css" rel="stylesheet" media="all" href="/ckanext/harvest/style.css" />
@ -12,7 +13,6 @@
<div py:match="content">
<div class="harvest-content">
<py:if test="c.source">
<h1>Harvest Source Details</h1>
<div id="harvest-source-actions">
<img src="/ckanext/harvest/images/icons/source_edit.png" alt="Edit" /><a href="/harvest/edit/${c.source.id}">Edit source</a> |
<img src="/ckanext/harvest/images/icons/source_refresh.png" alt="Refresh" /><a href="/harvest/refresh/${c.source.id}">Refresh source</a> |