From 47bb2a5c1b3f6fad38f7f701b23de218ae2b4abe Mon Sep 17 00:00:00 2001 From: Toby Date: Fri, 10 Feb 2012 11:56:12 +0000 Subject: [PATCH] replace usage of url with h.url in templates to fix tests --- ckan/templates/package/history.html | 4 ++-- ckan/templates/package/new_package_form.html | 2 +- ckan/templates/package/read.html | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ckan/templates/package/history.html b/ckan/templates/package/history.html index 595835aa122..b0c3b62aa99 100644 --- a/ckan/templates/package/history.html +++ b/ckan/templates/package/history.html @@ -12,7 +12,7 @@

Updates

@@ -59,7 +59,7 @@

+ href="${h.url(controller='package', action='history', id=c.pkg_dict['name'], format='atom', days=7)}" /> diff --git a/ckan/templates/package/new_package_form.html b/ckan/templates/package/new_package_form.html index 80ce7c217a1..6d15fffae42 100644 --- a/ckan/templates/package/new_package_form.html +++ b/ckan/templates/package/new_package_form.html @@ -41,7 +41,7 @@

Errors in form

- ${url(controller='package', action='index')+'/'}  + ${h.url(controller='package', action='index')+'/'} 

 

diff --git a/ckan/templates/package/read.html b/ckan/templates/package/read.html index 2682e9f7d4d..51bac82ca6d 100644 --- a/ckan/templates/package/read.html +++ b/ckan/templates/package/read.html @@ -84,7 +84,7 @@

Related Datasets

-

This is an old revision of this dataset, as edited at ${h.render_datetime(c.pkg_revision_timestamp, with_hours=True)}. It may differ significantly from the current revision.

+

This is an old revision of this dataset, as edited at ${h.render_datetime(c.pkg_revision_timestamp, with_hours=True)}. It may differ significantly from the current revision.

This is the current revision of this dataset, as edited at ${h.render_datetime(c.pkg_revision_timestamp, with_hours=True)}.

@@ -101,7 +101,7 @@

Related Datasets

+ href="${h.url(controller='package', action='history', id=c.pkg.name, format='atom', days=7)}" />